- Notifications
You must be signed in to change notification settings - Fork1.1k
feat!: add--default-token-lifetime#14631
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
feat!: add--default-token-lifetime#14631
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This stack of pull requests is managed by Graphite.Learn more about stacking. Join@ethanndickson and the rest of your teammates on |
2d3f8f4 to5f56829Comparenice. we will definitely want to label this as a breaking change in our changelog. a couple of questions?
cc@stirby as I'll be PTO for the rest of this week |
ethanndickson commentedSep 11, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Approach changed. |
--session-duration--session-duration--session-duration--session-duration_--session-duration_--session-durationmafredri commentedSep 13, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
5f56829 tob691a47Compare--session-duration--default-token-lifetimeb691a47 to67e03faCompare67e03fa to43477bfCompareUh oh!
There was an error while loading.Please reload this page.
43477bf toc969613Compare
Uh oh!
There was an error while loading.Please reload this page.
Closes#13990.
Adds a new deployment value that influences the lifetime of tokens created via:
/users/{user}/keys [post]- Used by/cli-auth/users/{user}/keys/tokens [post]- Used byTokenspage in web UI settings, andcoder tokens create.The default value of this option is 7 days, to retain the existing TTL for
/cli-authtokens.Of note is that the web UI and
coder tokens createsupply default values when calling/tokens [post].Therefore, the only breaking change in this PR is for tokens created by directly calling
/users/{user}/keys/tokens [post]without a lifetime in the request body. The default TTL for these tokens is 7 days, down from 30. Users calling this endpoint directly should already be specifying a lifetime, so this is unlikely to break any existing workflows.The tokens returned by
/users/{user}/keys [post]are still refreshed with activity, unless--disable-session-expiry-refreshis set.