Skip to content

tokens: add a 'no expiration' option to CLI and UI #6607

Closed
@Kira-Pilot

Description

@Kira-Pilot

If the deployment config option --max-token-lifetime has not been set, we do not limit a token's lifetime at creation - unless a user explicitly passes through the --lifetime flag.
We should give the user the ability to pass an option during creation that specifies the token never expires:

  • we should add the 'no expiration' option to the CLI
  • we should add the 'no expiration' option to the UI (mock here)
  • we should reimagine the way we represent the max token lifetime on the back end, pivoting away from time.Duration(math.MaxInt64) to something the FE can more easily represent (like Date). Right now we are converting to nanoseconds and its annoying.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions