From ae9bd5093c38c28166b1d24982d143b9cf16fdb5 Mon Sep 17 00:00:00 2001 From: Gregory <32060161+ggmaleva@users.noreply.github.com> Date: Mon, 29 Aug 2022 17:31:57 +0300 Subject: [PATCH] fix security + revert parent (#35) Co-authored-by: ggmaleva --- pom.xml | 3 +-- src/main/java/dev/vality/orgmanager/config/SecurityConfig.java | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8738a8c..1a03965 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.vality service-parent-pom - 1.0.15 + 1.0.18 org-manager @@ -46,7 +46,6 @@ dev.vality damsel - 1.568-9362c08 dev.vality diff --git a/src/main/java/dev/vality/orgmanager/config/SecurityConfig.java b/src/main/java/dev/vality/orgmanager/config/SecurityConfig.java index f1500cd..a596a0b 100644 --- a/src/main/java/dev/vality/orgmanager/config/SecurityConfig.java +++ b/src/main/java/dev/vality/orgmanager/config/SecurityConfig.java @@ -51,6 +51,8 @@ public class SecurityConfig extends KeycloakWebSecurityConfigurerAdapter { .authorizeRequests() .antMatchers(HttpMethod.OPTIONS, "/**").permitAll() .antMatchers(HttpMethod.GET, "/**/health").permitAll() + .antMatchers(HttpMethod.GET, "/**/health/readiness").permitAll() + .antMatchers(HttpMethod.GET, "/**/health/liveness").permitAll() .antMatchers("/**/auth-context").permitAll() .antMatchers(HttpMethod.GET, "/**/prometheus").permitAll() .anyRequest().authenticated();