From 5dac09e444c43efc73f98f3c453573932ee2073b Mon Sep 17 00:00:00 2001 From: tkuzynow Date: Fri, 29 Nov 2024 10:26:27 +0100 Subject: [PATCH] fix: added actuator endpoint to enable logs in runtime --- .../caritas/cob/userservice/api/config/auth/SecurityConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/caritas/cob/userservice/api/config/auth/SecurityConfig.java b/src/main/java/de/caritas/cob/userservice/api/config/auth/SecurityConfig.java index 24cbc1618..c48d472a5 100644 --- a/src/main/java/de/caritas/cob/userservice/api/config/auth/SecurityConfig.java +++ b/src/main/java/de/caritas/cob/userservice/api/config/auth/SecurityConfig.java @@ -221,6 +221,8 @@ protected void configure(HttpSecurity http) throws Exception { .permitAll() .antMatchers(HttpMethod.GET, "/actuator/health/*") .permitAll() + .antMatchers(HttpMethod.POST, "/actuator/health/loggers/*") + .permitAll() .mvcMatchers(HttpMethod.GET, "/users/{username}") .permitAll() .anyRequest()