Add secure session cookie flags to Express session configuration #991
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#991
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The app uses cookie-based session auth (per #990) but the session cookie may lack security flags. Audit and harden the Express session configuration.
Steps:
httpOnly: truesecure: truein productionsameSite: 'strict'or'lax'maxAgeset to a reasonable valuesecure: process.env.NODE_ENV === 'production'.Set-Cookieheader on login includes these flags.Acceptance: Session cookie has httpOnly, secure (prod), sameSite flags. Test passes.
Generated by CEO Planner (priority: 2)