console
console copied to clipboard
Autocomplete dropdown for secret referencing
Is your feature request related to a problem?
Secrets can be created with references to other secrets in the same or other environments.
For example:
PROFILE_API=${API_BASE_URL}/profile
or
HEALTH_ENDPOINT=${production.BASE_URL}/health
Creating these references are error prone since they are cases sensitive and a single character mistake can lead to a broken reference.
Describe the solution you'd like
An autocomplete dropdown that shows suggestions based on the characters entered after the ${
to start a reference. For example, if creating a secret with the value:
PROFILE_API=${AP
The dropdown should match and suggest completions:
PROFILE_API=${AP...
API_BASE_URL
API_TOKEN
This should ideally work across environments as well, however this comes with significant complexity as secrets in other environments must be fetched and decrypted for this to work, and access to other environments will depend on the logged in user and role.
Bonus
It would also be helpful to be able to highlight referenced secrets in the editor, so the user can visually confirm that the reference is correct.
PROFILE_API=${API_BASE_URL}/profile
Hovering a reference could also show the referenced value in a tooltip