fix: JWT 검증 시 clock skew 허용 범위 5초 추가#24
Draft
Jeongho0805 wants to merge 1 commit into
Draft
Conversation
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.
변경 사항
TicketTokenManager.parseAndValidate()의 JWT 파서에setAllowedClockSkewSeconds(5)추가배경
Sentry 이슈 PRACTICKET-34:
POST /api/ticket엔드포인트에서ExpiredJwtException이 393회 발생하여 186명의 사용자에게 영향. JWT 만료 시각과 서버 현재 시각의 차이가 142ms에 불과하지만 허용 clock skew가 0ms로 설정되어 있어 서버 간 미세한 시각 차이만으로도 유효한 토큰이 거부됨.