Skip to content

Commit 9adb769

Browse files
JIWONKIMSclaude
andcommitted
fix: Allow /actuator/health endpoint for health checks
Added /actuator/health to permitAll in SecurityConfig to enable container health checks during Blue/Green deployment. Without this, health checks fail due to authentication requirement, causing deployment rollback. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e6b0b1f commit 9adb769

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/main/kotlin/com/back/koreaTravelGuide/common/security/SecurityConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class SecurityConfig(
6161
authorize("/h2-console/**", permitAll)
6262
authorize("/swagger-ui/**", "/v3/api-docs/**", permitAll)
6363
authorize("/api/auth/**", permitAll)
64+
authorize("/actuator/health", permitAll)
6465
authorize("/favicon.ico", permitAll)
6566
if (isDev) {
6667
authorize(anyRequest, permitAll)

src/main/resources/application-prod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ spring:
3131
store-type: redis
3232
timeout: 30m
3333

34+
management:
35+
endpoints:
36+
web:
37+
exposure:
38+
include: health
39+
endpoint:
40+
health:
41+
show-details: never
42+
3443
logging:
3544
level:
3645
root: INFO

0 commit comments

Comments
 (0)