Documentation · Administration · Settings
Exchange tokens
Settings → Exchange tokens: how long the tokens applications use may live, and what the create form starts with.
Settings
| Setting | Default | Meaning |
|---|---|---|
| Maximum lifetime (hours) | 720 (30 days) | No token can be created for longer; at most 8760 (a year). Lowering it affects new tokens only; existing ones keep their expiry |
| Default lifetime (hours) | 24 | What the create form starts with; at most the maximum |
A CLI session never lasts longer than the maximum either. Owners are emailed 14 and 3 days before a token expires, if it lives longer than that.
Examples
| Policy | Maximum | Default |
|---|---|---|
| Strict: tokens only for short jobs; pipelines use trust policies | 24 | 8 |
| Balanced: monthly renewal for scripts | 720 | 24 |
| Long-running agents renewed each quarter | 2160 | 720 |
Where a workload has an identity token of its own, prefer a trust policy: nothing to store or renew.
Terraform
Not in the Terraform provider.