PLATFORM: Ability to reveal value of secret #773
Labels
difficulty: 3
FOSSHack2025
FOSS Hack is scheduled from Feb 22 to Feb 23. FOSS-accepted issues would have this tag
good first issue
Good for newcomers
priority: high
scope: platform
Everything related to the keyshade platform package
type: enhancement
New feature or request
Description
Secrets should ideally be shown in hidden format. Conditionally, they should be displayed.
The project optionally stores the private key in the DB. Right now, setting
decryptValue=true
while fetching secrets will automatically decrypt the values if the private key is present. The default should be not to auto decrypt the values while fetching secrets. Decryption should take place in client side.Secrets can be revealed if:
selectedProjectAtom
)If any of the above conditions satisfy, we will decrypt the value of the secret in the browser using the private key and show users the value
If none of these conditions satisfy, we don't allow the users to show the plaintext value of the secret.
Solution
keyshade/apps/cli/src/util/decrypt.ts
Line 12 in 4682c28
Checklist
lib
in platformThe text was updated successfully, but these errors were encountered: