Skip to content

Add per-identity-provider override for Supervisor session lifetime - #3287

Open
JHansen2000 wants to merge 1 commit into
vmware:mainfrom
JHansen2000:config-token-expiration
Open

Add per-identity-provider override for Supervisor session lifetime#3287
JHansen2000 wants to merge 1 commit into
vmware:mainfrom
JHansen2000:config-token-expiration

Conversation

@JHansen2000

Copy link
Copy Markdown

Add per-identity-provider override for Supervisor session lifetime

Adds an optional sessionLifetimeSeconds field to FederationDomain.spec.identityProviders[], letting administrators override the Supervisor's default 9-hour refresh token lifetime on a per-identity-provider basis. This can be set shorter or longer than the default.

This does not change how or when the upstream identity provider expires its own tokens or session- the upstream IDP's expiration still governs independently, and can still end a Supervisor session earlier than this value if it expires first. This setting only adjusts how long the Supervisor's own refresh token may be used before the user must interactively reauthenticate.

Documentation has been updated to describe the new field and its interaction with the existing 9-hour default.

The codegen tooling was used to regenerate the Go API code and CRD manifests under generated/.

Fixes #1004

Testing

  • Linting: 18 issues, unchanged from main.
  • Unit tests: 39 failing, unchanged from main. New unit tests were added to cover this change.
  • Integration tests: 258/496 passing, vs. 213/496 on main. No new integration tests were added as part of this change.
  • Manual: Built and deployed the new image to a cluster. Verified the new configuration option behaves as expected with no unexpected side effects observed.

Release Note

Release note:

FederationDomain identity providers can now optionally override the Supervisor's default 9-hour session lifetime via `spec.identityProviders[].sessionLifetimeSeconds`. This only controls how long the Supervisor's own refresh token may be used; it does not change any expiration imposed by the upstream identity provider itself.

FederationDomain.spec.identityProviders[] now accepts an optional
sessionLifetimeSeconds, letting administrators extend the default
9-hour refresh token lifetime for a specific identity provider.
Addresses vmware#1004.

Signed-off-by: Jacob Hansen <2000.jihansen@gmail.com>
@netlify

netlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

Deploy Preview for pinniped-dev ready!

Name Link
🔨 Latest commit 2101880
🔍 Latest deploy log https://app.netlify.com/projects/pinniped-dev/deploys/6a997c1a6ce78e00086ca510
😎 Deploy Preview https://deploy-preview-3287--pinniped-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Pinniped Supervisor - interactively authenticate once per day/week/month

1 participant