Slightly related, but what’s a good practice for storing secrets that need to be recovered as plain text?
I’m thinking of a system where the user can register her/his API keys to other third-party systems.
I’m thinking of a system where the user can register her/his API keys to other third-party systems.
Then in your application when the user submits some data, you ask Vault to encrypt it before you store it in your main data store. When you need to read it, you get that value from your store and ask Vault to decrypt it.
If you have different services doing the reading/writing you can even setup your permissions so that one service can only decrypt and the other can only encrypt.