Skip to content

fix(cookie) :: test the security attributes on a cookie - #1429

Merged
lovasoa merged 1 commit into
sqlpage:mainfrom
81reap:mutation/09-2-cookie-security-attributes
Sep 6, 2026
Merged

fix(cookie) :: test the security attributes on a cookie#1429
lovasoa merged 1 commit into
sqlpage:mainfrom
81reap:mutation/09-2-cookie-security-attributes

Conversation

@81reap

@81reap 81reap commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Nothing checked that a cookie is HttpOnly, Secure, SameSite=Strict and scoped to / by default. Nothing checked that MySQL, MSSQL, and Oracle (which have no boolean literal) was able to set cookie overrides with 0.

Adds tests for these cases.

found by #1396

@81reap
81reap marked this pull request as ready for review September 6, 2026 07:06
@81reap

81reap commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator Author

CI failure is unrelated to this change, it comes from this commit on main 4c60e5d

Nothing checked that a cookie is `HttpOnly`, `Secure`, `SameSite=Strict` and scoped to `/` by default.
Nothing checked that MySQL, MSSQL, and Oracle (which have no `boolean` literal) was able to set cookie overrides with `0`.

Adds tests for these cases.
@lovasoa
lovasoa force-pushed the mutation/09-2-cookie-security-attributes branch from 5a479a7 to f84c801 Compare September 6, 2026 12:56
@lovasoa
lovasoa merged commit 96c15fc into sqlpage:main Sep 6, 2026
51 checks passed
@81reap
81reap deleted the mutation/09-2-cookie-security-attributes branch September 6, 2026 19:29
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.

2 participants