Skip to content

Commit 8754e06

Browse files
committed
chore: securityFilterChain prometheus 접근 경로 허용
1 parent 1d946c0 commit 8754e06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/bitnagil/bitnagil_backend/global/config/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
6363
.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll()
6464
// GUEST 권한으로만 접근 가능한 경로
6565
.requestMatchers("/api/v1/auth/agreements").hasRole("GUEST")
66+
.requestMatchers("/actuator/**").permitAll() // prometheus config
6667
// ONBAORDING 권한으로만 접근 가능한 경로
6768
.requestMatchers("/api/v1/onboardings", "/api/v2/onboardings", "/api/v1/onboardings/routines", "/api/v2/onboardings/routines", "/api/v1/users/infos").hasAnyRole("USER", "ONBOARDING")
6869
// USER 권한으로만 접근 가능한 경로(전체)

0 commit comments

Comments
 (0)