Skip to content

refactor: JwtAuthFilter 리팩토링#117

Merged
LeeSG-0114 merged 3 commits into
developfrom
feat/gateway
May 31, 2026
Merged

refactor: JwtAuthFilter 리팩토링#117
LeeSG-0114 merged 3 commits into
developfrom
feat/gateway

Conversation

@LeeSG-0114

Copy link
Copy Markdown
Contributor

📌 관련 이슈

  • Resolved: #이슈번호

📝 작업 내용

이번 PR에서 작업한 내용을 간략히 설명해 주세요. (마이크로서비스 명시)

  • [api-gateway] 내부 헤더 제거 기능 공통 메서드로 수정

🛠️ 테스트 내역

  • Postman 테스트 완료
  • 단위 테스트 작성 및 통과

💬 리뷰어에게 (선택)

리뷰어가 특별히 봐주었으면 하는 부분이나, 고민되었던 점을 적어주세요.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors JwtAuthFilter in the API Gateway to extract header sanitization logic into a reusable sanitizeHeaders method, applying it to both public paths and public prefixes to prevent header spoofing. The review feedback suggests merging the duplicate conditional blocks for public paths and prefixes to improve readability, and refactoring the filter logic to eliminate duplicate header removal code between sanitizeHeaders and the main filter method.

Comment thread api-gateway/src/main/java/com/msa/api_gateway/filter/JwtAuthFilter.java Outdated
@LeeSG-0114 LeeSG-0114 merged commit 55fb740 into develop May 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants