[Chore] 스모크 테스트가 기존 JWT 서명 키 시크릿을 그대로 쓰게 한다 - #330
Merged
Merged
Conversation
- SMOKE_PROD_ACCESS_TOKEN_SECRET, SMOKE_DEV_ACCESS_TOKEN_SECRET 으로 같은 값을 한 벌 더 두고 있었다. 배포 워크플로가 서버에 넘기는 키는 JWT_ACCESS_TOKEN_SECRET 하나이고 dev 와 prod 가 같은 값을 쓴다 - 값이 세 군데로 흩어지면 서명 키를 바꿀 때 스모크 쪽을 빠뜨리기 쉽다. 그러면 서버는 멀쩡한데 인증 확인만 실패해서 알림이 계속 울린다 - 스모크 워크플로가 JWT_ACCESS_TOKEN_SECRET 을 읽게 바꿨다. 환경마다 계정이 다른 SMOKE_PROD_USER_ID 와 SMOKE_DEV_USER_ID 는 그대로 둔다 - README 의 설정 순서와 키 교체 안내도 같이 고쳤다
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.
✔️ 연관 이슈
📝 작업 내용
JWT_ACCESS_TOKEN_SECRET을 그대로 읽게 했습니다.SMOKE_PROD_ACCESS_TOKEN_SECRET,SMOKE_DEV_ACCESS_TOKEN_SECRET으로 같은 값을 한 벌 더 두고 있었습니다.ci-dev.yml:95와ci-prod.yml:96이 둘 다JWT_ACCESS_TOKEN_SECRET을 씁니다. dev 와 prod 가 같은 값입니다.SMOKE_PROD_USER_ID와SMOKE_DEV_USER_ID는 그대로 둡니다. 스모크 계정 ID 는 서버마다 다릅니다.👤 사용자 영향
🔌 API 호환성
🗄️ DB migration
🔐 인증/권한
서버 코드는 바뀌지 않습니다. 스모크가 토큰을 만들 때 쓰는 키의 출처만 바뀝니다.
✅ 검증 결과
read단계를 돌려 통과를 확인했습니다. 조회 17개 전부 200 이고 표식 폴더 확인도 정상입니다.main에 들어간 뒤에 가능합니다.🚀 배포 리스크
smoke-test.yml은 아직main에 없습니다.workflow_run,schedule, 수동 실행 모두 기본 브랜치의 파일로 돌기 때문에, main 에 들어가야 스모크가 켜집니다.↩️ 롤백/대응 방법
SMOKE_*_ACCESS_TOKEN_SECRET두 개를 다시 등록해야 합니다.SMOKE_DEV_ACCESS_TOKEN_SECRET은 이 PR 이 머지되면 쓰이지 않으므로 지워도 됩니다.SMOKE_PROD_ACCESS_TOKEN_SECRET은 등록할 필요가 없어졌습니다.SMOKE_DEV_USER_ID = 200으로 등록돼 있고, prod 는bootstrap을 한 번 돌린 뒤 등록하면 됩니다.