From a35bacc4975f0e545a0ea18f9f23e509e6e081f4 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Tue, 21 Apr 2026 14:20:24 +0900 Subject: [PATCH] =?UTF-8?q?260421=5F03=5FENH:=20=EC=A0=84=EC=B2=B4?= =?UTF-8?q?=EC=A0=81=EC=9C=BC=EB=A1=9C=20=EC=A0=95=EB=A6=AC2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 ------------------- build.gradle | 2 +- .../auth/apikey/ApiKeyProperties.java | 5 ++++- 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 7340247..7f31714 100644 --- a/README.md +++ b/README.md @@ -315,25 +315,6 @@ kri: --- -## Migration Guide - -- `kri.webmvc.enabled` 설정은 제거하고 `kri.web.enabled`만 사용합니다. -- `kri.webmvc.ip.*` 설정은 제거하고 Swagger IP 제어는 `kri.swagger.allowed-ips`만 사용합니다. -- 프록시 환경에서는 API Key admin API와 Swagger가 모두 `IpUtil` 기준으로 클라이언트 IP를 해석합니다. `kri.auth.apikey.admin-allow-ips` 값을 다시 확인하세요. -- 내부 클래스를 직접 import하고 있었다면 아래처럼 경로를 변경해야 합니다. - - `com.kri.common.runtime.webmvc.CodeEnumConverter` -> `com.kri.common.runtime.web.CodeEnumConverter` - - `com.kri.common.runtime.webmvc.IpUtil` -> `com.kri.common.runtime.web.IpUtil` - - `com.kri.common.runtime.webmvc.RequestUserContextArgumentResolver` -> `com.kri.common.runtime.web.RequestUserContextArgumentResolver` -- 아래 클래스와 설정 객체는 제거되었습니다. - - `com.kri.common.autoconfigure.webmvc.KriWebMvcAutoConfiguration` - - `com.kri.common.autoconfigure.webmvc.KriIpAccessProperties` - - `com.kri.common.runtime.web.IpAccessControlInterceptor` - - `com.kri.common.runtime.web.IpAccessControlService` - - `com.kri.common.runtime.web.MdcHandlerConfig` -- Swagger 문서의 인증 표시는 `BearerAuth`와 `ApiKeyAuth`를 동시에 요구하지 않고, 둘 중 하나로 인증 가능한 형태로 바뀌었습니다. - ---- - ## AutoConfiguration 목록 `src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports` diff --git a/build.gradle b/build.gradle index 7958d38..4a97d43 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } //버전 변경은 여기서 -def commonVer = "beta.1.1.17" +def commonVer = "beta.1.1.18" group = 'com.kri.common' version = commonVer diff --git a/src/main/java/com/kri/common/autoconfigure/auth/apikey/ApiKeyProperties.java b/src/main/java/com/kri/common/autoconfigure/auth/apikey/ApiKeyProperties.java index d6cd48f..14ef066 100644 --- a/src/main/java/com/kri/common/autoconfigure/auth/apikey/ApiKeyProperties.java +++ b/src/main/java/com/kri/common/autoconfigure/auth/apikey/ApiKeyProperties.java @@ -38,7 +38,10 @@ public class ApiKeyProperties { /** * 내부 관리 API 접근 허용 IP(CIDR) */ - private List adminAllowIps = List.of("127.0.0.1/32"); + private List adminAllowIps = List.of( + "127.0.0.1/32", + "0:0:0:0:0:0:0:1" + ); /** * apikey 전용 DB 설정(기본값 포함)