Change the default token lifetime
Tokens have a default authentication lifetime of one hour, but this default value can be adjusted in the console. You can also change the maximum permitted lifetime, which defaults to 10 years.
- In the console, click Node groups.
- Open the PE Infrastructure node group and click the PE Console node group.
- On the Classes tab, find the
puppet_enterprise::profile::console
class. - In the Parameter field, select the parameter you want to
adjust:
rbac_token_auth_lifetime
: Set the default token lifetime. The default is one hour.rbac_token_maximum_lifetime
: Set the maximum allowable lifetime for all tokens. The default is 10 years.
- In the Value field, enter the new default authentication
lifetime.
Specify a numeric value followed by:
y
(years)d
(days)h
(hours)m
(minutes)s
(seconds)
For example,
12h
sets the lifetime to 12 hours.Do not add a space between the numeric value and the unit of measurement.
If you do not specify a unit, it is assumed to be seconds (
s
).The
rbac_token_auth_lifetime
cannot exceed therbac_token_maximum_lifetime
value. - Click Add parameter, and commit changes.