Skip to content

Global secret key search #583

@nimish-ks

Description

@nimish-ks

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.

Image

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).

Metadata

Metadata

Assignees

Labels

backendenhancementNew feature or requestfrontendChange in frontend codejavascriptPull requests that update Javascript codepythonPull requests that update Python codetypescriptPull requests that update Typescript code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions