diff --git a/backend/src/main/java/io/f1/backend/global/config/SecurityConfig.java b/backend/src/main/java/io/f1/backend/global/config/SecurityConfig.java index 949e60dc..cb176ceb 100644 --- a/backend/src/main/java/io/f1/backend/global/config/SecurityConfig.java +++ b/backend/src/main/java/io/f1/backend/global/config/SecurityConfig.java @@ -50,7 +50,8 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception { "/signup", "/css/**", "/js/**", - "/admin/login") + "/admin/login", + actuatorBasePath + "/**") .permitAll() .requestMatchers(HttpMethod.OPTIONS, "/**") .permitAll() @@ -83,7 +84,6 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception { userInfo.userService( customOAuthUserService)) .successHandler(oAuthSuccessHandler)) - .httpBasic(Customizer.withDefaults()) .logout( logout -> logout.logoutUrl("/logout") diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 714be876..ec6edd51 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -76,12 +76,6 @@ spring: activate: on-profile: dev - security: - user: - name: ${PROM_NAME} - password: ${PROM_PASSWORD} - roles: PROMETHEUS - management: server: port: ${ACTUATOR_PORT} @@ -99,12 +93,6 @@ spring: activate: on-profile: prod - security: - user: - name: ${PROM_NAME} - password: ${PROM_PASSWORD} - roles: PROMETHEUS - # TODO: Flyway 추가와 함께 설정이 필요한 항목들 # sql: # init: