Skip to content

Commit 78b944c

Browse files
committed
feat: /actuator/prometheus 경로 접근 제어 설정
1 parent bc767f8 commit 78b944c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
6767
.requestMatchers("/api/v1/onboardings", "/api/v2/onboardings", "/api/v1/onboardings/routines", "/api/v2/onboardings/routines", "/api/v1/users/infos").hasAnyRole("USER", "ONBOARDING")
6868
// USER 권한으로만 접근 가능한 경로(전체)
6969
.requestMatchers("/**").hasRole("USER")
70+
.requestMatchers("/actuator/prometheus").permitAll() // Prometheus가 ecs 내부에서 접근할 수 있도록 설정(alb 단에서 외부 접근은 제어함. 보안 문제 없음)
7071
.anyRequest().authenticated()
7172
)
7273
.oauth2Login(oauth2 -> oauth2

0 commit comments

Comments
 (0)