| ▲ | apgwoz 2 days ago | |||||||
You’re thinking too much. When you run the app, the system decrypts the secrets and makes them available as env vars (or some other mechanism). In an admin ui, you list the names of secrets only, and provide a “reveal” or a “replace” on each one. They are never decrypted unless explicitly asked for. Is this perfect? Absolutely not. The key is controlled by the company, but it can be derived in a manner that doesn’t allow for the dump of everything if it’s leaked. | ||||||||
| ▲ | lemagedurage a day ago | parent | next [-] | |||||||
My gripe is that, if some additional authentication is then not required for deployments or SSH access, that whoever has access to the admin UI will still be able to access the box and extract all secrets, just with extra steps. There's usually no real security boundary between "admin UI controls the box" and "box requires secrets in plain text". I still like the approach, but I'm afraid that it feels more secure than it is, and people should be aware of that. | ||||||||
| ||||||||
| ▲ | kstrauser 2 days ago | parent | prev [-] | |||||||
My understanding is this is exactly how Vercel works. The users hadn’t checked the “don’t ever reveal, even to me” box next to the sensitive values. If they had, the attacker would only have been able to see the names of the variables and not their values. | ||||||||
| ||||||||