{"id":500047,"date":"2026-10-23T18:36:56","date_gmt":"2026-10-23T15:36:56","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=500047"},"modified":"2026-10-23T18:36:56","modified_gmt":"2026-10-23T15:36:56","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=500047","title":{"rendered":"Axelix 1.3 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0442\u0435\u043a"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u041d\u0430 \u0441\u0432\u044f\u0437\u0438 \u041c\u0438\u0445\u0430\u0438\u043b \u041f\u043e\u043b\u0438\u0432\u0430\u0445\u0430, \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043b\u0438\u0434\u0435\u0440 <a href=\"https:\/\/github.com\/axelixlabs\/axelix\" rel=\"noopener nofollow\">Open Source \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Axelix<\/a> (give us a star!).<\/p>\n<p>\u042f \u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u043b, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0438\u043b\u0438 \u043d\u043e\u0432\u043e\u0441\u0442\u044c\u044e, \u043d\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0432\u0441\u0451 \u0436\u0435, \u0440\u0435\u0448\u0438\u043b\u0438 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0441\u0442\u044c \ud83d\ude42<\/p>\n<p>\u0412 \u043d\u043e\u044f\u0431\u0440\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 Axelix 1.3. \u041e\u0434\u043d\u043e \u0438\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0440\u0435\u043b\u0438\u0437\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e Spring Boot \u0441\u0442\u0430\u0440\u0442\u0435\u0440\u044b Axelix \u043d\u0430\u0447\u043d\u0443\u0442 \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043d\u0430 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u0442\u0435\u043a\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 Spring WebFlux \u0441 Reactor Netty. \u0420\u0430\u043d\u044c\u0448\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u0435\u0440 \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0431\u044b\u043b\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0438 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0437 Axelix Master \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u044b\u0435.<\/p>\n<p>\u042d\u0442\u043e \u043e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0447\u0430\u0441\u0442\u044b\u0445 \u043f\u0440\u043e\u0441\u044c\u0431 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u043f\u0438\u0441\u0430\u043b \u043d\u0430\u043c \u043e \u043d\u0435\u0439 \u0432 <a href=\"https:\/\/t.me\/axelix_official\/39\" rel=\"noopener nofollow\">Telegram-\u043a\u0430\u043d\u0430\u043b\u0435<\/a> \u0438 \u0432 issues. \u042f \u043b\u0438\u0447\u043d\u043e \u0432\u0441\u0442\u0435\u0440\u0442\u0438\u043b \u043d\u0430 \u0440\u044f\u0434\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c 4 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 Project Reactor-\u0430. \u041c\u044b \u043e\u0446\u0435\u043d\u0438\u043b\u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431 \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/p>\n<p>\u041d\u0438\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0441\u0430\u043c Spring Boot Actuator.<\/p>\n<h3>\u0427\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/h3>\n<p>\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u0435\u0440 \u0432 WebFlux-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"kotlin\">dependencies {    implementation(\"org.springframework.boot:spring-boot-starter-webflux\")    implementation(\"org.springframework.boot:spring-boot-starter-actuator\")    implementation(\"com.axelixlabs:axelix-spring-boot-4-starter:1.3.0\")}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u0421\u0442\u0430\u0440\u0442\u0435\u0440 \u0441\u0430\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442 \u0442\u0438\u043f \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (<code>SERVLET<\/code> \u0438\u043b\u0438 <code>REACTIVE<\/code>) \u0438 \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u0442 \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432 Axelix Master, \u0438 \u0432 UI \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0431\u0438\u043d\u044b, environment, configuration properties, \u043b\u043e\u0433\u0433\u0435\u0440\u044b \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b.<\/p>\n<h3>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430: \u043a\u0430\u043a \u0441\u0442\u0430\u0440\u0442\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0440\u0430\u043d\u044c\u0448\u0435<\/h3>\n<p>\u0421\u0442\u0430\u0440\u0442\u0435\u0440 Axelix \u044d\u0442\u043e \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 Actuator-\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u043e\u0432 (<code>\/actuator\/axelix-env<\/code>, <code>\/actuator\/axelix-configprops<\/code> \u0438 \u0442.\u0434.) \u0438 \u043d\u0430\u0431\u043e\u0440 RBAC \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0435 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442.<\/p>\n<details class=\"spoiler\">\n<summary>Hidden text<\/summary>\n<div class=\"spoiler__content\">\n<p> P.S: \u041c\u044b \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u043e, *\u043c\u043d\u043e\u0433\u043e* \u0440\u0430\u0437 \u043f\u043e\u0436\u0430\u043b\u0435\u043b\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0442\u0430\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u044c Axelix \u043f\u0443\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0445 Actuator endpoints. \u0414\u0443\u043c\u0430\u044e, \u0441\u043a\u043e\u0440\u043e \u043c\u044b \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u043c \u0432\u043e\u0440\u043f\u043e\u0441 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c.  <\/p>\n<\/div>\n<\/details>\n<p>Master \u0445\u043e\u0434\u0438\u0442 \u0432 \u044d\u0442\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0441 \u0442\u043e\u043a\u0435\u043d\u043e\u043c, \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0438 \u043f\u0440\u0430\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0430 \u0432\u0430\u0436\u043d\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u043b\u0438 \u043d\u0435 \u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>axelix-env<\/code> \u043c\u0430\u0441\u043a\u0438\u0440\u0443\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u0435\u0441\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0435\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 authority, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <code>ENV_VALUES_READ<\/code>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e Spring-\u043e\u0432\u044b\u0439 enviornment \u043c\u043e\u0436\u0435\u0442 \u0438 \u0447\u0430\u0441\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0435\u043d\u0441\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a API \u043a\u043b\u044e\u0447\u0438, \u0423\u0417 \u043a \u0431\u0430\u0437\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442.\u0434. \u0421\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439, \u0442\u0443\u0442 \u043d\u0443\u0436\u0435\u043d RBAC, \u0438 Axelix \u0435\u0433\u043e \u0434\u0430\u0442\u0435 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<\/p>\n<p>\u041d\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c. \u0418\u0437 \u043f\u0440\u043c\u0438\u0435\u0440\u0430 c env \u044f \u0434\u0443\u043c\u0430\u044e, \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e <strong>\u043d\u0430\u0448\u0438\u043c \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u043a\u0442\u043e \u0435\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u043b<\/strong>.<\/p>\n<p>\u041d\u0430 \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u043e\u043c \u0441\u0442\u0435\u043a\u0435 \u044d\u0442\u043e \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e: \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u043f\u043e\u0442\u043e\u043a\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0438\u043b\u044c\u0442\u0440 \u043a\u043b\u0430\u0434\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0432 <code>ThreadLocal<\/code>, \u0430 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u043d\u0438\u0436\u0435 \u043f\u043e \u0446\u0435\u043f\u043e\u0447\u043a\u0435 \u0435\u0433\u043e \u043e\u0442\u0442\u0443\u0434\u0430 \u0447\u0438\u0442\u0430\u0435\u0442:<\/p>\n<pre><code class=\"java\">\/\/ JwtAuthorizationFilter (Servlet)User user = webIdentityAccessManager.verifyAccess(relativePath, method, token);securityContextExecutor.runWithinSecurityContext(        () -&gt; filterChain.doFilter(request, response),   \/\/ \u0432\u0435\u0441\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435        new DefaultSecurityContext(user, token));<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<pre><code> Servlet: thread-per-request \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500  http-nio-exec-7 \u2502 JwtFilter \u2500\u2500\u25ba ThreadLocal.set(ctx)                  \u2502      \u2502                  \u2502      \u25bc                  \u2502 \/actuator\/axelix-env \u2500\u2500\u25ba ThreadLocal.get() \u2714                  \u2502      \u2502                  \u2502      \u25bc                  \u2502 ThreadLocal.clear() \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u042d\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u043d\u043e\u0432\u0430\u044f, \u0441\u0430\u043c Spring Framework \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0435\u0451 \u0430\u043a\u0442\u0438\u0432\u043d\u043e, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 Spring Security \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0435\u0451 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f <code>SecurityContext<\/code>.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0430 WebFlux \u0442\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f<\/h3>\n<p>\u0412 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0432\u0441\u0451 \u0438\u043d\u0430\u0447\u0435:<\/p>\n<ol>\n<li>\n<p><strong>\u041d\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a \u043f\u043e\u0442\u043e\u043a\u0443.<\/strong> \u0417\u0430\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 event loop Netty, \u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c. <code>ThreadLocal<\/code>, \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 \u0444\u0438\u043b\u044c\u0442\u0440\u0435, \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442. \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0441\u0440\u0435\u0434\u0438 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 Project Reactor \u0438 \u043e\u043d\u0438 \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u0443 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u0442\u0435\u043a\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 <a href=\"https:\/\/projectreactor.io\/docs\/core\/release\/reference\/advancedFeatures\/context.html\" rel=\"noopener nofollow\">Context API<\/a>. \u0412 \u0446\u0435\u043b\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0435\u0433\u043e, \u043d\u043e \u0441 \u043d\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439 \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p><strong>Event loop \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/strong> \u041f\u043e\u0442\u043e\u043a\u043e\u0432 <code>reactor-http-nio-*<\/code> \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0436\u0435, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0434\u0435\u0440. \u0415\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 Axelix, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e \u043f\u0440\u0438\u0440\u043e\u0434\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043d\u044f\u0442\u0438\u0435 heap dump-\u0430 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0438\u043b\u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 Thread Dump \u043d\u0430 \u0436\u0438\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435 (\u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u0441\u0442\u0430\u0442\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043d\u0430\u0441 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u0430. \u0427\u0443\u0442\u044c \u043d\u0438\u0436\u0435 \u043f\u043e\u0439\u043c\u0435\u0442\u0435, \u0447\u0442\u043e \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0434\u0435\u043b\u0430\u0435\u0442 Spring Boot).<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u043d\u0435\u0442.<\/strong> \u0412\u043c\u0435\u0441\u0442\u043e <code>OncePerRequestFilter<\/code> \u0438 <code>FilterRegistrationBean<\/code> \u0442\u0430\u043c <code>WebFilter<\/code>, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e <code>HttpServletRequest<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>ServerWebExchange<\/code>.<\/p>\n<\/li>\n<\/ol>\n<pre><code> WebFlux: event loop, \u0431\u0435\u0437 ThreadLocal \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500  reactor-http-nio-2 \u2502 JwtFilter \u2500\u2500\u25ba ThreadLocal.set(ctx)                     \u2502      \u2502                     \u2502      \u25bc  (\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0443\u0439\u0442\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0442\u043e\u043a)  reactor-http-nio-5 \u2502 \/actuator\/axelix-env \u2500\u2500\u25ba ThreadLocal.get() \u2718 null                     \u2502                         + \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430                     \u2502                           \u043d\u0430 event loop \u2718 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<h3>\u041a\u0430\u043a Spring Boot Actuator \u0440\u0435\u0448\u0430\u0435\u0442 \u0442\u0443 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443<\/h3>\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b Actuator (<code>\/actuator\/threaddump<\/code>, <code>\/actuator\/heapdump<\/code>, \u0438 \u0442.\u0434.) \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0435, \u043d\u043e \u0432 WebFlux-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u043e\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0434\u0432\u0443\u043c\u044f \u043f\u0440\u0438\u0451\u043c\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><strong>\u0411\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0443\u0445\u043e\u0434\u044f\u0442 \u0441 event loop.<\/strong> \u0415\u0441\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0430 \u043d\u0435 <code>Mono<\/code>\/<code>Flux<\/code>, Actuator \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0451 \u0447\u0435\u0440\u0435\u0437 <code>Mono.fromCallable(...)<\/code> \u0438 <code>subscribeOn(Schedulers.boundedElastic())<\/code>, \u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0443\u043b\u0435, \u0433\u0434\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f <em>\u0432 \u0446\u0435\u043b\u043e\u043c \u043c\u043e\u0436\u043d\u043e<\/em>.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0438\u0437 exchange, \u0430 \u043d\u0435 \u0438\u0437 \u043f\u043e\u0442\u043e\u043a\u0430.<\/strong> \u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0438\u0437 <code>ServerWebExchange.getPrincipal()<\/code> \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u044f\u0432\u043d\u043e, \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u044b\u0437\u043e\u0432\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 Axelix \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 Spring Boot.<\/p>\n<h3>\u041a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432 Axelix 1.3<\/h3>\n<h4>1. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440<\/h4>\n<p>\u0421\u0442\u0430\u0440\u0442\u0435\u0440 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0432\u0443\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0438\u043f\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"java\">@Configuration(proxyBeanMethods = false)@ConditionalOnWebApplication(type = Type.SERVLET)static class ServletJwtAuthConfiguration { \u00a0 \u00a0     \/\/ FilterRegistrationBean&lt;JwtAuthorizationFilter&gt;}\u200b@Configuration(proxyBeanMethods = false)@ConditionalOnWebApplication(type = Type.REACTIVE)static class ReactiveJwtAuthConfiguration { \u00a0 \u00a0     @Bean     ReactiveJwtAuthorizationFilter reactiveJwtAuthorizationFilter(...) { ... }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435, \u0444\u0438\u043b\u044c\u0442\u0440 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 Actuator: \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0438\u043b\u0438 \u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c management-\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435, \u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 <code>management.server.port<\/code>.<\/p>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0432 Spring Boot \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0442\u0435\u043c\u0430, \u043c\u044b \u0434\u0430\u0436\u0435 \u043d\u0435\u0447\u0430\u044f\u043d\u043d\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 <a href=\"https:\/\/github.com\/axelixlabs\/axelix\/security\/advisories\/GHSA-gq4j-56mw-8f43\" rel=\"noopener nofollow\">CVE \u0432 Axelix<\/a>, \u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043b\u0438 \u0432 1.2.1.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u044b \u0432 Spring Framework \u0432 \u0446\u0435\u043b\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 Spring Boot \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430. \u041d\u043e \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u0435\u0441\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0442\u0443 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e (\u043d\u0430\u043c\u0435\u0440\u044f\u043d\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u0442). \u041e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u044d\u0442\u043e \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Spring Boot Actuator \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u043c \u043f\u043e\u0440\u0442\u0443, \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u044b\u0448\u0435.<\/p>\n<p>\u0414\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432 \u0442\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0438\u043d \u0425, \u0438 \u043e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435, \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0435\u0433\u043e \u043d\u0435\u0442 (\u0447\u0430\u0441\u0442\u044b\u0439 \u043a\u0435\u0439\u0441).<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0431\u0438\u043d\u044b \u0438\u0437 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0431\u0438\u043d \u0425, \u043e\u043d\u0438 \u0435\u0433\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0410 \u0432\u043e\u0442 \u043a\u043e\u0433\u0434\u0430 \u0431\u0438\u043d Y \u0438\u0437 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0431\u0438\u043d X, \u0442\u043e \u043e\u043d \u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442. \u041f\u043e\u0438\u0441\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445, \u043d\u043e \u043d\u0435 \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u0430\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a CVE, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u043c\u0435\u0442\u0438\u043b\u0438. \u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u202f\u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0442\u0435\u043c\u0430, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0442\u043e\u0438\u0442 \u0435\u0451 \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.  \u041f\u0438\u0448\u0438\u0442\u0435, \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \ud83d\ude09.<\/p>\n<h4>2. \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0435\u0434\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c<\/h4>\n<p><code>ReactiveJwtAuthorizationFilter<\/code> \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0438 \u043f\u0440\u0430\u0432\u0430 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u044b\u0439, \u043d\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435 \u043a\u043b\u0430\u0434\u0451\u0442 \u0432 <code>ThreadLocal<\/code>. \u041e\u043d \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 Java-\u043e\u0432\u044b\u0439 <code>Principal<\/code> \u0438 \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 \u0435\u0433\u043e \u0432 exchange:<\/p>\n<pre><code class=\"java\">User user = webIdentityAccessManager.verifyAccess(relativePath, method, token);var principal = new AxelixPrincipal(new DefaultSecurityContext(user, token));ServerWebExchange axelixExchange = exchange.mutate()        .request(new BoundedElasticBodyRequest(request))  \/\/ \u0442\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u043e\u0436\u0435 \u0447\u0438\u0442\u0430\u0435\u043c \u043d\u0435 \u043d\u0430 event loop        .principal(Mono.just(principal))                  \/\/ \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0435\u0434\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c        .build();return chain.filter(axelixExchange)        .subscribeOn(Schedulers.boundedElastic());        \/\/ \u0443\u0445\u043e\u0434\u0438\u043c \u0441 event loop, \u043a\u0430\u043a Actuator<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041e\u0448\u0438\u0431\u043a\u0438 \u0442\u043e\u043a\u0435\u043d\u0430 (\u043f\u0440\u043e\u0441\u0440\u043e\u0447\u0435\u043d, \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u0435\u043d, \u043d\u0435 \u043f\u0430\u0440\u0441\u0438\u0442\u0441\u044f) \u0434\u0430\u044e\u0442 <code>401<\/code>, \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0430 \u043f\u0440\u0430\u0432 \u0434\u0430\u0451\u0442 <code>403<\/code>, \u043a\u0430\u043a \u0438 \u0432 \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<h4>3. \u042d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438\u0437 Principal<\/h4>\n<p>\u042d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 <code>Principal<\/code> \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u0432\u043e\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043d\u0451\u043c \u043b\u0435\u0436\u0438\u0442:<\/p>\n<pre><code>@ReadOperationpublic EnvironmentFeed environment(@Nullable String pattern, @Nullable Principal principal) {    return AxelixPrincipal.callWithin(            principal, securityContextExecutor,            () -&gt; environmentService.getEnvironmentFeed(pattern));}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><code>callWithin<\/code> \u0441\u0442\u0430\u0432\u0438\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0437\u043e\u0432\u0430, \u0443\u0436\u0435 \u043d\u0430 \u043f\u043e\u0442\u043e\u043a\u0435 <code>boundedElastic<\/code>, \u0438 \u0441\u043d\u0438\u043c\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435. \u0411\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0430 \u0441\u0442\u0430\u0440\u0442\u0435\u0440\u0430 (\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u0430\u0432) \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0439 \u0436\u0435 \u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u0441\u0442\u0435\u043a\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>\u041a\u0430\u043a \u0438\u0442\u043e\u0433, \u043c\u044b \u043d\u0435 \u0441\u0442\u0430\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 (\u0447\u0435\u0433\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0442\u0430\u043a \u0441\u0438\u043b\u044c\u043d\u043e \u0431\u043e\u044f\u043b\u0438\u0441\u044c, \u0442.\u043a. \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f). \u0418\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u043e \u043d\u0438\u0445.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 <a href=\"https:\/\/github.com\/axelixlabs\/axelix\/pull\/1812\" rel=\"noopener nofollow\">PR #1812<\/a>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 WebFlux \u0432 \u043f\u0440\u043e\u0434\u0435, \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0434\u044b, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441\u0432\u043e\u0438\u043c\u0438 \u044e\u0437 \u043a\u0435\u0439\u0441\u0430\u043c\u0438, \u043c\u044b \u043f\u0440\u0430\u0432\u0434\u0430 \u043d\u0430 \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u041f\u0438\u0448\u0438\u0442\u0435, \u0447\u0442\u043e \u0435\u0449\u0451 \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 Axelix: \u0432 <a href=\"https:\/\/t.me\/axelix_official\" rel=\"noopener nofollow\">Telegram<\/a> \u0438\u043b\u0438 \u0432 <a href=\"https:\/\/github.com\/axelixlabs\/axelix\/issues\" rel=\"noopener nofollow\">GitHub Issues<\/a>.<\/p>\n<p>\u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1098680\/\">https:\/\/habr.com\/ru\/articles\/1098680\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u041d\u0430 \u0441\u0432\u044f\u0437\u0438 \u041c\u0438\u0445\u0430\u0438\u043b \u041f\u043e\u043b\u0438\u0432\u0430\u0445\u0430, \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043b\u0438\u0434\u0435\u0440 Open Source \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Axelix (give us a star!).\u042f \u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u043b, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0438\u043b\u0438 \u043d\u043e\u0432\u043e\u0441\u0442\u044c\u044e, \u043d\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0432\u0441\u0451 \u0436\u0435, \u0440\u0435\u0448\u0438\u043b\u0438 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0441\u0442\u044c :)\u0412 \u043d\u043e\u044f\u0431\u0440\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 Axelix 1.3. \u041e\u0434\u043d\u043e \u0438\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0440\u0435\u043b\u0438\u0437\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e Spring Boot \u0441\u0442\u0430\u0440\u0442\u0435\u0440\u044b Axelix \u043d\u0430\u0447\u043d\u0443\u0442 \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043d\u0430 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u0442\u0435\u043a\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 Spring WebFlux \u0441 Reactor Netty. \u0420\u0430\u043d\u044c\u0448\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u0435\u0440 \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0431\u044b\u043b\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0438 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0437 Axelix Master \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u044b\u0435.\u042d\u0442\u043e \u043e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0447\u0430\u0441\u0442\u044b\u0445 \u043f\u0440\u043e\u0441\u044c\u0431 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u043f\u0438\u0441\u0430\u043b \u043d\u0430\u043c \u043e \u043d\u0435\u0439 \u0432 Telegram-\u043a\u0430\u043d\u0430\u043b\u0435 \u0438 \u0432 issues. \u042f \u043b\u0438\u0447\u043d\u043e \u0432\u0441\u0442\u0435\u0440\u0442\u0438\u043b \u043d\u0430 \u0440\u044f\u0434\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c 4 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 Project Reactor-\u0430. \u041c\u044b \u043e\u0446\u0435\u043d\u0438\u043b\u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431 \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u041d\u0438\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0441\u0430\u043c Spring Boot Actuator.\u0427\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u0435\u0440 \u0432 WebFlux-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:dependencies {    implementation(&#171;org.springframework.boot:spring-boot-starter-webflux&#187;)    implementation(&#171;org.springframework.boot:spring-boot-starter-actuator&#187;)    implementation(&#171;com.axelixlabs:axelix-spring-boot-4-starter:1.3.0&#187;)}\u0421\u0442\u0430\u0440\u0442\u0435\u0440 \u0441\u0430\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442 \u0442\u0438\u043f \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (SERVLET \u0438\u043b\u0438 REACTIVE) \u0438 \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u0442 \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432 Axelix Master, \u0438 \u0432 UI \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0431\u0438\u043d\u044b, environment, configuration properties, \u043b\u043e\u0433\u0433\u0435\u0440\u044b \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b.\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430: \u043a\u0430\u043a \u0441\u0442\u0430\u0440\u0442\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0440\u0430\u043d\u044c\u0448\u0435\u0421\u0442\u0430\u0440\u0442\u0435\u0440 Axelix \u044d\u0442\u043e \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 Actuator-\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u043e\u0432 (\/actuator\/axelix-env, \/actuator\/axelix-configprops \u0438 \u0442.\u0434.) \u0438 \u043d\u0430\u0431\u043e\u0440 RBAC \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0435 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442.Hidden text P.S: \u041c\u044b \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u043e, *\u043c\u043d\u043e\u0433\u043e* \u0440\u0430\u0437 \u043f\u043e\u0436\u0430\u043b\u0435\u043b\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0442\u0430\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u044c Axelix \u043f\u0443\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0445 Actuator endpoints. \u0414\u0443\u043c\u0430\u044e, \u0441\u043a\u043e\u0440\u043e \u043c\u044b \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u043c \u0432\u043e\u0440\u043f\u043e\u0441 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c.  Master \u0445\u043e\u0434\u0438\u0442 \u0432 \u044d\u0442\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0441 \u0442\u043e\u043a\u0435\u043d\u043e\u043c, \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0438 \u043f\u0440\u0430\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.\u041f\u0440\u0430\u0432\u0430 \u0432\u0430\u0436\u043d\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u043b\u0438 \u043d\u0435 \u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, axelix-env \u043c\u0430\u0441\u043a\u0438\u0440\u0443\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u0435\u0441\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0435\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 authority, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e ENV_VALUES_READ. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e Spring-\u043e\u0432\u044b\u0439 enviornment \u043c\u043e\u0436\u0435\u0442 \u0438 \u0447\u0430\u0441\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0435\u043d\u0441\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a API \u043a\u043b\u044e\u0447\u0438, \u0423\u0417 \u043a \u0431\u0430\u0437\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442.\u0434. \u0421\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439, \u0442\u0443\u0442 \u043d\u0443\u0436\u0435\u043d RBAC, \u0438 Axelix \u0435\u0433\u043e \u0434\u0430\u0442\u0435 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.\u041d\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c. \u0418\u0437 \u043f\u0440\u043c\u0438\u0435\u0440\u0430 c env \u044f \u0434\u0443\u043c\u0430\u044e, \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0448\u0438\u043c \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u043a\u0442\u043e \u0435\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u043b.\u041d\u0430 \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u043e\u043c \u0441\u0442\u0435\u043a\u0435 \u044d\u0442\u043e \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e: \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u043f\u043e\u0442\u043e\u043a\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0438\u043b\u044c\u0442\u0440 \u043a\u043b\u0430\u0434\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0432 ThreadLocal, \u0430 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u043d\u0438\u0436\u0435 \u043f\u043e \u0446\u0435\u043f\u043e\u0447\u043a\u0435 \u0435\u0433\u043e \u043e\u0442\u0442\u0443\u0434\u0430 \u0447\u0438\u0442\u0430\u0435\u0442:\/\/ JwtAuthorizationFilter (Servlet)User user = webIdentityAccessManager.verifyAccess(relativePath, method, token);securityContextExecutor.runWithinSecurityContext(        () -&gt; filterChain.doFilter(request, response),   \/\/ \u0432\u0435\u0441\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435        new DefaultSecurityContext(user, token)); Servlet: thread-per-request \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500  http-nio-exec-7 \u2502 JwtFilter \u2500\u2500\u25ba ThreadLocal.set(ctx)                  \u2502      \u2502                  \u2502      \u25bc                  \u2502 \/actuator\/axelix-env \u2500\u2500\u25ba ThreadLocal.get() \u2714                  \u2502      \u2502                  \u2502      \u25bc                  \u2502 ThreadLocal.clear() \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u042d\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u043d\u043e\u0432\u0430\u044f, \u0441\u0430\u043c Spring Framework \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0435\u0451 \u0430\u043a\u0442\u0438\u0432\u043d\u043e, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 Spring Security \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0435\u0451 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f SecurityContext.\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0430 WebFlux \u0442\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f\u0412 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0432\u0441\u0451 \u0438\u043d\u0430\u0447\u0435:\u041d\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a \u043f\u043e\u0442\u043e\u043a\u0443. \u0417\u0430\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 event loop Netty, \u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c. ThreadLocal, \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 \u0444\u0438\u043b\u044c\u0442\u0440\u0435, \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442. \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0441\u0440\u0435\u0434\u0438 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 Project Reactor \u0438 \u043e\u043d\u0438 \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u0443 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u0442\u0435\u043a\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 Context API. \u0412 \u0446\u0435\u043b\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0435\u0433\u043e, \u043d\u043e \u0441 \u043d\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439 \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c.Event loop \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041f\u043e\u0442\u043e\u043a\u043e\u0432 reactor-http-nio-* \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0436\u0435, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0434\u0435\u0440. \u0415\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 Axelix, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e \u043f\u0440\u0438\u0440\u043e\u0434\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043d\u044f\u0442\u0438\u0435 heap dump-\u0430 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0438\u043b\u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 Thread Dump \u043d\u0430 \u0436\u0438\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435 (\u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u0441\u0442\u0430\u0442\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043d\u0430\u0441 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u0430. \u0427\u0443\u0442\u044c \u043d\u0438\u0436\u0435 \u043f\u043e\u0439\u043c\u0435\u0442\u0435, \u0447\u0442\u043e \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0434\u0435\u043b\u0430\u0435\u0442 Spring Boot).\u0421\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u043d\u0435\u0442. \u0412\u043c\u0435\u0441\u0442\u043e OncePerRequestFilter \u0438 FilterRegistrationBean \u0442\u0430\u043c WebFilter, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e HttpServletRequest \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f ServerWebExchange. WebFlux: event loop, \u0431\u0435\u0437 ThreadLocal \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500  reactor-http-nio-2 \u2502 JwtFilter \u2500\u2500\u25ba ThreadLocal.set(ctx)                     \u2502      \u2502                     \u2502      \u25bc  (\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0443\u0439\u0442\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0442\u043e\u043a)  reactor-http-nio-5 \u2502 \/actuator\/axelix-env \u2500\u2500\u25ba ThreadLocal.get() \u2718 null                     \u2502                         + \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430                     \u2502                           \u043d\u0430 event loop \u2718 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u041a\u0430\u043a Spring Boot Actuator \u0440\u0435\u0448\u0430\u0435\u0442 \u0442\u0443 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b Actuator (\/actuator\/threaddump, \/actuator\/heapdump, \u0438 \u0442.\u0434.) \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0435, \u043d\u043e \u0432 WebFlux-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u043e\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0434\u0432\u0443\u043c\u044f \u043f\u0440\u0438\u0451\u043c\u0430\u043c\u0438:\u0411\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0443\u0445\u043e\u0434\u044f\u0442 \u0441 event loop. \u0415\u0441\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0430 \u043d\u0435 Mono\/Flux, Actuator \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0451 \u0447\u0435\u0440\u0435\u0437 Mono.fromCallable(&#8230;) \u0438 subscribeOn(Schedulers.boundedElastic()), \u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0443\u043b\u0435, \u0433\u0434\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0446\u0435\u043b\u043e\u043c \u043c\u043e\u0436\u043d\u043e.\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0438\u0437 exchange, \u0430 \u043d\u0435 \u0438\u0437 \u043f\u043e\u0442\u043e\u043a\u0430. \u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0438\u0437 ServerWebExchange.getPrincipal() \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u044f\u0432\u043d\u043e, \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u044b\u0437\u043e\u0432\u0430.\u0412 Axelix \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 Spring Boot.\u041a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432 Axelix 1.31. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440\u0421\u0442\u0430\u0440\u0442\u0435\u0440 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0432\u0443\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0438\u043f\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:@Configuration(proxyBeanMethods = false)@ConditionalOnWebApplication(type = Type.SERVLET)static class ServletJwtAuthConfiguration { \u00a0 \u00a0     \/\/ FilterRegistrationBean&lt;JwtAuthorizationFilter&gt;}\u200b@Configuration(proxyBeanMethods = false)@ConditionalOnWebApplication(type = Type.REACTIVE)static class ReactiveJwtAuthConfiguration { \u00a0 \u00a0     @Bean     ReactiveJwtAuthorizationFilter reactiveJwtAuthorizationFilter(&#8230;) { &#8230; }}\u041a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435, \u0444\u0438\u043b\u044c\u0442\u0440 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 Actuator: \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0438\u043b\u0438 \u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c management-\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435, \u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 management.server.port.\u0412\u043e\u043e\u0431\u0449\u0435 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0432 Spring Boot \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0442\u0435\u043c\u0430, \u043c\u044b \u0434\u0430\u0436\u0435 \u043d\u0435\u0447\u0430\u044f\u043d\u043d\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 CVE \u0432 Axelix, \u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043b\u0438 \u0432 1.2.1.\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u044b \u0432 Spring Framework \u0432 \u0446\u0435\u043b\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 Spring Boot \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430. \u041d\u043e \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u0435\u0441\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0442\u0443 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e (\u043d\u0430\u043c\u0435\u0440\u044f\u043d\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u0442). \u041e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u044d\u0442\u043e \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Spring Boot Actuator \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u043c \u043f\u043e\u0440\u0442\u0443, \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u044b\u0448\u0435.\u0414\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432 \u0442\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0438\u043d \u0425, \u0438 \u043e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435, \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0435\u0433\u043e \u043d\u0435\u0442 (\u0447\u0430\u0441\u0442\u044b\u0439 \u043a\u0435\u0439\u0441).\u041a\u043e\u0433\u0434\u0430 \u0431\u0438\u043d\u044b \u0438\u0437 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0431\u0438\u043d \u0425, \u043e\u043d\u0438 \u0435\u0433\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0410 \u0432\u043e\u0442 \u043a\u043e\u0433\u0434\u0430 \u0431\u0438\u043d Y \u0438\u0437 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0431\u0438\u043d X, \u0442\u043e \u043e\u043d \u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442. \u041f\u043e\u0438\u0441\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445, \u043d\u043e \u043d\u0435 \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u0430\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a CVE, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u043c\u0435\u0442\u0438\u043b\u0438. \u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u202f\u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0442\u0435\u043c\u0430, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0442\u043e\u0438\u0442 \u0435\u0451 \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.  \u041f\u0438\u0448\u0438\u0442\u0435, \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \ud83d\ude09.2. \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0435\u0434\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043cReactiveJwtAuthorizationFilter \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u0438 \u043f\u0440\u0430\u0432\u0430 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u044b\u0439, \u043d\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435 \u043a\u043b\u0430\u0434\u0451\u0442 \u0432 ThreadLocal. \u041e\u043d \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 Java-\u043e\u0432\u044b\u0439 Principal \u0438 \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 \u0435\u0433\u043e \u0432 exchange:User user = webIdentityAccessManager.verifyAccess(relativePath, method, token);var principal = new AxelixPrincipal(new DefaultSecurityContext(user, token));ServerWebExchange axelixExchange = exchange.mutate()        .request(new BoundedElasticBodyRequest(request))  \/\/ \u0442\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u043e\u0436\u0435 \u0447\u0438\u0442\u0430\u0435\u043c \u043d\u0435 \u043d\u0430 event loop        .principal(Mono.just(principal))                  \/\/ \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0435\u0434\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c        .build();return chain.filter(axelixExchange)        .subscribeOn(Schedulers.boundedElastic());        \/\/ \u0443\u0445\u043e\u0434\u0438\u043c \u0441 event loop, \u043a\u0430\u043a Actuator\u041e\u0448\u0438\u0431\u043a\u0438 \u0442\u043e\u043a\u0435\u043d\u0430 (\u043f\u0440\u043e\u0441\u0440\u043e\u0447\u0435\u043d, \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u0435\u043d, \u043d\u0435 \u043f\u0430\u0440\u0441\u0438\u0442\u0441\u044f) \u0434\u0430\u044e\u0442 401, \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0430 \u043f\u0440\u0430\u0432 \u0434\u0430\u0451\u0442 403, \u043a\u0430\u043a \u0438 \u0432 \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438.3. \u042d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438\u0437 Principal\u042d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 Principal \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u0432\u043e\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043d\u0451\u043c \u043b\u0435\u0436\u0438\u0442:@ReadOperationpublic EnvironmentFeed environment(@Nullable String pattern, @Nullable Principal principal) {    return AxelixPrincipal.callWithin(            principal, securityContextExecutor,            () -&gt; environmentService.getEnvironmentFeed(pattern));}callWithin \u0441\u0442\u0430\u0432\u0438\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0437\u043e\u0432\u0430, \u0443\u0436\u0435 \u043d\u0430 \u043f\u043e\u0442\u043e\u043a\u0435 boundedElastic, \u0438 \u0441\u043d\u0438\u043c\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435. \u0411\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0430 \u0441\u0442\u0430\u0440\u0442\u0435\u0440\u0430 (\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u0430\u0432) \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0439 \u0436\u0435 \u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u0441\u0442\u0435\u043a\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.\u041a\u0430\u043a \u0438\u0442\u043e\u0433, \u043c\u044b \u043d\u0435 \u0441\u0442\u0430\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 (\u0447\u0435\u0433\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0442\u0430\u043a \u0441\u0438\u043b\u044c\u043d\u043e \u0431\u043e\u044f\u043b\u0438\u0441\u044c, \u0442.\u043a. \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f). \u0418\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u043e \u043d\u0438\u0445.\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 PR #1812.\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 WebFlux \u0432 \u043f\u0440\u043e\u0434\u0435, \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0434\u044b, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441\u0432\u043e\u0438\u043c\u0438 \u044e\u0437 \u043a\u0435\u0439\u0441\u0430\u043c\u0438, \u043c\u044b \u043f\u0440\u0430\u0432\u0434\u0430 \u043d\u0430 \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u041f\u0438\u0448\u0438\u0442\u0435, \u0447\u0442\u043e \u0435\u0449\u0451 \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 Axelix: \u0432 Telegram \u0438\u043b\u0438 \u0432 GitHub Issues.\u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e!\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1098680\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-500047","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/500047","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=500047"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/500047\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}