{"id":409800,"date":"2024-06-29T21:00:22","date_gmt":"2024-06-29T21:00:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=409800"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=409800","title":{"rendered":"<span>Kafka acl \u0438\u043b\u0438 \u0440\u0430\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 RuleBAC<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"#scroll-bookmark-2\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/a><\/p>\n<p><a href=\"#scroll-bookmark-3\" rel=\"noopener noreferrer nofollow\">\u042d\u0442\u0430\u043f \u043f\u0435\u0440\u0432\u044b\u0439 &#8212; \u0431\u043e\u0440\u0435\u043c\u0441\u044f \u0441 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430\u043c\u0438.<\/a><\/p>\n<p><a href=\"#scroll-bookmark-4\" rel=\"noopener noreferrer nofollow\">\u042d\u0442\u0430\u043f \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0442\u043e\u043f\u0438\u043a\u0438 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439.<\/a><\/p>\n<p><a href=\"#scroll-bookmark-5\" rel=\"noopener noreferrer nofollow\">\u042d\u0442\u0430\u043f \u0442\u0440\u0435\u0442\u0438\u0439 &#8212; \u043f\u0440\u043e\u0441\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0439 \u044d\u0442\u043e.<\/a><\/p>\n<p><a href=\"#scroll-bookmark-6\" rel=\"noopener noreferrer nofollow\">\u042d\u0442\u0430\u043f \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 &#8212; \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c acl\u044b.<\/a><\/p>\n<p><a class=\"anchor\" name=\"scroll-bookmark-2\" id=\"scroll-bookmark-2\"><\/a><\/p>\n<h2>\u0418\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0418\u0442\u0430\u043a \u043c\u044b \u043f\u043e\u043f\u0430\u043b\u0438 \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u043a\u0430\u0444\u043a\u0438 \u0438 \u043d\u0430 \u0443\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 RBAC (role-based access control &#8212; \u0440\u043e\u043b\u0435\u0432\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c).\u00a0<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0443 (<a href=\"https:\/\/docs.confluent.io\/platform\/current\/security\/rbac\/rbac-predefined-roles.html#role-based-access-control-predefined-roles\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.confluent.io\/platform\/current\/security\/rbac\/rbac-predefined-roles.html#role-based-access-control-predefined-roles<\/a>)\u00a0<\/p>\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0440\u0430\u0437\u0443 \u0441\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043d\u0430\u0441 \u0441 \u043d\u0435\u0431\u0430 \u043d\u0430 \u0437\u0435\u043c\u043b\u044e \u0438 \u0443\u043f\u0440\u043e\u0449\u0430\u044e\u0442 \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u043e\u0431\u0438\u043b\u0438\u044f \u0440\u043e\u043b\u0435\u0439. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0445 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c.\u00a0<\/p>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 1.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0440\u043e\u043b\u044c<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u043e\u0435 \u0440\u0430\u0441\u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u0435\u0439<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0420\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c (\u0438 \u0447\u0442\u0435\u0446 \u0438 \u0436\u043d\u0435\u0446 \u0438 \u043d\u0430 \u0434\u0443\u0434\u0435 \u0438\u0433\u0440\u0435\u0446)<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">super.user<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u044d\u043c\u044d\u043d\u0443 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f   \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430.\u00a0\u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0441\u0442   \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0440\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p align=\"left\">\u0421\u044d\u043c\u044d\u043d \u043a\u0430\u043a \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0438\u043a, \u0430   \u043f\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443 SRE \u0438 #\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u0432\u043e\u0435, \u043d\u0435 \u0445\u043e\u0434\u0438\u0442 \u043a \u0420\u041f \u0420\u043e\u043c\u0430\u043d\u0443, \u0420\u041f \u0421\u0435\u0440\u0435\u0433\u0435, \u0420\u041f   \u0414\u0438\u043c\u0435 \u0438 \u0420\u041f &#8230;, \u0430 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u0442\u043e \u0438 \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e   \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c.\u00a0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ResourceOwner<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u043e\u043c\u0430\u043d\u0443 \u0431\u0443\u0434\u0443\u0442   \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0435\u043c\u044b \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c\u00a0finance_.\u00a0\u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435   \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430.\u00a0\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043d   \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f ResourceOwner \u0434\u043b\u044f \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">UserAdmin<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u042e\u0440\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c   \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ClusterAdmin<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043b\u0430\u0432\u0430 &#8212; \u0447\u043b\u0435\u043d   \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 Kafka.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Operator<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043b\u0435\u043d\u044c\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c   \u0437\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438   \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p align=\"left\">\u0414\u0430\u0432\u0430 \u0438 \u041e\u043b\u0435\u043d\u044c\u043a\u0430 \u0445\u043e\u0440\u043e\u0448\u043e   \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0445 \u0431\u043e\u0433\u043e\u0441\u043f\u0430\u0441\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043c \u0440\u044b\u0447\u0430\u0433\u0438 \u043e\u0442   \u0432\u0441\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0421\u044d\u043c\u044d\u043d \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e \u0438\u0434\u0435\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435   \u0447\u0442\u043e \u0442\u0430\u043a\u0438\u0445 \u0414\u0430\u0432 \u0438 \u041e\u043b\u044c\u0433 \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u043a\u0430\u0444\u043a\u0430 \u043a\u043e\u0441\u043e\u0439 \u0434\u0435\u0441\u044f\u0442\u043e\u043a.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">DeveloperRead,   DeveloperWrite, DeveloperManage<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u0430\u0432\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430   \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0418\u0442\u0430\u043a, \u0438\u043c\u0435\u0435\u043c<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0441\u043e\u0432\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u0435\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b 1.<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043a\u0430\u0444\u043a\u0430-\u0437\u0443\u043a\u0438\u043f\u0435\u0440, \u043e\u0431\u043c\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0432\u043a\u0440\u0443\u0433 ssl\u0435\u043c.\u00a0\u00a0<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b X509 (<a href=\"https:\/\/en.wikipedia.org\/wiki\/X.509#Certificates\" rel=\"noopener noreferrer nofollow\">https:\/\/en.wikipedia.org\/wiki\/X.509#Certificates<\/a>).<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0430\u043f\u0440\u0438\u043e\u0440\u0438 \u043c\u044b \u043d\u0435 \u0432\u043b\u0430\u0434\u0435\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043e \u0442\u043e\u043f\u0438\u043a\u0430\u0445 \u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u0445-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0434\u0443\u0442 \u043a \u043d\u0430\u043c \u0437\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0438\u043c (\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u043c-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c) \u0438 \u0445\u043e\u0442\u0438\u043c \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u0438\u0445 \u0438 \u0441\u0432\u043e\u0439 \u0442\u0440\u0443\u0434.<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u043d\u0435\u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0438\u043c\u043e\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435\u00a0\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0442\u0438\u043d\u0443 \u0438<strong>\u00a0<\/strong>\u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0414\u0430\u0432\u0443 \u0438 \u041e\u043b\u0435\u043d\u044c\u043a\u0443 \u043e\u0442 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u041a\u043e\u043b\u0438 \u0438 \u0422\u043e\u043b\u0438, \u0414\u0430\u0448\u0438, \u041c\u0430\u0448\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445.<\/p>\n<p><a class=\"anchor\" name=\"scroll-bookmark-3\" id=\"scroll-bookmark-3\"><\/a><\/p>\n<h2>\u042d\u0442\u0430\u043f \u043f\u0435\u0440\u0432\u044b\u0439 &#8212; \u0431\u043e\u0440\u0435\u043c\u0441\u044f \u0441 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430\u043c\u0438.\u00a0<\/h2>\n<p>\u041f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c RBAC \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c \u0437\u0443\u0434 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432 ACL, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043a\u0430\u0444\u043a\u043e\u0439.<\/p>\n<p>\u041f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><em>\u041a\u043e\u0433\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f   \u043a \u0431\u0440\u043e\u043a\u0435\u0440\u0443 Kafka \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 SSL, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0438\u043c\u044f   \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0444\u043e\u0440\u043c\u0443 \u0438\u043c\u0435\u043d\u0438 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 SSL:CN=<\/em><a href=\"http:\/\/quickstart.confluent.io\/\" rel=\"noopener noreferrer nofollow\"><em>quickstart.confluent.io<\/em><\/a><em>,OU=TEST,O=Sales,L=PaloAlto,ST=Ca,C=US.<\/em><\/p>\n<p align=\"left\"><em>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e   \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u043d\u0435\u0442 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432.<\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e<strong> \u043a\u0430\u0444\u043a\u0435 \u043d\u0430\u0434\u043e \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u0443\u0431\u044a\u0435\u043a\u0442 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0422\u043e \u0435\u0441\u0442\u044c CN=xxx,OU=yyy,O=zzz \u043d\u0435 \u0440\u0430\u0432\u043d\u043e\u00a0O=zzz,OU=yyy,CN=xxx.<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u043e\u043d\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430\u043c! \u0421\u0435\u0439\u0447\u0430\u0441 \u043e\u0442\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u0438\u043c CN\u00a0 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b kafka-acls \u0438 \u043f\u043e\u0439\u0434\u0435\u043c \u043f\u0438\u0442\u044c<s>\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0435<\/s> \u0447\u0430\u0439. \u041d\u043e, \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u044c \u0432 shell \u0447\u0442\u043e-\u0442\u043e \u0432\u0438\u0434\u0430\u00a0<\/p>\n<pre><code class=\"bash\">kafka-acls --bootstrap-server localhost:9092 --command-config adminclient-configs.conf \\ --add --allow-principal User:CN=priklad*fromDAVA.confluent.io,OU=TEST,O=Sales,L=PaloAlto,ST=Ca,C=US\\ --allow-host host-2 --operation read --operation write --topic finance_topic_from_Dava --topic finance_topic_from_Olga<\/code><\/pre>\n<p>\u043d\u0430\u0441 \u043d\u0430\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0438\u0431\u043e\u00a0AclAuthorizer \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e priklad*fromDAVA.confluent.io\u00a0\u0438 \u043e\u0442\u0441\u044b\u043f\u043b\u0435\u0442 \u043d\u0430\u043c \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043b\u043e\u0433.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0437\u0430\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0432\u0440\u043e\u0434\u0435 OU &#8212; \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435.<\/p>\n<pre><code class=\"bash\">kafka-acls --bootstrap-server   localhost:9092 --command-config   adminclient-configs.conf \\ --add --allow-principal   User:CN=prikladfromDAVA.confluent.io,OU=*,O=Sales,L=PaloAlto,ST=Ca,C=US\\ --allow-host host-2 --operation read --operation write   --topic finance_topic_from_Dava --topic finance_topic_from_Olga<\/code><\/pre>\n<p>\u0427\u0438\u0442\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438 \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b\u00a0ssl.principal.mapping.rules\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"bash\">RULE:^CN=(.*?),OU=ServiceUsers.*$\/$1\/, RULE:^CN=(.*?),OU=(.*?),O=(.*?),L=(.*?),ST=(.*?),C=(.*?)$\/$1@$2\/L, RULE:^.*[Cc][Nn]=([a-zA-Z0-9.]*).*$\/$1\/L, DEFAULT<\/code><\/pre>\n<p>\u041c\u043c\u043c, \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043e\u0447\u043a\u0430&#8230; \u0442\u043e\u0447\u043a\u0430 \u043e\u043f\u043e\u0440\u044b \u043d\u0430\u0439\u0434\u0435\u043d\u0430. \u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 (<a href=\"https:\/\/docs.confluent.io\/platform\/current\/kafka\/configure-mds\/mutual-tls-auth-rbac.html#how-the-regex-works\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.confluent.io\/platform\/current\/kafka\/configure-mds\/mutual-tls-auth-rbac.html#how-the-regex-works<\/a>)? \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f SSL \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0435\u00a0CN=writeuser,OU=Unknown,O=Unknown,L=Unknown,ST=Unknown,C=Unknown.\u00a0\u042d\u0442\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u043b\u0438\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043c\u0435\u043d\u0438 X.500 (DN) \u0441 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c.\u00a0<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0430\u0436\u043d\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: <strong>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 DN, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0435\u0433\u043e \u0441 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c.\u00a0\u0412\u0441\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f.\u00a0<\/strong><\/p>\n<p>\u0418\u0442\u0430\u043a,\u00a0 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0440\u0435\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441 \u0437\u0430\u0432\u0438\u0434\u043d\u043e\u0439 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c\u044e, \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 acl:<\/p>\n<pre><code class=\"bash\">Current ACLs for resource   ResourcePattern(resourceType=TOPIC, name=*, patternType=LITERAL): (principal=User:this_kafka_superuser,   host=*, operation=WRITE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=READ, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DELETE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=CREATE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=ALTER, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE_CONFIGS, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=ALTER_CONFIGS, permissionType=ALLOW)  Current ACLs for resource   ResourcePattern(resourceType=CLUSTER, name=kafka-cluster,   patternType=LITERAL): (principal=User:this_kafka_superuser,   host=*, operation=CLUSTER_ACTION, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=CREATE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=ALTER, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE_CONFIGS, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=ALTER_CONFIGS, permissionType=ALLOW)  Current ACLs for resource   ResourcePattern(resourceType=GROUP, name=*, patternType=LITERAL): (principal=User:this_kafka_superuser,   host=*, operation=READ, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE, permissionType=ALLOW)<\/code><\/pre>\n<p>\u0412 config\/server.properties \u0434\u043e\u0431\u0430\u0432\u0438\u043c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\">ssl.principal.mapping.rules=RULE:^CN=kafka-name[-3].*.my.domain.zone.*$\/this_kafka_superuser\/,DEFAULT<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u043e \u0441\u0443\u0442\u0438 \u0442\u0430\u043a \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043b\u0430 \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435.<\/p>\n<p><strong>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/strong> \u0421\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0431\u0440\u043e\u043a\u0435\u0440\u0430.<\/p>\n<p>\u0421\u043f\u0438\u0441\u043a\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u0434\u0430\u043b\u0435\u0435 &#8212; \u0430\u043a\u043b\u044b)\u00a0 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e bash-\u0441\u0438\u0431\u043b\u043e\u043c (\u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0435\u0433\u043e \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0443).<\/p>\n<p><a class=\"anchor\" name=\"scroll-bookmark-4\" id=\"scroll-bookmark-4\"><\/a><\/p>\n<h2>\u042d\u0442\u0430\u043f \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; \u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0442\u043e\u043f\u0438\u043a\u0438 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439.<\/h2>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c RBAC \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0442\u043e\u043f\u0438\u043a\u043e\u0432 \u0434\u044b\u0448\u0430\u0442\u044c \u0432 \u0438\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u0443. \u0412\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f66\/1cd\/dc4\/f661cddc479a360e64699daccaf4d6e1.png\" width=\"1391\" height=\"601\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f66\/1cd\/dc4\/f661cddc479a360e64699daccaf4d6e1.png\"\/><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 (\u0438\u0437\u0432\u0438\u043d\u0438\u0442\u0435 \u0437\u0430 \u043e\u0434\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u043e\u0440\u0433\u044e\u043d\u0438\u0442\u0430, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043b\u044e\u0431\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430):<\/p>\n<pre><code class=\"bash\">ssl.principal.mapping.rules= RULE:^CN=kafka-name[-3].*.my.domain.zone.*$\/this_kafka_superuser\/, RULE:^CN=.*.kadri.domain.zone.*$\/kadri\/, RULE:^CN=.*.finiki.domain.zone.*$\/finiki\/, RULE:^CN=.*.axo.domain.zone.*$\/axo\/, RULE:^CN=.*.managers.domain.zone.*$\/managers\/, RULE:^CN=.*.reserv1.domain.zone.*$\/reserv1\/, RULE:^CN=.*.reserv2.domain.zone.*$\/reserv2\/, RULE:^CN=.*.my.domain.zone.*$\/only_describe_user\/, DEFAULT<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u044d\u0442\u0438\u043c \u0440\u043e\u043b\u044f\u043c-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0442\u043e\u043f\u0438\u043a\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b.\u00a0 \u0417\u0434\u0435\u0441\u044c \u043e\u043f\u044f\u0442\u044c \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0430 \u0432\u0435\u0440\u043d\u0435\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.\u00a0<br \/> <a href=\"https:\/\/docs.confluent.io\/platform\/current\/kafka\/authorization.html#prefixed-acls\" rel=\"noopener noreferrer nofollow\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a> \u0442\u0430\u043a \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043d\u0430\u043c:\u00a0\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b ACL, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u0438\u0431\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 LITERAL (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e), \u0442\u0438\u043f \u0448\u0430\u0431\u043b\u043e\u043d\u0430 PREFIXED, \u043b\u0438\u0431\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0437\u043d\u0430\u043a (\u00a0*), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0432\u0441\u0435. \u0418 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0446\u0435\u043b\u0435\u0439.<\/p>\n<pre><code># \/opt\/Apache\/kafka\/bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   \/opt\/Apache\/kafka\/config\/server.properties --add --allow-principal \"User:kadri\" --topic kadri-   --resource-pattern-type=PREFIXED --producer # \/opt\/Apache\/kafka\/bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   \/opt\/Apache\/kafka\/config\/server.properties --add --allow-principal \"User:kadri\" --topic kadri-   --resource-pattern-type=PREFIXED --operation Read   Current ACLs for resource   ResourcePattern(resourceType=TOPIC, name=kadri-, patternType=PREFIXED):  \u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW) \u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0   (principal=User:kadri, host=*, operation=DESCRIBE,   permissionType=ALLOW)<\/code><\/pre>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432 \u043e\u0431\u0449\u0435\u043c \u0432\u0438\u0434\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434 \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434:<\/p>\n<pre><code># bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   config\/server.properties \\ --add --allow-principal \"User:{{ username }}\" --topic {{ prefix_for_username }} \\ --resource-pattern-type=PREFIXED \\ --operation WRITE --operation READ  --operation CREATE --operation DESCRIBE<\/code><\/pre>\n<p>\u0415\u0449\u0435 \u0440\u0430\u0437 \u043d\u0430\u043f\u043e\u043c\u043d\u044e \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c acl\u044b:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">name=kadri-vip,   patternType=PREFIXED<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p align=\"left\">name=kadri-,   patternType=PREFIXED<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">name=kadri-common,   patternType=PREFIXED<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">name=kadri-top,   patternType=PREFIXED<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">name=kadri-,   patternType=LITERAL<\/p>\n<\/td>\n<td>\n<p align=\"left\">name=kadri-common,   patternType=LITERAL<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><a class=\"anchor\" name=\"scroll-bookmark-5\" id=\"scroll-bookmark-5\"><\/a><\/p>\n<h2>\u042d\u0442\u0430\u043f \u0442\u0440\u0435\u0442\u0438\u0439 &#8212; \u043f\u0440\u043e\u0441\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0439 \u044d\u0442\u043e.<\/h2>\n<p>\u0417\u0430\u043f\u0438\u043b\u0438\u043c \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u0440\u043e\u043b\u044c &#8212; \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0430\u043a\u043b\u044b \u0431\u0435\u0437 \u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f <s>\u043f\u043e \u043c\u0443\u043a\u0430\u043c<\/s> \u043d\u0430 \u0445\u043e\u0441\u0442.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0430\u0441\u043a\u0438:<\/p>\n<pre><code class=\"yaml\">- name: Make operations string   set_fact: \u00a0   operations_composite: \"{{ operations_composite }}   --operation={{ item }}\"   loop: \"{{ input.operations }}\" - name: Make hosts string   set_fact: \u00a0   hosts_composite: \"{{ hosts_composite }}   --allow-host={{ item }}\"   loop: \"{{ input.host.split(',')   }}\"   when: input.host is defined - name: Topic permissions   shell: | \u00a0   {{ kafka_install_dir }}\/bin\/kafka-acls.sh --bootstrap-server={{   ansible_host }}:{{ broker_port_ssl }} --command-config={{ kafka_install_dir   }}\/config\/server.properties --add --allow-principal \"User:{{ input.username }}\" {{ operations_composite }} {{ hosts_composite   }} --topic={{ input.topic }}   when: input.topic is defined - name: Cluster permissions   shell: | \u00a0   {{ kafka_install_dir }}\/bin\/kafka-acls.sh --bootstrap-server={{   ansible_host }}:{{ broker_port_ssl }} --command-config={{ kafka_install_dir   }}\/config\/server.properties -add --allow-principal \"User:{{ input.username }}\" {{ operations_composite }} {{   hosts_composite }} --cluster={{ input.cluster }}   when: input.cluster is defined - name: Group permissions   shell: | \u00a0   {{ kafka_install_dir }}\/bin\/kafka-acls.sh --bootstrap-server={{   ansible_host }}:{{ broker_port_ssl }} --command-config={{ kafka_install_dir   }}\/config\/server.properties -add --allow-principal \"User:{{ input.username }}\" {{ operations_composite }} {{   hosts_composite }} --group={{ input.group }}   when: input.group is defined<\/code><\/pre>\n<p>\u0412 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0432\u0438\u0434\u0430:<\/p>\n<pre><code class=\"yaml\">acls: \u00a0- username: managers \u00a0   cluster: '*' \u00a0   host: '*' \u00a0   operations: \u00a0\u00a0   - IdempotentWrite \u00a0- username: axo \u00a0   topic: 'axo_topic1' \u00a0   operations: \u00a0\u00a0   - Describe \u00a0\u00a0   - Alter \u00a0\u00a0   - DescribeConfigs \u00a0\u00a0   - AlterConfigs \u00a0\u00a0   - Create \u00a0\u00a0   - Read \u00a0\u00a0   - Write<\/code><\/pre>\n<p>\u0421\u043b\u043e\u0436\u043d\u043e \u043b\u0438 \u044d\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 \u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0431\u044d\u043a\u0433\u0440\u0430\u0443\u043d\u0434\u043e\u043c &#8212; \u043d\u0435 \u0434\u0443\u043c\u0430\u044e.<\/p>\n<p>\u0423\u0440\u0430! \u041c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 .<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0447\u0438\u043d\u0438\u0442\u044c \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043b\u044c\u0437\u044b &#8212; \u0441\u0442\u043e\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438 \u0437\u0430\u043f\u0440\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f wildcart \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0438\u043c\u0435\u043d \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u00a0<\/p>\n<pre><code class=\"yaml\">- name: Assert wildcart characters in   topic   assert: \u00a0   that: \u00a0\u00a0   - ' \"*\"   not in input.topic' \u00a0   fail_msg: \"You are using wildcart   characters in topicname. You must use resource_pattern_type: PREFIXED and   uniq prefix for topic name\" \u00a0   success_msg: \"Topic name is OK\"   when: wildcart_topic_assertion and   input.topic is defined<\/code><\/pre>\n<p><a class=\"anchor\" name=\"scroll-bookmark-6\" id=\"scroll-bookmark-6\"><\/a><\/p>\n<h2>\u042d\u0442\u0430\u043f \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 &#8212; \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c acl\u044b.<\/h2>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u043b\u0438\u043d \u043a\u043e\u043c\u043e\u043c, \u0430 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u043a\u043b\u044b.<\/p>\n<h3>1 \u0441\u043f\u043e\u0441\u043e\u0431 &#8212; \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e \u0438 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e.<\/h3>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u043b\u0438\u0431\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f\u00a0&#8212;resource-pattern-type PREFIXED, \u043b\u0438\u0431\u043e \u043e\u043f\u0443\u0441\u043a\u0430\u044f \u0435\u0433\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e LITERAL.<\/p>\n<pre><code>\/opt\/Apache\/kafka\/bin\/kafka-acls.sh --bootstrap-server=$HOSTNAME:9093 \\ --command-config=\/opt\/Apache\/kafka\/config\/server.properties   --remove\\ --allow-principal \"User:CN=*******\" --topic name_of_topic --resource-pattern-type PREFIXED \\ --operation WRITE   --operation READ --operation Alter --operation DescribeConfigs \\ --operation   Describe --operation Create --operation Read --operation Delete<\/code><\/pre>\n<h3>2 \u0441\u043f\u043e\u0441\u043e\u0431 &#8212; \u0433\u0440\u043e\u0445\u0430\u0442\u044c \u0432\u0441\u0435 \u0438 \u0441\u0440\u0430\u0437\u0443. \u043a\u0430\u043a \u043c\u044b \u043b\u044e\u0431\u0438\u043c))<\/h3>\n<p>\u0422\u0443\u0442 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u0445\u0435\u043b\u043f\u0430 \u043f\u043e resource-pattern-type. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f\u00a0resource-pattern-type=ANY \u0431\u0443\u0434\u0443\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u044b \u0430\u043a\u043b\u044b \u043d\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u00a0resource-pattern-type=LITERAL \u0438 PREFIXED.\u00a0 \u0410 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 resource-pattern-type=MATCH \u0414\u041e\u041f\u041e\u041b\u041d\u0418\u0422\u0415\u041b\u042c\u041d\u041e \u043a ANY \u0443\u0434\u0430\u043b\u0438\u0442 \u0435\u0449\u0435 \u0438 \u0430\u043a\u043b\u044b, \u0432\u043b\u0438\u044f\u044e\u0449\u0438\u0435 \u043d\u0430 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b. \u041f\u0440\u0438\u043c\u0435\u0440.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c 3 \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0430\u043a\u043b\u043e\u0432:\u00a0<\/p>\n<pre><code class=\"bash\">\/opt\/Apache\/kafka\/bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   \/opt\/Apache\/kafka\/config\/server.properties --add --allow-principal \"User:kadri\" --topic \"kadri-\" --resource-pattern-type PREFIXED --operation Create   --operation Describe --operation Write --operation Read --operation Alter \/opt\/Apache\/kafka\/bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   \/opt\/Apache\/kafka\/config\/server.properties --add --allow-principal \"User:kadri\" --topic \"kadri-common\" --topic \"kadri-vip\" --operation Create --operation   Describe --operation Write --operation Read  # \u0442\u0443\u0442 \u0443 \u043d\u0430\u0441 \u0430\u043a\u043b\u044b \u043d\u0430 \u0442\u043e\u043f\u0438\u043a\u0438   \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0430 kadri- Current ACLs for resource   `ResourcePattern(resourceType=TOPIC, name=kadri-, patternType=PREFIXED)`: \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=ALTER, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=DESCRIBE, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW)  # \u0437\u0434\u0435\u0441\u044c \u0430\u043a\u043b\u044b \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0442\u043e\u043f\u0438\u043a\u0438 Current ACLs for resource   `ResourcePattern(resourceType=TOPIC, name=kadri-vip, patternType=LITERAL)`: \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0   \u00a0 \u00a0 \u00a0 (principal=User:kadri,   host=*, operation=DESCRIBE, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW) Current ACLs for resource   `ResourcePattern(resourceType=TOPIC, name=kadri-common,   patternType=LITERAL)`: \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW) \u00a0 \u00a0 \u00a0 \u00a0   (principal=User:kadri, host=*, operation=DESCRIBE, permissionType=ALLOW)   \u00a0\u00a0<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u0442\u0440\u0435\u0442\u0438\u0439, \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0442\u0435 \u0436\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0434 \u0431\u043e\u043b\u0435\u0435 \u043c\u043e\u0449\u043d\u044b\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0442\u043e\u043f\u0438\u043a\u043e\u0432.<\/p>\n<p><strong>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c ANY<\/strong><\/p>\n<pre><code class=\"bash\">\/opt\/Apache\/kafka\/bin\/kafka-acls.sh --bootstrap-server=$HOSTNAME:9093   --command-config   \/opt\/Apache\/kafka\/config\/server.properties --remove --allow-principal \"User:kadri\" --topic \"kadri-common\" --topic \"kadri-vip\" --operation Create --operation   Describe --operation Write --operation Read --resource-pattern-type Any # \u0412\u0438\u0434\u0438\u043c 2 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f Are you sure you want to remove ACLs: \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=DESCRIBE,   permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0from resource filter   `ResourcePattern(resourceType=TOPIC, name=kadri-common, patternType=ANY)`?   (y\/n) y Are you sure you want to remove ACLs: \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=DESCRIBE,   permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0from resource filter   `ResourcePattern(resourceType=TOPIC, name=kadri-vip, patternType=ANY)`? (y\/n) y<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u0432\u0441\u0435\u0445 \u0430\u043a\u043b\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<pre><code class=\"bash\">Current ACLs for resource   `ResourcePattern(resourceType=TOPIC, name=kadri-, patternType=PREFIXED)`: \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=ALTER, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=DESCRIBE,   permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW)<\/code><\/pre>\n<p><strong>\u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0434\u0430\u043b\u0438\u043c \u0430\u043a\u043b\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c MATCH:<\/strong><\/p>\n<pre><code class=\"bash\">\u00a0\/opt\/Apache\/kafka\/bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   \/opt\/Apache\/kafka\/config\/server.properties --remove --allow-principal \"User:kadri\" --topic \"kadri-common\" --topic \"kadri-vip\" --operation Create --operation   Describe --operation Write --operation Read --resource-pattern-type Match Are you sure you want to remove ACLs: \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=DESCRIBE,   permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0from resource filter   `ResourcePattern(resourceType=TOPIC, name=kadri-common, patternType=MATCH)`?   (y\/n) y Are you sure you want to remove ACLs: \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=DESCRIBE,   permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0from resource filter   `ResourcePattern(resourceType=TOPIC, name=kadri-vip, patternType=MATCH)`?   (y\/n) y #\u0422\u0430\u043a\u0438\u0435 \u0436\u0435 2 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0438 \u0432 \u043e\u043a\u043e\u043d\u0446\u043e\u0432\u043a\u0435 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 Current ACLs for resource   `ResourcePattern(resourceType=TOPIC, name=kadri-, patternType=PREFIXED)`: \u00a0\u00a0\u00a0   (principal=User:kadri, host=*, operation=ALTER, permissionType=ALLOW)<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043d\u0435 \u043d\u0430\u0441\u0442\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442 &#8212; \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f. \u0412\u0442\u043e\u0440\u043e\u0435 \u0447\u0442\u043e \u043d\u0430\u0441\u0442\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0432\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435\u043c \u0442\u043e\u043f\u0438\u043a\u043e\u0432 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u043d\u0430 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 kadri-. \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0432\u0441\u0435\u0445 \u0430\u043a\u043b\u043e\u0432 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0447\u0442\u043e \u0443\u043c\u043d\u0430\u044f, \u043d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0447\u0438\u0432\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 <em>\u043d\u0430\u0448\u043b\u0430 \u0438 \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0433\u0440\u043e\u0445\u043d\u0443\u043b\u0430 \u0430\u043a\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0442\u043e\u043f\u0438\u043a\u0430\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u043d\u0430 kadri-<\/em>. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043f\u043e\u0447\u0435\u043c\u0443 \u0432 \u0441\u043f\u0440\u0430\u0432\u043a\u0435 \u043a \u0443\u0442\u0438\u043b\u0438\u0442\u0435\u00a0kafka-acls.sh \u0441\u0442\u043e\u0438\u0442 <em>warning<\/em> &#8212; \u043f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u043f\u0440\u0430\u0432\u0438\u043b \u0441 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u043c <strong>MATCH<\/strong> \u043c\u043e\u0436\u043d\u043e \u043d\u0435\u043d\u0430\u0440\u043e\u043a\u043e\u043c \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0442\u044c.<\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<ol>\n<li>\n<p>\u0420\u0435\u0433\u0443\u043b\u044f\u0440\u0438\u0442\u044c \u0441 \u0430\u043a\u043b\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0432 \u0434\u0432\u0443\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445:<br \/>&#8212; \u0432 \u043f\u043e\u043b\u043d\u044b\u0439 \u0440\u043e\u0441\u0442 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u0430\u0432\u0438\u043b \u043c\u0430\u043f\u043f\u0438\u043d\u0433\u0430<br \/>&#8212; \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430\u043c\u0438 \u043f\u0440\u0438 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421 \u043e\u0441\u043e\u0431\u044b\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c resource-pattern-type=MATCH, \u0438\u0431\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0442\u0435\u0440\u0435\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 <\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0438\u0442\u043e\u0433 role-based access control \u0443 \u043d\u0430\u0441 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f, \u0432\u0435\u0434\u044c \u0440\u043e\u043b\u0438 \u0432\u0441\u0435\u0433\u043e 2, \u0437\u0430\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f\u00a0RULE-based access control. <\/p>\n<\/li>\n<\/ol>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 Ansible Tower \u0438\u043b\u0438 AWX \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0430 \u0438 \u043e\u043d\u0438 \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u0441\u043c\u043e\u0433\u0443\u0442 \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/706892\/\"> https:\/\/habr.com\/ru\/articles\/706892\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"#scroll-bookmark-2\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/a><\/p>\n<p><a href=\"#scroll-bookmark-3\" rel=\"noopener noreferrer nofollow\">\u042d\u0442\u0430\u043f \u043f\u0435\u0440\u0432\u044b\u0439 &#8212; \u0431\u043e\u0440\u0435\u043c\u0441\u044f \u0441 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430\u043c\u0438.<\/a><\/p>\n<p><a href=\"#scroll-bookmark-4\" rel=\"noopener noreferrer nofollow\">\u042d\u0442\u0430\u043f \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0442\u043e\u043f\u0438\u043a\u0438 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439.<\/a><\/p>\n<p><a href=\"#scroll-bookmark-5\" rel=\"noopener noreferrer nofollow\">\u042d\u0442\u0430\u043f \u0442\u0440\u0435\u0442\u0438\u0439 &#8212; \u043f\u0440\u043e\u0441\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0439 \u044d\u0442\u043e.<\/a><\/p>\n<p><a href=\"#scroll-bookmark-6\" rel=\"noopener noreferrer nofollow\">\u042d\u0442\u0430\u043f \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 &#8212; \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c acl\u044b.<\/a><\/p>\n<p><a class=\"anchor\" name=\"scroll-bookmark-2\" id=\"scroll-bookmark-2\"><\/a><\/p>\n<h2>\u0418\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0418\u0442\u0430\u043a \u043c\u044b \u043f\u043e\u043f\u0430\u043b\u0438 \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u043a\u0430\u0444\u043a\u0438 \u0438 \u043d\u0430 \u0443\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 RBAC (role-based access control &#8212; \u0440\u043e\u043b\u0435\u0432\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c).\u00a0<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0443 (<a href=\"https:\/\/docs.confluent.io\/platform\/current\/security\/rbac\/rbac-predefined-roles.html#role-based-access-control-predefined-roles\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.confluent.io\/platform\/current\/security\/rbac\/rbac-predefined-roles.html#role-based-access-control-predefined-roles<\/a>)\u00a0<\/p>\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0440\u0430\u0437\u0443 \u0441\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043d\u0430\u0441 \u0441 \u043d\u0435\u0431\u0430 \u043d\u0430 \u0437\u0435\u043c\u043b\u044e \u0438 \u0443\u043f\u0440\u043e\u0449\u0430\u044e\u0442 \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u043e\u0431\u0438\u043b\u0438\u044f \u0440\u043e\u043b\u0435\u0439. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0445 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c.\u00a0<\/p>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 1.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0440\u043e\u043b\u044c<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u043e\u0435 \u0440\u0430\u0441\u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u0435\u0439<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0420\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c (\u0438 \u0447\u0442\u0435\u0446 \u0438 \u0436\u043d\u0435\u0446 \u0438 \u043d\u0430 \u0434\u0443\u0434\u0435 \u0438\u0433\u0440\u0435\u0446)<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">super.user<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u044d\u043c\u044d\u043d\u0443 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f   \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430.\u00a0\u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0441\u0442   \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0440\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p align=\"left\">\u0421\u044d\u043c\u044d\u043d \u043a\u0430\u043a \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0438\u043a, \u0430   \u043f\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443 SRE \u0438 #\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u0432\u043e\u0435, \u043d\u0435 \u0445\u043e\u0434\u0438\u0442 \u043a \u0420\u041f \u0420\u043e\u043c\u0430\u043d\u0443, \u0420\u041f \u0421\u0435\u0440\u0435\u0433\u0435, \u0420\u041f   \u0414\u0438\u043c\u0435 \u0438 \u0420\u041f &#8230;, \u0430 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u0442\u043e \u0438 \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e   \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c.\u00a0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ResourceOwner<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u043e\u043c\u0430\u043d\u0443 \u0431\u0443\u0434\u0443\u0442   \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0435\u043c\u044b \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c\u00a0finance_.\u00a0\u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435   \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430.\u00a0\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043d   \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f ResourceOwner \u0434\u043b\u044f \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">UserAdmin<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u042e\u0440\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c   \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ClusterAdmin<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043b\u0430\u0432\u0430 &#8212; \u0447\u043b\u0435\u043d   \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 Kafka.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Operator<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043b\u0435\u043d\u044c\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c   \u0437\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438   \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p align=\"left\">\u0414\u0430\u0432\u0430 \u0438 \u041e\u043b\u0435\u043d\u044c\u043a\u0430 \u0445\u043e\u0440\u043e\u0448\u043e   \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0445 \u0431\u043e\u0433\u043e\u0441\u043f\u0430\u0441\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043c \u0440\u044b\u0447\u0430\u0433\u0438 \u043e\u0442   \u0432\u0441\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0421\u044d\u043c\u044d\u043d \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e \u0438\u0434\u0435\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435   \u0447\u0442\u043e \u0442\u0430\u043a\u0438\u0445 \u0414\u0430\u0432 \u0438 \u041e\u043b\u044c\u0433 \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u043a\u0430\u0444\u043a\u0430 \u043a\u043e\u0441\u043e\u0439 \u0434\u0435\u0441\u044f\u0442\u043e\u043a.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">DeveloperRead,   DeveloperWrite, DeveloperManage<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u0430\u0432\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430   \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0418\u0442\u0430\u043a, \u0438\u043c\u0435\u0435\u043c<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0441\u043e\u0432\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u0435\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b 1.<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043a\u0430\u0444\u043a\u0430-\u0437\u0443\u043a\u0438\u043f\u0435\u0440, \u043e\u0431\u043c\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0432\u043a\u0440\u0443\u0433 ssl\u0435\u043c.\u00a0\u00a0<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b X509 (<a href=\"https:\/\/en.wikipedia.org\/wiki\/X.509#Certificates\" rel=\"noopener noreferrer nofollow\">https:\/\/en.wikipedia.org\/wiki\/X.509#Certificates<\/a>).<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0430\u043f\u0440\u0438\u043e\u0440\u0438 \u043c\u044b \u043d\u0435 \u0432\u043b\u0430\u0434\u0435\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043e \u0442\u043e\u043f\u0438\u043a\u0430\u0445 \u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u0445-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0434\u0443\u0442 \u043a \u043d\u0430\u043c \u0437\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0438\u043c (\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u043c-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c) \u0438 \u0445\u043e\u0442\u0438\u043c \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u0438\u0445 \u0438 \u0441\u0432\u043e\u0439 \u0442\u0440\u0443\u0434.<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u043d\u0435\u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0438\u043c\u043e\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435\u00a0\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0442\u0438\u043d\u0443 \u0438<strong>\u00a0<\/strong>\u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0414\u0430\u0432\u0443 \u0438 \u041e\u043b\u0435\u043d\u044c\u043a\u0443 \u043e\u0442 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u041a\u043e\u043b\u0438 \u0438 \u0422\u043e\u043b\u0438, \u0414\u0430\u0448\u0438, \u041c\u0430\u0448\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445.<\/p>\n<p><a class=\"anchor\" name=\"scroll-bookmark-3\" id=\"scroll-bookmark-3\"><\/a><\/p>\n<h2>\u042d\u0442\u0430\u043f \u043f\u0435\u0440\u0432\u044b\u0439 &#8212; \u0431\u043e\u0440\u0435\u043c\u0441\u044f \u0441 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430\u043c\u0438.\u00a0<\/h2>\n<p>\u041f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c RBAC \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c \u0437\u0443\u0434 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432 ACL, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043a\u0430\u0444\u043a\u043e\u0439.<\/p>\n<p>\u041f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><em>\u041a\u043e\u0433\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f   \u043a \u0431\u0440\u043e\u043a\u0435\u0440\u0443 Kafka \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 SSL, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0438\u043c\u044f   \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0444\u043e\u0440\u043c\u0443 \u0438\u043c\u0435\u043d\u0438 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 SSL:CN=<\/em><a href=\"http:\/\/quickstart.confluent.io\/\" rel=\"noopener noreferrer nofollow\"><em>quickstart.confluent.io<\/em><\/a><em>,OU=TEST,O=Sales,L=PaloAlto,ST=Ca,C=US.<\/em><\/p>\n<p align=\"left\"><em>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e   \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u043d\u0435\u0442 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432.<\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e<strong> \u043a\u0430\u0444\u043a\u0435 \u043d\u0430\u0434\u043e \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u0443\u0431\u044a\u0435\u043a\u0442 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0422\u043e \u0435\u0441\u0442\u044c CN=xxx,OU=yyy,O=zzz \u043d\u0435 \u0440\u0430\u0432\u043d\u043e\u00a0O=zzz,OU=yyy,CN=xxx.<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u043e\u043d\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430\u043c! \u0421\u0435\u0439\u0447\u0430\u0441 \u043e\u0442\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u0438\u043c CN\u00a0 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b kafka-acls \u0438 \u043f\u043e\u0439\u0434\u0435\u043c \u043f\u0438\u0442\u044c<s>\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0435<\/s> \u0447\u0430\u0439. \u041d\u043e, \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u044c \u0432 shell \u0447\u0442\u043e-\u0442\u043e \u0432\u0438\u0434\u0430\u00a0<\/p>\n<pre><code class=\"bash\">kafka-acls --bootstrap-server localhost:9092 --command-config adminclient-configs.conf \\ --add --allow-principal User:CN=priklad*fromDAVA.confluent.io,OU=TEST,O=Sales,L=PaloAlto,ST=Ca,C=US\\ --allow-host host-2 --operation read --operation write --topic finance_topic_from_Dava --topic finance_topic_from_Olga<\/code><\/pre>\n<p>\u043d\u0430\u0441 \u043d\u0430\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0438\u0431\u043e\u00a0AclAuthorizer \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e priklad*fromDAVA.confluent.io\u00a0\u0438 \u043e\u0442\u0441\u044b\u043f\u043b\u0435\u0442 \u043d\u0430\u043c \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043b\u043e\u0433.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0437\u0430\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0432\u0440\u043e\u0434\u0435 OU &#8212; \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435.<\/p>\n<pre><code class=\"bash\">kafka-acls --bootstrap-server   localhost:9092 --command-config   adminclient-configs.conf \\ --add --allow-principal   User:CN=prikladfromDAVA.confluent.io,OU=*,O=Sales,L=PaloAlto,ST=Ca,C=US\\ --allow-host host-2 --operation read --operation write   --topic finance_topic_from_Dava --topic finance_topic_from_Olga<\/code><\/pre>\n<p>\u0427\u0438\u0442\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438 \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b\u00a0ssl.principal.mapping.rules\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"bash\">RULE:^CN=(.*?),OU=ServiceUsers.*$\/$1\/, RULE:^CN=(.*?),OU=(.*?),O=(.*?),L=(.*?),ST=(.*?),C=(.*?)$\/$1@$2\/L, RULE:^.*[Cc][Nn]=([a-zA-Z0-9.]*).*$\/$1\/L, DEFAULT<\/code><\/pre>\n<p>\u041c\u043c\u043c, \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043e\u0447\u043a\u0430&#8230; \u0442\u043e\u0447\u043a\u0430 \u043e\u043f\u043e\u0440\u044b \u043d\u0430\u0439\u0434\u0435\u043d\u0430. \u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 (<a href=\"https:\/\/docs.confluent.io\/platform\/current\/kafka\/configure-mds\/mutual-tls-auth-rbac.html#how-the-regex-works\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.confluent.io\/platform\/current\/kafka\/configure-mds\/mutual-tls-auth-rbac.html#how-the-regex-works<\/a>)? \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f SSL \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0435\u00a0CN=writeuser,OU=Unknown,O=Unknown,L=Unknown,ST=Unknown,C=Unknown.\u00a0\u042d\u0442\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u043b\u0438\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043c\u0435\u043d\u0438 X.500 (DN) \u0441 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c.\u00a0<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0430\u0436\u043d\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: <strong>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 DN, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0435\u0433\u043e \u0441 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c.\u00a0\u0412\u0441\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f.\u00a0<\/strong><\/p>\n<p>\u0418\u0442\u0430\u043a,\u00a0 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0440\u0435\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441 \u0437\u0430\u0432\u0438\u0434\u043d\u043e\u0439 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c\u044e, \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 acl:<\/p>\n<pre><code class=\"bash\">Current ACLs for resource   ResourcePattern(resourceType=TOPIC, name=*, patternType=LITERAL): (principal=User:this_kafka_superuser,   host=*, operation=WRITE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=READ, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DELETE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=CREATE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=ALTER, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE_CONFIGS, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=ALTER_CONFIGS, permissionType=ALLOW)  Current ACLs for resource   ResourcePattern(resourceType=CLUSTER, name=kafka-cluster,   patternType=LITERAL): (principal=User:this_kafka_superuser,   host=*, operation=CLUSTER_ACTION, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=CREATE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=ALTER, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE_CONFIGS, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=ALTER_CONFIGS, permissionType=ALLOW)  Current ACLs for resource   ResourcePattern(resourceType=GROUP, name=*, patternType=LITERAL): (principal=User:this_kafka_superuser,   host=*, operation=READ, permissionType=ALLOW) (principal=User:this_kafka_superuser,   host=*, operation=DESCRIBE, permissionType=ALLOW)<\/code><\/pre>\n<p>\u0412 config\/server.properties \u0434\u043e\u0431\u0430\u0432\u0438\u043c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\">ssl.principal.mapping.rules=RULE:^CN=kafka-name[-3].*.my.domain.zone.*$\/this_kafka_superuser\/,DEFAULT<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u043e \u0441\u0443\u0442\u0438 \u0442\u0430\u043a \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043b\u0430 \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435.<\/p>\n<p><strong>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/strong> \u0421\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0431\u0440\u043e\u043a\u0435\u0440\u0430.<\/p>\n<p>\u0421\u043f\u0438\u0441\u043a\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u0434\u0430\u043b\u0435\u0435 &#8212; \u0430\u043a\u043b\u044b)\u00a0 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e bash-\u0441\u0438\u0431\u043b\u043e\u043c (\u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0435\u0433\u043e \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0443).<\/p>\n<p><a class=\"anchor\" name=\"scroll-bookmark-4\" id=\"scroll-bookmark-4\"><\/a><\/p>\n<h2>\u042d\u0442\u0430\u043f \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; \u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0442\u043e\u043f\u0438\u043a\u0438 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439.<\/h2>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c RBAC \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0442\u043e\u043f\u0438\u043a\u043e\u0432 \u0434\u044b\u0448\u0430\u0442\u044c \u0432 \u0438\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u0443. \u0412\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 (\u0438\u0437\u0432\u0438\u043d\u0438\u0442\u0435 \u0437\u0430 \u043e\u0434\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u043e\u0440\u0433\u044e\u043d\u0438\u0442\u0430, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043b\u044e\u0431\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430):<\/p>\n<pre><code class=\"bash\">ssl.principal.mapping.rules= RULE:^CN=kafka-name[-3].*.my.domain.zone.*$\/this_kafka_superuser\/, RULE:^CN=.*.kadri.domain.zone.*$\/kadri\/, RULE:^CN=.*.finiki.domain.zone.*$\/finiki\/, RULE:^CN=.*.axo.domain.zone.*$\/axo\/, RULE:^CN=.*.managers.domain.zone.*$\/managers\/, RULE:^CN=.*.reserv1.domain.zone.*$\/reserv1\/, RULE:^CN=.*.reserv2.domain.zone.*$\/reserv2\/, RULE:^CN=.*.my.domain.zone.*$\/only_describe_user\/, DEFAULT<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u044d\u0442\u0438\u043c \u0440\u043e\u043b\u044f\u043c-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0442\u043e\u043f\u0438\u043a\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b.\u00a0 \u0417\u0434\u0435\u0441\u044c \u043e\u043f\u044f\u0442\u044c \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0430 \u0432\u0435\u0440\u043d\u0435\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.\u00a0<br \/> <a href=\"https:\/\/docs.confluent.io\/platform\/current\/kafka\/authorization.html#prefixed-acls\" rel=\"noopener noreferrer nofollow\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a> \u0442\u0430\u043a \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043d\u0430\u043c:\u00a0\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b ACL, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u0438\u0431\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 LITERAL (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e), \u0442\u0438\u043f \u0448\u0430\u0431\u043b\u043e\u043d\u0430 PREFIXED, \u043b\u0438\u0431\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0437\u043d\u0430\u043a (\u00a0*), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0432\u0441\u0435. \u0418 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0446\u0435\u043b\u0435\u0439.<\/p>\n<pre><code># \/opt\/Apache\/kafka\/bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   \/opt\/Apache\/kafka\/config\/server.properties --add --allow-principal \"User:kadri\" --topic kadri-   --resource-pattern-type=PREFIXED --producer # \/opt\/Apache\/kafka\/bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   \/opt\/Apache\/kafka\/config\/server.properties --add --allow-principal \"User:kadri\" --topic kadri-   --resource-pattern-type=PREFIXED --operation Read   Current ACLs for resource   ResourcePattern(resourceType=TOPIC, name=kadri-, patternType=PREFIXED):  \u00a0   (principal=User:kadri, host=*, operation=WRITE, permissionType=ALLOW) \u00a0   (principal=User:kadri, host=*, operation=READ, permissionType=ALLOW) \u00a0   (principal=User:kadri, host=*, operation=CREATE, permissionType=ALLOW) \u00a0   (principal=User:kadri, host=*, operation=DESCRIBE,   permissionType=ALLOW)<\/code><\/pre>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432 \u043e\u0431\u0449\u0435\u043c \u0432\u0438\u0434\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434 \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434:<\/p>\n<pre><code># bin\/kafka-acls.sh   --bootstrap-server=$HOSTNAME:9093 --command-config   config\/server.properties \\ --add --allow-principal \"User:{{ username }}\" --topic {{ prefix_for_username }} \\ --resource-pattern-type=PREFIXED \\ --operation WRITE --operation READ  --operation CREATE --operation DESCRIBE<\/code><\/pre>\n<p>\u0415\u0449\u0435 \u0440\u0430\u0437 \u043d\u0430\u043f\u043e\u043c\u043d\u044e \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c acl\u044b:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-409800","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/409800","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=409800"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/409800\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=409800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=409800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=409800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}