Repository navigation
feat: 로그인 계정에 연결되지 않은 API Key 인증 거절 - #82
Merged
Merged
Conversation
2026.09.30 공지 기한이 지난 미연결 API Key를 데이터 만료 대신 인증 단계에서 막는다. 만료 검사 뒤에 user_id 연결 검사를 추가하고 새 상태 코드 4034(API_KEY_NOT_LINKED)로 거절한다. 발급 이메일로 로그인하면 기존 자동 연결 경로가 소유권을 채워 같은 키가 다시 통과한다. - FakeApiKeyMetadataReader에 미연결 키 목록을 두어 슬라이스 테스트에서 재현 - E2E seed의 READ/WRITE 키는 seed 사용자에 연결하고 미연결 LEGACY 키를 추가 - 단위·슬라이스·E2E 테스트와 오류 문서, CHANGELOG, AGENTS.md 갱신
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
배경
2026년 9월 10일 공지(기존 API Key 이용 안내)에서 안내한 대로, 9월 30일까지 로그인 계정에 연결되지 않은 기존 API Key는 더 이상 사용할 수 없게 합니다. 저장된 키 데이터를 일괄 만료시키는 대신 인증 단계에서만 거절하도록 해서, 기한을 놓친 사용자도 발급 이메일로 로그인하면 키 값 변경 없이 바로 다시 사용할 수 있게 합니다.
변경 내용
ApiKeyReader가 만료 여부에 더해 로그인 계정 연결 여부를 검사합니다. 연결되지 않은 키는 HTTP 200에 새 상태 코드4034(API_KEY_NOT_LINKED)로 거절하며, 거절된 요청은 사용 기록을 남기지 않습니다.FakeApiKeyMetadataReader에 미연결 키 목록을 추가해 슬라이스 테스트에서도 같은 규칙을 재현합니다.error-model.md,authentication.md), CHANGELOG, AGENTS.md를 갱신했습니다.검증
./gradlew spotlessApply staticCheck통과./gradlew unitTest통과./gradlew supportTest통과 (5건)./gradlew apiE2eTest통과 (73건)ApiKeyReaderTest(미연결 키 거절),SecurityAuthenticationTest(4034 응답),ApiKeysE2ETest(거절 → 로그인 → 재허용)배포 뒤 할 일