{"id":298292,"date":"2020-02-06T09:00:16","date_gmt":"2020-02-06T09:00:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298292"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298292","title":{"rendered":"\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Elasticsearch, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u0443\u0442\u0435\u0447\u0435\u043a"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/dataline\/blog\/487210\/\">\u0417\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0443\u0442\u0435\u0447\u0435\u043a \u0438\u0437 \u0431\u0430\u0437 <a href=\"https:\/\/habr.com\/ru\/post\/280488\/\">Elasticsearch<\/a> (<a href=\"https:\/\/habr.com\/ru\/news\/t\/477116\/\">\u0432\u043e\u0442<\/a>, <a href=\"https:\/\/habr.com\/ru\/news\/t\/482586\/\">\u0432\u043e\u0442 <\/a>\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/devicelockdlp\/blog\/432354\/\">\u0432\u043e\u0442<\/a>). \u0412\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0432 \u0431\u0430\u0437\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0441\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u042d\u0442\u0438\u0445 \u0443\u0442\u0435\u0447\u0435\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0431\u044b \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u043e\u0442\u0440\u0443\u0434\u0438\u043b\u0438\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043e \u043d\u0438\u0445 \u0438 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c.<br \/>  \u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Elasticsearch \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u043e\u0432 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0436\u0443\u0440\u043d\u0430\u043b\u043e\u0432 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0437\u0430\u0449\u0438\u0442\u044b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u041e\u0421 \u0438 \u041f\u041e \u0432 \u043d\u0430\u0448\u0435\u0439 IaaS-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f 152-\u0424\u0417, Cloud-152.\u00a0<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ej\/_g\/_r\/ej_g_r23bt2k_22t7is7rg7l6ys.jpeg\"><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u201c\u043d\u0435 \u0442\u043e\u0440\u0447\u0438\u0442\u201d \u043b\u0438 \u0431\u0430\u0437\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442<\/h3>\n<p>  \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0443\u0442\u0435\u0447\u0435\u043a (<a href=\"https:\/\/hacken.io\/research\/industry-news-and-insights\/new-data-breach-exposes-57-million-records\/\">\u0432\u043e\u0442<\/a>, <a href=\"https:\/\/www.infosecurity-magazine.com\/news\/french-hotel-giant-leaks-1tb-of\/\">\u0432\u043e\u0442<\/a>) \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043d\u0435\u0437\u0430\u0442\u0435\u0439\u043b\u0438\u0432\u043e: \u0431\u0430\u0437\u0430 \u0431\u044b\u043b\u0430 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u0438 \u043a \u043d\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u0431\u0435\u0437 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438.\u00a0\u00a0<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435. \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f? \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b Elasticsearch <a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/modules-node.html\">\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f<\/a> \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0427\u0442\u043e\u0431\u044b \u0411\u0414 \u043e\u0431\u0449\u0430\u043b\u0438\u0441\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0442\u044b. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0431\u0430\u0437\u0435, \u0438 \u043a \u0411\u0414 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043e\u0442\u043e\u0432\u0441\u044e\u0434\u0443. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043d\u0435\u0442 \u043b\u0438 \u043a \u0431\u0430\u0437\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438\u0437\u0432\u043d\u0435, \u043b\u0435\u0433\u043a\u043e. \u041f\u0440\u043e\u0441\u0442\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0432\u0432\u043e\u0434\u0438\u043c <b>http:\/\/[IP\/\u0418\u043c\u044f Elasticsearch]:9200\/_cat\/nodes?v<\/b><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0439\u0442\u0438, \u0437\u043d\u0430\u0447\u0438\u0442 \u0431\u0435\u0433\u043e\u043c \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c.<\/p>\n<h3>\u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0411\u0414<\/h3>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043a \u0431\u0430\u0437\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u0431\u0435\u0437 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. <br \/>  \u0423 Elasticsearch \u0435\u0441\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0431\u0430\u0437\u0435, \u043d\u043e \u043e\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u043b\u0430\u0442\u043d\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 X-Pack (1 \u043c\u0435\u0441\u044f\u0446 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f). <\/p>\n<p>  \u0425\u043e\u0440\u043e\u0448\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u0441\u0435\u043d\u044c\u044e 2019 \u0433\u043e\u0434\u0430 Amazon \u043e\u0442\u043a\u0440\u044b\u043b \u0441\u0432\u043e\u0438 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u0441 X-Pack. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043a \u0431\u0430\u0437\u0435 \u0441\u0442\u0430\u043b\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e\u0434 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 Elasticsearch 7.3.2., \u0438 \u0443\u0436\u0435 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0434\u043b\u044f Elasticsearch 7.4.0. <\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d \u043f\u0440\u043e\u0441\u0442\u043e. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:<\/p>\n<p>  RPM Based:<\/p>\n<p>  <b>curl <a href=\"https:\/\/d3g5vo6xdbdb9a.cloudfront.net\/yum\/opendistroforelasticsearch-artifacts.repo\">d3g5vo6xdbdb9a.cloudfront.net\/yum\/opendistroforelasticsearch-artifacts.repo<\/a> -o \/etc\/yum.repos.d\/opendistroforelasticsearch-artifacts.repo<\/p>\n<p>  yum update<\/p>\n<p>  yum install opendistro-security<\/b><\/p>\n<p>  DEB Based:<\/p>\n<p>  <b>wget -qO \u2010 <a href=\"https:\/\/d3g5vo6xdbdb9a.cloudfront.net\/GPG-KEY-opendistroforelasticsearch\">d3g5vo6xdbdb9a.cloudfront.net\/GPG-KEY-opendistroforelasticsearch<\/a> | sudo apt-key add &#8212;<\/b><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 SSL<\/h3>\n<p>  \u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0440\u0442\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0431\u0430\u0437\u0435. \u041d\u0430 \u043d\u0435\u043c \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 SSL. \u0427\u0442\u043e\u0431\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0441\u043c\u043e\u0433\u043b\u0438 \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SSL.<\/p>\n<p>  \u0414\u043e\u0432\u0435\u0440\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0445\u043e\u0441\u0442\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 \u0438\u043b\u0438 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e. \u0421 \u043f\u0435\u0440\u0432\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e: \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430\u043c \u043f\u043e CA. \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443.   <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u0434\u043e\u043c\u0435\u043d\u0430:<br \/>   <b>export DOMAIN_CN=&quot;example.com&quot;<\/b><\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447:<br \/>   <b>openssl genrsa -out root-ca-key.pem 4096<\/b><\/li>\n<li>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442. \u0425\u0440\u0430\u043d\u0438\u0442\u0435 \u0435\u0433\u043e \u043a\u0430\u043a \u0437\u0435\u043d\u0438\u0446\u0443 \u043e\u043a\u0430: \u043f\u0440\u0438 \u0435\u0433\u043e \u0443\u0442\u0435\u0440\u0435 \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0430\u0446\u0438\u0438 \u0434\u043e\u0432\u0435\u0440\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043c\u0438 \u0445\u043e\u0441\u0442\u0430\u043c\u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c.<br \/>   <b>openssl req -new -x509 -sha256 \\<\/b><br \/>   <b>-subj &quot;\/C=RU\/ST=Moscow\/O=Moscow, Inc.\/CN=${DOMAIN_CN}&quot; \\<\/b><br \/>   <b>-key root-ca-key.pem -out root-ca.pem<\/b> <\/li>\n<li> \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u044e\u0447 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430:<br \/>   <b>openssl genrsa -out admin-key-temp.pem 4096<\/b><br \/>   <b>openssl pkcs8 -inform PEM -outform PEM -in admin-key-temp.pem \\<\/b><br \/>   <b>-topk8 -nocrypt -v1 PBE-SHA1-3DES -out admin-key.pem<\/b><\/li>\n<li> \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430:<br \/>   <b>openssl req -new -subj &quot;\/C=RU\/ST=Moscow\/O=Moscow <\/b><br \/>   <b>Inc.\/CN=${DOMAIN_CN}\/CN=admin &quot; \\<\/b><br \/>   <b>-key admin-key.pem -out admin.csr<\/b><\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430:<br \/>   <b>openssl x509 -req -extensions usr_cert -in admin.csr \\<\/b><br \/>   <b>-CA root-ca.pem -CAkey root-ca-key.pem -CAcreateserial -sha256 -out admin.pem<\/b><\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0434\u043b\u044f \u043d\u043e\u0434\u044b Elasticsearch:<br \/>   <b>export NODENAME=&quot;node-01&quot;<\/b><br \/>   <b>openssl genrsa -out ${NODENAME}-key-temp.pem 4096<\/b><br \/>   <b>openssl pkcs8 -inform PEM -outform PEM -in ${NODENAME}-key-temp.pem -topk8 -nocrypt -v1 PBE-SHA1-3DES -out ${NODENAME}-key.pem<\/b><\/li>\n<li> \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c:<br \/>   <b>openssl req -new -subj &quot;\/C=RU\/ST=Moscow\/O=Moscow <\/b><br \/>   <b>Inc.\/CN=${NODENAME}.${DOMAIN_CN}&quot; -addext<\/b><br \/>  <b>&quot;subjectAltName=DNS:${NODENAME}.${DOMAIN_CN},DNS:www.${NODENAME}.${DOMAIN_CN}&quot; -key ${NODENAME}-key.pem -out ${NODENAME}.csr<\/b><\/li>\n<li>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442:<br \/>   <b>openssl x509 -req -in node.csr -CA root-ca.pem -CAkey root-ca-key.pem -CAcreateserial -sha256 -out node.pem<\/b><\/li>\n<li>\u0420\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u0434\u0430\u043c\u0438 Elasticsearch \u0432 \u043f\u0430\u043f\u043a\u0443:<br \/>   <b>\/etc\/elasticsearch\/<\/b><br \/>  \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f:<br \/>   <b>node-01-key.pem<br \/>   node-01.pem<br \/>   admin-key.pem<br \/>   admin.pem<br \/>   root-ca.pem<\/b><\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c <b>\/etc\/elasticsearch\/elasticsearch.yml<\/b> \u2013 \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438, \u043d\u0430 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043c\u0438:<br \/>   <b>opendistro_security.ssl.transport.pemcert_filepath: node-01.pem <br \/>   opendistro_security.ssl.transport.pemkey_filepath: node-01-key.pem <br \/>   opendistro_security.ssl.transport.pemtrustedcas_filepath: root-ca.pem <br \/>   opendistro_security.ssl.transport.enforce_hostname_verification: false <br \/>   opendistro_security.ssl.http.enabled: true <br \/>   opendistro_security.ssl.http.pemcert_filepath: node-01.pem <br \/>   opendistro_security.ssl.http.pemkey_filepath: node-01-key.pem <br \/>   opendistro_security.ssl.http.pemtrustedcas_filepath: root-ca.pem <br \/>   opendistro_security.allow_unsafe_democertificates: false <br \/>   opendistro_security.allow_default_init_securityindex: true <br \/>   opendistro_security.authcz.admin_dn: <br \/>   &nbsp;&nbsp;\u2212 CN=admin,CN=example.com,O=Moscow Inc.,ST=Moscow,C=RU <br \/>   opendistro_security.nodes_dn: <br \/>   &nbsp;&nbsp;\u2212 CN=node-01.example.com,O=Moscow Inc.,ST=Moscow,C=RU<\/b><\/li>\n<\/ol>\n<p>  <\/p>\n<h3>\u041c\u0435\u043d\u044f\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/h3>\n<p>  <\/p>\n<ol>\n<li>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0438\u0436\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0445\u0435\u0448 \u043f\u0430\u0440\u043e\u043b\u044f:<br \/>   <b>sh ${OD_SEC}\/tools\/hash.sh -p [\u043f\u0430\u0440\u043e\u043b\u044c]<\/b><\/li>\n<li>\u041c\u0435\u043d\u044f\u0435\u043c \u0445\u0435\u0448 \u0432 \u0444\u0430\u0439\u043b\u0435 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439: <b>\/usr\/share\/elasticsearch\/plugins\/opendistro_security\/securityconfig\/internal_users.yml<\/b><\/li>\n<\/ol>\n<p>  <\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043c\u0435\u0436\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u044d\u043a\u0440\u0430\u043d \u0432 \u041e\u0421<\/h3>\n<p>  <\/p>\n<ol>\n<li>\u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a \u043c\u0435\u0436\u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430:<br \/>   <b>systemctl enable firewalld<\/b><\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0433\u043e:<br \/>   <b>systemctl start firewalld<\/b><\/li>\n<li>\u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a Elasticsearch:<br \/>   <b>firewall-cmd &#8212;set-default-zone work<\/b><br \/>   <b>firewall-cmd &#8212;zone=work &#8212;add-port=9200\/TCP &#8212;permanent<\/b><\/li>\n<li>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043c\u0435\u0436\u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430:<br \/>   <b>firewall-cmd &#8212;reload<\/b><\/li>\n<li>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430:<br \/>   <b>firewall-cmd &#8212;list-all<\/b><\/li>\n<\/ol>\n<p>  <\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a Elasticsearch<\/h3>\n<p>  <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c \u0434\u043e \u043f\u0430\u043f\u043a\u0438 \u0441 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c:<br \/>   <b>OD_SEC=&quot;\/usr\/share\/elasticsearch\/plugins\/opendistro_security\/&quot;<\/b><\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043d\u043e\u0432\u0438\u0442 \u043f\u0430\u0440\u043e\u043b\u0438 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<br \/>   <b>${OD_SEC}\/tools\/securityadmin.sh -cd ${OD_SEC}\/securityconfig\/ \\<br \/>   -icl -nhnv -cacert \/etc\/elasticsearch\/root-ca.pem \\<br \/>   -cert \/etc\/elasticsearch\/admin.pem -key <br \/>   \/etc\/elasticsearch\/admin-key.pem<\/b><\/li>\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:<br \/>   <b>curl -XGET https:\/\/[IP\/\u0418\u043c\u044f Elasticsearch]:9200\/_cat\/nodes?v -u admin:[\u043f\u0430\u0440\u043e\u043b\u044c] &#8212;insecure<\/b><\/li>\n<\/ol>\n<p>  \u0412\u0441\u0435, \u044d\u0442\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442 Elasticsearch \u043e\u0442 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/dataline\/blog\/487210\/\"> https:\/\/habr.com\/ru\/company\/dataline\/blog\/487210\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/dataline\/blog\/487210\/\">\u0417\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0443\u0442\u0435\u0447\u0435\u043a \u0438\u0437 \u0431\u0430\u0437 <a href=\"https:\/\/habr.com\/ru\/post\/280488\/\">Elasticsearch<\/a> (<a href=\"https:\/\/habr.com\/ru\/news\/t\/477116\/\">\u0432\u043e\u0442<\/a>, <a href=\"https:\/\/habr.com\/ru\/news\/t\/482586\/\">\u0432\u043e\u0442 <\/a>\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/devicelockdlp\/blog\/432354\/\">\u0432\u043e\u0442<\/a>). \u0412\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0432 \u0431\u0430\u0437\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0441\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u042d\u0442\u0438\u0445 \u0443\u0442\u0435\u0447\u0435\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0431\u044b \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u043e\u0442\u0440\u0443\u0434\u0438\u043b\u0438\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043e \u043d\u0438\u0445 \u0438 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c.<br \/>  \u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Elasticsearch \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u043e\u0432 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0436\u0443\u0440\u043d\u0430\u043b\u043e\u0432 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0437\u0430\u0449\u0438\u0442\u044b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u041e\u0421 \u0438 \u041f\u041e \u0432 \u043d\u0430\u0448\u0435\u0439 IaaS-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f 152-\u0424\u0417, Cloud-152.\u00a0<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ej\/_g\/_r\/ej_g_r23bt2k_22t7is7rg7l6ys.jpeg\">  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298292","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298292"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298292\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}