From 6957c561a338a36a760f4832173640d9371b2303 Mon Sep 17 00:00:00 2001 From: Simon Hirtreiter Date: Mon, 29 Jul 2024 11:35:22 +0200 Subject: [PATCH] :lock: security allow actuator probes --- .../configuration/SecurityConfiguration.java | 2 ++ refarch-gateway/src/main/resources/application.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/refarch-gateway/src/main/java/de.muenchen.oss.refarch.gateway/configuration/SecurityConfiguration.java b/refarch-gateway/src/main/java/de.muenchen.oss.refarch.gateway/configuration/SecurityConfiguration.java index 72fa12c2..b4404389 100644 --- a/refarch-gateway/src/main/java/de.muenchen.oss.refarch.gateway/configuration/SecurityConfiguration.java +++ b/refarch-gateway/src/main/java/de.muenchen.oss.refarch.gateway/configuration/SecurityConfiguration.java @@ -78,6 +78,8 @@ public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) .pathMatchers(LOGOUT_SUCCESS_URL).permitAll() .pathMatchers("/api/*/info", "/actuator/health", + "/actuator/health/liveness", + "/actuator/health/readiness", "/actuator/info", "/actuator/metrics") .permitAll() diff --git a/refarch-gateway/src/main/resources/application.yml b/refarch-gateway/src/main/resources/application.yml index bbfc3f0d..71a5dddd 100644 --- a/refarch-gateway/src/main/resources/application.yml +++ b/refarch-gateway/src/main/resources/application.yml @@ -54,7 +54,7 @@ management: enabled-by-default: false web: exposure: - include: health, info, prometheus, livenessstate, readinessstate + include: health, info, prometheus, livenessState, readinessState path-mapping: prometheus: metrics endpoint: