Repository navigation
[Auth] PAT 쓰기를 에이전트용 다섯 개로 좁힌다 [ #453 ] - #454
Merged
Merged
Conversation
WRITE PAT 가 브라우저 로그인과 같은 쓰기 권한이어서, 승인 결정·PAT 재발급·AI 키/AWS 연결 교체·삭제가 서버에서 막히지 않았다. "에이전트에 노출하지 않는다" 는 MCP 가 도구를 안 만든 것으로만 지켜졌다. 허용 목록(배포 생성·재시도, 환경변수 추가·수정, 도메인 추가)만 통과시키고 나머지 쓰기는 403. agent-tools 클라이언트의 쓰기 호출이 목록 밖으로 나가면 테스트가 깨진다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
무엇을
JwtAuthenticationFilter에 PAT 쓰기 허용 목록을 둔다. WRITE PAT 라도 아래 다섯 개 외의 쓰기(POST/PUT/PATCH/DELETE)는 403.POST /api/v1/projects/{id}/deploymentsPOST /api/v1/deployments/{id}/retryPOST /api/v1/projects/{id}/environment-variablesPATCH /api/v1/projects/{id}/environment-variables/{id}POST /api/v1/projects/{id}/domains왜
WRITE PAT 로 승인 자체 통과, PAT 재발급, AI 키·AWS 연결 교체, 프로젝트 삭제가 가능했다. 설계상 막혀 있어야 했지만 MCP 가 도구를 안 만든 것으로만 지켜지고 있었다(#453).
차단 목록이 아니라 허용 목록인 이유: 새 엔드포인트가 기본으로 PAT 에 닫힌다.
영향
qeploy login: 브라우저 JWT 로 발급 → 영향 없음검증
JwtAuthenticationFilterTest15건 통과, 전체./gradlew test통과Closes #453
🤖 Generated with Claude Code