You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The keychain system that uses environment variables in 47ng/cloak is not necessary to use prisma-field-encryption, it is actually replicated here when passing multiple decryption keys.
That being said, if you do use the cloak keychain, the master key should not be used for anything else than decrypting the CLOAK_KEYCHAIN environment variable. Your keychain would then contain keys to pass to prisma-field-encryption, along with the fingerprint of the key to use for encryption in the CLOAK_CURRENT_KEY environment variable.
Here's how this could be done (note that there is a lot of data massaging due to the fact that prisma-field-encryption doesn't accept byte arrays for keys, which could be a future improvement I guess):
I'm integrating this extension and it's working great so far! It's simple to set up and it works transparently, I love it! 🙌
I'm curious if we need to provide both
CLOACK_KEYCHAIN
andCLOAK_MASTER_KEY
to our environment when deploying the API.When using the extension, I see only
CLOAK_MASTER_KEY
is documented, what to do withCLOAK_KEYCHAIN
?Some clarity here would be highly appreciated.
The text was updated successfully, but these errors were encountered: