You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Access keys created with "No Expiration" produce a token that expires after 1 hour #1124
Selecting "No expiration" when creating an access key via the UI produces a token that expires after 1 hour.
The root cause appears to be that the Kubernetes TokenRequest API defaults to 1h expiration when ExpirationSeconds is omitted from the TokenRequestSpec. It seems the ServiceAccountToken would have to be used instead as the TokenRequest API inherently (and purposefully) does not allow tokens that aren't time-bound.
This might be fixed (i.e. we removed no expire option). The issue is the no expire option does not actually set it correctly for no expire, if that is even possible. we should verify and fix if not there. dont create a PR if no action is needed, just close this
This was already fixed in #1141 (commit f50505a). The "No Expiration" option has been removed from the UI, and the backend now requires expirationSeconds to be a positive value capped at 1 year (31536000s). Kubernetes TokenRequest does not support non-expiring tokens, so this is the correct behavior.
Activity
Gkrumbach07 commentedon Apr 2, 2026
AI triage: Created session
triage-gh-1124-token-expirationto investigate and fix this issue.Gkrumbach07 commentedon Apr 7, 2026
This might be fixed (i.e. we removed no expire option). The issue is the no expire option does not actually set it correctly for no expire, if that is even possible. we should verify and fix if not there. dont create a PR if no action is needed, just close this
ambient-code commentedon Apr 7, 2026
This was already fixed in #1141 (commit f50505a). The "No Expiration" option has been removed from the UI, and the backend now requires
expirationSecondsto be a positive value capped at 1 year (31536000s). KubernetesTokenRequestdoes not support non-expiring tokens, so this is the correct behavior.Closing as resolved per maintainer request.
github-actions commentedon Apr 7, 2026
Session
session-8dc0b970-0a95-4116-ba74-0176b0449ad2created (phase: Running). PR will have theambient-code:managedlabel.