Replies: 1 comment
-
|
Hey there! Appreciate you bringing this up. You're not missing anything. Unfortunately, this is a known gap. MAX_ADMIN_TOKEN_LIFETIME` applies to all tokens created by Owners, regardless of whether the target is a human admin or a headless service account. That means your options right now are:
We're planning to fill this gap and support finer-grained, per-role or per-user-type token lifetime policies, but I don't have an estimate for when those will land. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
We would like to use automations to perform configuration changes, both to core components (organization sync and related things) and templates. For this purpose, headless users (https://coder.com/docs/admin/users/headless-auth) appears to be the proper solution.
However, headless users can't log in and as such need their access tokens created for them. The only type of user that can create access tokens for other users are Owners (https://coder.com/docs/admin/users/sessions-tokens#generate-a-long-lived-api-token-on-behalf-of-another-user).
Owners are prevented from creating long-lived tokens via the MAX_ADMIN_TOKEN_LIFETIME (https://coder.com/docs/reference/cli/server#--max-admin-token-lifetime) configuration flag, which defaults to 7 days.
My question then is:
Also, the obvious question: What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions