Skip to content

Autocomplete dropdown for secret referencing #267

Description

@rohan-chaturvedi

Is your feature request related to a problem?

Secrets can be created with references to other secrets in the same or other environments.
image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requestfosshackIssues for FOSS Hack 2024frontendChange in frontend code

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions