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

Add sessionSecretNext Support for Rolling Upgrades #2329

Open
petersutter opened this issue Feb 21, 2025 · 0 comments
Open

Add sessionSecretNext Support for Rolling Upgrades #2329

petersutter opened this issue Feb 21, 2025 · 0 comments
Labels
area/security Security related component/dashboard Gardener Dashboard kind/enhancement Enhancement, improvement, extension priority/4 Priority (lower number equals higher priority)

Comments

@petersutter
Copy link
Member

What would you like to be added:
Introduce a new configuration parameter sessionSecretNext which will be used exclusively for verification of cookies. This parameter will extend the current secret array (i.e., [sessionSecret, sessionSecretPrevious]) to [sessionSecret, sessionSecretPrevious, sessionSecretNext], ensuring that tokens signed with the new secret are accepted during rolling upgrades.

Why is this needed:
During a rolling upgrade, some instances may have already switched to the new sessionSecret for signing while others have not. The sessionSecretNext ensures that tokens signed with the new secret remain valid on instances that have not yet updated their configuration.
This enhancement reduces the risk of token validation failures and user authentication issues during secret rotation.

@petersutter petersutter added area/security Security related component/dashboard Gardener Dashboard kind/enhancement Enhancement, improvement, extension priority/4 Priority (lower number equals higher priority) labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/security Security related component/dashboard Gardener Dashboard kind/enhancement Enhancement, improvement, extension priority/4 Priority (lower number equals higher priority)
Projects
None yet
Development

No branches or pull requests

1 participant