Skip to content

Support finer control on token lifetime #17395

@stirby

Description

@stirby

A customer wants to create session tokens for service accounts responsible for running coding agents in workspaces. In their deployment, they want to set a strict TTL for any token a user can create without restricting administrators. However, this doesn't mean administrators should have zero restrictions on token lifetimes, as this poses a security risk.

In short, the deployment-level MAX_TOKEN_LIFETIME is too broadly enforced.

We should expect the demand for this use case to increase as we roll agentic AI out.

Example of desired behavior:

  • I, as a user, get a 24 hour token when I open a new session via the CLI.
  • I, as a user, can create tokens in the dashboard and CLI with a lifetime no longer than 72 hours.
  • I, as an administrator, can create tokens for myself that last up to 7 days.
  • I, as an administrator, can create tokens on the behalf of users that last up to 7 days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-requestedFeatures requested by enterprise customers. Only humans may set this.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions