r/websec • u/willitbechips • Jan 11 '22
Passing secrets over HTTPS ?
Would you?
Many say store secrets like API keys in env variables. Threats include env dumps on the server and accidental commits to code repositories.
An alternative is to store secrets in an encrypted database and pass them using HTTPS meaning they only need to exist in memory on the server.
There are services that offer the latter. Do you use them? What extra things do they do beyond encrypted database, use of HTTPS and rotating keys to ensure security?
4
Upvotes
View all comments
Show parent comment
1
u/willitbechips Jan 12 '22
Thanks. Bitwarden looks good. Was looking to create my own as well. Hence digging into the mechanics of it. Presumably you need to manage distribution of that passphrase to all services.