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 :
- Configure
expiryChoices with multiple values:
expiryChoices: [2592000, 1209600, 604800, 518400, 432000, 345600, 259200, 172800, 86400, 43200, 14400, 3600]
- Set the environment variable
SECRET_EXPIRY="86400" (1 day).
- 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):

With SECRET_EXPIRY="86400" (Truncated list):

Is there a specific configuration to set a default value without restricting the maximum duration allowed for a secret?
When setting the
SECRET_EXPIRYenvironment variable, the UI filters out all expiration choices that are strictly greater than the value provided.It appears that
SECRET_EXPIRYis being treated as a hard limit rather than a defaultSteps :
expiryChoiceswith multiple values:SECRET_EXPIRY="86400"(1 day).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):

With SECRET_EXPIRY="86400" (Truncated list):

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