feat :: admin password path 추가#575
Conversation
WalkthroughSecurityConfig에서 공개 엔드포인트 목록에 "/admin/password" 경로를 추가하고, "/admin/key" 다음의 쉼표를 수정합니다. 다른 공개 엔드포인트나 접근 제어는 변경 없습니다. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/main/kotlin/dsm/pick2024/global/config/security/SecurityConfig.kt (1)
56-57: Restrict/admin/passwordto POST method in Security Config for clarity and defense-in-depthWhile the
/admin/passwordendpoint is currently POST-only at the controller level and includes robust validation (email verification code verification + password strength requirements via@Valid), the Security Config's permitAll() rule on lines 56-57 applies to all HTTP methods.Although unimplemented HTTP methods would return 405 Method Not Allowed, it's better practice to explicitly restrict this endpoint to POST in the Security Config to make the intent clear and prevent accidental exposure if additional HTTP methods are added later.
Consider updating the Security Config to:
.antMatchers( "/admin/login", "/admin/refresh", // ... other endpoints ... "/admin/key" ).permitAll() .antMatchers(HttpMethod.POST, "/admin/password").permitAll()This way, only POST requests to
/admin/passwordare publicly accessible, while other HTTP methods fall through to the authentication rules below.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
📒 Files selected for processing (1)
src/main/kotlin/dsm/pick2024/global/config/security/SecurityConfig.kt(1 hunks)
Summary by CodeRabbit
릴리스 노트
✏️ Tip: You can customize this high-level summary in your review settings.