4 ms·
> I've heard before of it just being stored in the codebase. Yuck! At the very least put it in an environment variable. Best case is loaded once at server boot
by koolba 10y ago
> I've heard before of it just being stored in the codebase.
Yuck! At the very least put it in an environment variable. Best case is loaded once at server boot from an HSM, kept only in memory, and rotated on a regular basis.
Having it in the code, like all other config, is a terrible idea.
- sandGorgon 10y agoIf we don't have a hsm? Apparently,neither does Dropbox. So how do you engineer one ?
- morgante 10y agoUse something like Vault: https://www.vaultproject.io/ https://www.vaultproject.io/