From 7a50f05da8c4d2e99b4f52d171d033da740c4d33 Mon Sep 17 00:00:00 2001 From: dlsrks1021 Date: Mon, 28 Jul 2025 19:05:58 +0900 Subject: [PATCH 1/3] =?UTF-8?q?refactor:=20=ED=94=84=EB=A1=9C=EB=A9=94?= =?UTF-8?q?=ED=85=8C=EC=9A=B0=EC=8A=A4=20=EA=B4=80=EB=A0=A8=20Basic=20Auth?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95=20=ED=95=B4=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/f1/backend/global/config/SecurityConfig.java | 3 ++- backend/src/main/resources/application.yml | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) 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..27f1bfff 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() 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: From 303857985b9c8fd114811e759eb9644ef6aa7d07 Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Mon, 28 Jul 2025 10:06:23 +0000 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20Java=20=EC=8A=A4=ED=83=80=EC=9D=BC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/f1/backend/global/config/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 27f1bfff..41bb9da4 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 @@ -51,7 +51,7 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception { "/css/**", "/js/**", "/admin/login", - actuatorBasePath + "/**") + actuatorBasePath + "/**") .permitAll() .requestMatchers(HttpMethod.OPTIONS, "/**") .permitAll() From c7b194663b5c8b83ecec1878c7bdfed19a63ed3c Mon Sep 17 00:00:00 2001 From: dlsrks1021 Date: Mon, 28 Jul 2025 19:32:10 +0900 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20http=20basic=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/f1/backend/global/config/SecurityConfig.java | 1 - 1 file changed, 1 deletion(-) 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 41bb9da4..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 @@ -84,7 +84,6 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception { userInfo.userService( customOAuthUserService)) .successHandler(oAuthSuccessHandler)) - .httpBasic(Customizer.withDefaults()) .logout( logout -> logout.logoutUrl("/logout")