Skip to content

Commit faa344f

Browse files
authored
♻️ refactor: 프로메테우스 관련 Basic Auth 설정 해제 (#154)
1 parent 1e4d825 commit faa344f

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

backend/src/main/java/io/f1/backend/global/config/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception {
5050
"/signup",
5151
"/css/**",
5252
"/js/**",
53-
"/admin/login")
53+
"/admin/login",
54+
actuatorBasePath + "/**")
5455
.permitAll()
5556
.requestMatchers(HttpMethod.OPTIONS, "/**")
5657
.permitAll()
@@ -83,7 +84,6 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception {
8384
userInfo.userService(
8485
customOAuthUserService))
8586
.successHandler(oAuthSuccessHandler))
86-
.httpBasic(Customizer.withDefaults())
8787
.logout(
8888
logout ->
8989
logout.logoutUrl("/logout")

backend/src/main/resources/application.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ spring:
7676
activate:
7777
on-profile: dev
7878

79-
security:
80-
user:
81-
name: ${PROM_NAME}
82-
password: ${PROM_PASSWORD}
83-
roles: PROMETHEUS
84-
8579
management:
8680
server:
8781
port: ${ACTUATOR_PORT}
@@ -99,12 +93,6 @@ spring:
9993
activate:
10094
on-profile: prod
10195

102-
security:
103-
user:
104-
name: ${PROM_NAME}
105-
password: ${PROM_PASSWORD}
106-
roles: PROMETHEUS
107-
10896
# TODO: Flyway 추가와 함께 설정이 필요한 항목들
10997
# sql:
11098
# init:

0 commit comments

Comments
 (0)