Skip to content

Test revoked console session cookies with and without a session key - #5451

Merged
freeqaz-openai merged 1 commit into
mainfrom
test/session-cookie-inspection-modes
Nov 11, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
test/session-cookie-inspection-modes

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

After sign-out and a fresh sign-in, the console HTTP integration test sends the revoked cookie to GET /api/auth/session twice, first on its own and then with its old x-occ-session-key. Each response must return HTTP 200 with null session data, omit Set-Cookie, and disable caching. A final request with the fresh cookie must return a session key different from the revoked session’s key.

A temporary change made the controller suppress Set-Cookie only when the request included a session key. The previous test passed. The new cookie-only request caught the unexpected header, and the expanded test passed with the production code restored. This PR changes only the existing test.

All 22 console HTTP tests passed with zero skips. Lint, typecheck, formatting, and workspace checks passed. Independent review found no actionable P0–P3 issues. All required hosted CI checks passed.

@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 10:04
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 10:04
@freeqaz-openai
freeqaz-openai merged commit d8cfd61 into main Nov 11, 2026
30 checks passed
@freeqaz-openai
freeqaz-openai deleted the test/session-cookie-inspection-modes branch November 11, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant