You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently permits unauthenticated access to password-hash lookup endpoint. Requires OAuth2 client credentials flow between authService and userService.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
Protect password-hash lookup behind service authentication.
Line 29 fetches UserAuthResponse (includes passwordHash) from /api/users/by-username, while provided context shows userService/src/main/java/org/example/userservice/config/SecurityConfig.java permits unauthenticated GET access to this route and userService/src/main/java/org/example/userservice/controller/UserController.java returns that payload. This enables unauthenticated hash disclosure.
Require authenticated service-to-service access for that endpoint (and send credentials from this client) before release.
ℹ️ Review info⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 282b28f3-0544-4468-847d-8d1e9a279f20
📥 Commits
Reviewing files that changed from the base of the PR and between cc53c2e and 11e29cf.
Currently permits unauthenticated access to password-hash lookup endpoint. Requires OAuth2 client credentials flow between authService and userService.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
282b28f3-0544-4468-847d-8d1e9a279f20📥 Commits
Reviewing files that changed from the base of the PR and between cc53c2e and 11e29cf.
📒 Files selected for processing (12)
authService/src/main/java/org/example/authservice/client/UserServiceClient.javaauthService/src/main/java/org/example/authservice/config/TokenCustomizerConfig.javaauthService/src/main/java/org/example/authservice/dto/UserAuthResponse.javaauthService/src/main/java/org/example/authservice/exception/GlobalExceptionHandler.javaauthService/src/main/java/org/example/authservice/exception/UserServiceUnavailableException.javaauthService/src/main/java/org/example/authservice/model/ErrorResponse.javamessageService/src/main/java/org/example/messageservice/controller/MessageController.javamessageService/src/main/java/org/example/messageservice/service/MessageService.javauserService/src/main/java/org/example/userservice/dto/UserAuthResponse.javauserService/src/main/java/org/example/userservice/init/DataInitializer.javauserService/src/main/java/org/example/userservice/service/UserService.javauserService/src/main/resources/application.properties💤 Files with no reviewable changes (3)
✅ Files skipped from review due to trivial changes (1)
Originally posted by @coderabbitai[bot] in #9 (review)