Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v17] Explicitly set the session cookie to SameSite=Lax #50110

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Dec 11, 2024

Backport #50097 to branch/v17

Prior to this change, we were not explicitly setting the SameSite
mode for our session cookie, which leaves the behavior up to the
browser.

Chromium-based browsers have been defaulting to SameSite=Lax since
Chrome 80 in February 2020, so this is not a behavior change but
rather locking in today's behavior and being explicit about it.

Note that this is for Teleport's session cookie only. App session
cookies remain using SameSite=None because the proxied app may
itself be using SSO, and we need the app session cookie to make
its way through SSO redirects.
@zmb3 zmb3 added the no-changelog Indicates that a PR does not require a changelog entry label Dec 11, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-50110.d212ksyjt6y4yg.amplifyapp.com

Copy link
Contributor

@avatus avatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Web sessions and app sessions work at my local domains avatus.sh, client.avatus.sh, and api.avatus.sh.

@zmb3 zmb3 added this pull request to the merge queue Dec 13, 2024
Merged via the queue into branch/v17 with commit e2522c7 Dec 13, 2024
42 checks passed
@zmb3 zmb3 deleted the bot/backport-50097-branch/v17 branch December 13, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants