Repository navigation
Prevent stale session checks from clearing a newer sign-in cookie - #5446
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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.
A late response to
GET /api/auth/sessioncould clear the cookie another tab had just received at sign-in. Session inspection now removesSet-Cookieafter validating the optional session key. It preserves the response status, session data and other headers. Explicit sign-out still revokes the session and clears its cookie. The authentication reference and sign-in flow document this behavior.The HTTP regression signs in again after logout, then sends the revoked cookie. It checks for
200with null session data, noSet-Cookie, and the existing cache headers. The fresh cookie still resolves to a different session key. The cookie-header assertion failed on the old code and passed with the fix. All 22 local Console HTTP tests passed, along with lint, typecheck, formatting, workspace, OpenAPI and docs checks.Hosted PostgreSQL Authentication passed all 182 tests with zero skips, including three cookie-commit tests. In Chromium, the guarded session cookie authenticated requests on both the Console and a trusted Agent host. Hosted job
Local Chromium stopped before any browser actions. The HTTP regression ran sequentially. Manually checking two tabs on an installed deployment with a delayed stale response remains pending.
Independent source review found no actionable P0–P3 issues. All required hosted CI checks passed for
361342fd3910dbf7aaf8398fab26f5934c08c844.