Documentation · Administration · Settings

Exchange tokens

Settings → Exchange tokens: how long the tokens applications use may live, and what the create form starts with.

Settings

SettingDefaultMeaning
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)24What 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

PolicyMaximumDefault
Strict: tokens only for short jobs; pipelines use trust policies248
Balanced: monthly renewal for scripts72024
Long-running agents renewed each quarter2160720

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.