Allow github webhook#1151
Conversation
📝 WalkthroughWalkthrough
ChangesSecurity filter chain update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/main/java/com/faforever/api/config/security/WebSecurityConfig.java`:
- Line 27: The SecurityFilterChain factory method currently calls
HttpSecurity.build() without declaring a checked exception, so verify the Spring
Security 7 contract first; if build() still throws Exception, update
securityFilterChain to propagate or handle it so the method compiles cleanly.
Use the securityFilterChain method and the http.build() call as the places to
adjust, keeping the signature aligned with the actual
SecurityBuilder/HttpSecurity API in Spring Boot 4.0.6 / Spring Security 7.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 8b1c771d-61c4-4dbe-8403-125d45d88be9
📒 Files selected for processing (1)
src/main/java/com/faforever/api/config/security/WebSecurityConfig.java
|
How did it even work before!? |
|
Before we didn't have the any request().authenticated() matcher so I think it just defaulter open. |
Summary by CodeRabbit