Conversation
Summary of ChangesHello @ZaMan-O, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
이 PR은 develop 브랜치의 최신 변경 사항을 main으로 병합하는 과정에서 몇 가지 추가적인 수정을 포함하고 있습니다. JwtHeaderFilter에 새로운 경로를 추가하는 변경 사항이 있는데, 이는 인증이 필요한 API에 대한 JWT 토큰 처리를 건너뛰게 만들어 잠재적으로 런타임 오류를 발생시킬 수 있는 심각한 문제입니다. 해당 경로가 필터링되도록 수정이 필요합니다. 또한, 코드 스타일을 일관성 있게 수정하는 작은 변경도 포함되어 있습니다.
| || uri.startsWith("/api/v1/auth/kakao") | ||
| || uri.startsWith("/api/v1/auth/signup/inform")) { |
There was a problem hiding this comment.
/api/v1/auth/signup/inform 경로가 JWT 필터링에서 제외되는 경로 목록에 추가되었습니다. 하지만 해당 경로를 처리하는 UserController.information() 메소드는 authUtils.getCurrentUserId()를 호출하여 현재 사용자 ID를 가져오는데, 이는 사용자가 인증되어 있어야만 가능합니다.
이 경로를 필터에서 제외하면 JWT 토큰이 처리되지 않아 SecurityContext에 사용자 인증 정보가 채워지지 않습니다. 결과적으로 authUtils.getCurrentUserId() 호출 시 NullPointerException이나 인증 오류가 발생하여 해당 기능이 올바르게 동작하지 않을 가능성이 높습니다.
이 경로는 인증이 필요하므로, JWT가 올바르게 처리될 수 있도록 shouldNotFilter 로직에서 제거해야 합니다.
|| uri.startsWith("/api/v1/auth/kakao")) {
No description provided.