View in #px-k8s on Slack
@sindrepm: When using pxctl auth token generate
is it possible to specify no expiration date for the token? I just found out that the token I generated yesterday expired after 24 hours
@alex: @sindrepm you can use --token-duration 7d
, for example in this case the token is valid for 7 days
@sindrepm: ok, is it possible to remove the exp claim completely? e.g. --token-duration -1
or something? I connect to openstorage using a backend service and would prefer not to replace the tokens unless I want to
@alex: @sindrepm I am not sure it that is possible, let me check with development. You can specify years
as well if that works for you. Here are the valid parameters for this option: --token-duration string Duration of time where the token will be valid. Postfix the duration by using s for seconds, m for minutes, h for hours, d for days, and y for years. (default "1d")
@sindrepm: ok, I just specified 100y so I’m good with that