-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Is your feature request related to a problem?
Currently it isn't possible to search for secrets across multiple applications, environments and paths. Given Phase is the source of truth for secrets, the ability to look up secrets keys across ones entire organization and trace the configuration graph of an application is very valuable.
Describe the solution you'd like
A user should be able to click on the command palette or use the keyboardd shortcut and type secret keys and be shown results for any secrets they have access to. A user can select the appropriate result from the drop down and be routed to it. The link can be constructed as follows https://console.phase.dev/<ORG_NAME>/apps/<APP-ID>/environments/<ENVIRONMENT_ID>?secret=<SECRET_ID>
On focus on the command palette: Given that each secret is encrypted asymmetrically against the public of the environment that it's stored in, there would be some implementation required on the client side to fetch all secret keys, across all apps and environments a user has access to (via a graphql query), decrypt them hold them in memory in a sensible, searchable data structure, so that searches can be run on the keys and appropriate links can be constructed. Add a reasonable delay to each key input of the user (debounce).