Re:The Current Secrets Rotation Process Is Broken
by diarrhea on Thursday January 19, 2023 @04:05PM
(#34445606)
The other day we were sketching out how to integrate another team’s service into ours. They wanted us to compile their API key into our application (in CI/at build time).
Re:The Current Secrets Rotation Process Is Broken
by jchw on Thursday January 19, 2023 @04:13PM
(#34445688)
Believe it or not, I've absolutely been there. It blows my mind.
At LEAST let me set the key at runtime. When it comes to stuff that I ship to end users, I'd prefer to be able to dynamically grab the API keys from an endpoint I control for various reasons anyways...
Re:The Current Secrets Rotation Process Is Broken
by AlotOfReading on Thursday January 19, 2023 @07:10PM
(#34447488)
I get what you're saying, but let's not downplay how difficult secret rotation is out the the real world of physical devices.
I work on robots. Let's say you want to rotate the very important image signing keys. If you're lucky enough to have hardware that supports multiple keys (not universal), your process might only be as painful as producing doubly-signed images, coordinating global updates, and field servicing an inevitable percentage of the fleet that had weird issues.
Worst case, you'd have to find every unit around the world and physically replace the PCBs.
I'm personally going to avoid both without some extremely good reasons.
There are definitely other things to be said about the state of secret tokens and secret management, but this one is honestly not that hard to do significantly better at. Rotating secrets should not involve downtime, it should be something you can do out of precaution...