-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Make Gitpod cookie "stricter" #16406
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
Conversation
started the job as gitpod-build-at-test-strict.1 because the annotations in the pull request description changed |
@geropl, please have a look. |
Ah, nice idea! 💡 ✨ I wonder if it's worth the effort. But will definitely have a closer look after lunch. 🙏 |
5f89bf6
to
7260cd5
Compare
/hold I didn't test (re-)starting workspaces, thus it's not verified if that works with IDE at all. |
/hold cancel Starting workspaces ✔️ |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
This PR changes the way we're managing sameSite setting of the Gitpod cookie (aka session cookie).
We know, having them on
lax
mode in general comes with a reduction of browser based security mechanism. OTOH the current OAuth2 implementation relies on the session cookie being present on redirects. Also, during the OAuth2 flow, the mentioned browser security model might be neglected, at least there would be other measures possible to harden that process not relying on the browser agent. Given that, we can improve the security posture, by switching tolax
mode for OAuth2 processes and back tostrict
mode when the process is done.Related Issue(s)
Fixes #
How to test
Release Notes
Documentation
Build Options:
Experimental feature to run the build with GitHub Actions (and not in Werft).
leeway-target=components:all
Run Leeway with
--dont-test
Publish Options
Installer Options
Add desired feature flags to the end of the line above, space separated
Preview Environment Options:
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh