Skip to content

SECRET_EXPIRY acts as a maximum limit instead of a default value #235

@tholeb

Description

@tholeb

When setting the SECRET_EXPIRY environment variable, the UI filters out all expiration choices that are strictly greater than the value provided.

It appears that SECRET_EXPIRY is being treated as a hard limit rather than a default

Steps :

  1. Configure expiryChoices with multiple values:
expiryChoices: [2592000, 1209600, 604800, 518400, 432000, 345600, 259200, 172800, 86400, 43200, 14400, 3600]
  1. Set the environment variable SECRET_EXPIRY="86400" (1 day).
  2. Open the "Secret Expiration" dropdown menu in the UI.

Expected Behavior:
The dropdown should have 1 day as default value, but all other options (up to 30 days) should still be available for the user to select.

Without SECRET_EXPIRY (Correct list):
Image

With SECRET_EXPIRY="86400" (Truncated list):
Image

Is there a specific configuration to set a default value without restricting the maximum duration allowed for a secret?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions