fix: oauth sync#1710
Merged
nikhilsinhaparseable merged 1 commit intoJun 30, 2026
Merged
Conversation
current: user signs up using oauth, all queries fail with error - session expired or no longer valid reason: user is not synced with other nodes in the cluster fix: sync user+roles with all live nodes
Contributor
WalkthroughIn ChangesOIDC Login Cluster Sync
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Contributor
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/handlers/http/oidc.rs`:
- Around line 243-253: The OIDC login flow in the `Users.new_session` path
should not continue issuing a session when cluster user sync fails or only logs
non-2xx responses. Update `sync_user_creation` to return an error whenever any
node response is non-2xx, and make the caller in `oidc.rs` fail closed by
propagating that error instead of just tracing and proceeding. Use the
`sync_user_creation` and `Users.new_session` flow to ensure cookies are only
issued after all required cluster sync work succeeds.
🪄 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: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 5ee8691f-8a28-4df9-b197-5010b72f1e69
📒 Files selected for processing (1)
src/handlers/http/oidc.rs
parmesant
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
current: user signs up using oauth, all queries fail with error - session expired or no longer valid
reason: user is not synced with other nodes in the cluster
fix: sync user+roles with all live nodes
Summary by CodeRabbit