r/devops • u/Jealous_Pea_3915 • Aug 28 '26
Discussion Experimenting with replacing reusable API keys with per-request authorization
Been working on a small POC around getting rid of reusable API credentials.
Instead of an app holding an S3 key, Git token, API key, etc, it would request permission for one specific action. Something like upload this file to this path, once, within the next 30 seconds.
I'm using Tide/Forseti for the policy and cryptographic side, and testing it against real open source services like S3 compatible storage and Gitea.
The thing I'm mainly trying to prove is whether a compromised client can have no reusable API credential worth stealing.
This also ties into something I want to look at next around rootless cloud infra, where having root on a server doesn't automatically mean having authority to decrypt user data, impersonate users, sign releases, or perform other protected actions.
Starting with the API side first because it feels like the smaller piece to prove.
Curious what people here think. Is this actually useful in practice, already solved well enough by existing workload identity systems, or mostly just an interesting security experiment?
View all comments
Show parent comment
1
u/forever-butlerian Solaris 8 Enjoyer Aug 28 '26 edited Aug 28 '26
At a certain level it's like trying to press a balloon flat. If you look at how stupidly Amazon did it with IMDS, it's the Alfred E. Neuman approach to security.
If your "machine" is a container running in a pod, what's achievable is to keep the actual signing key in a trusted sidecar container the service container can only talk to via an easy-to-implement-correctly protocol so the service can ask for its requests to get signed. Then you have the matter of how to load the cryptomaterial only into RAM on the sidecar container, to protect against a container-to-container compromise. And so on.
Every trust system has a base case of things that are trusted axiomatically, but after that trust can be proven inductively. In every case, that's some flavor of enclave: in the historical case of Kerberos it assumed root access on all the machines across the domain was the enclave; in the modern case of digital restrictions management it uses so-called "Trusted Platform Modules"; in the case of HSMs it's a physical device you can only communicate with over a restricted channel, and at least years ago the physical security of the device came from potting it in epoxy in a way that trying to de-cap it would destroy it.
So in engineering your system, you've got to answer the question of what you assume axiomatically to be secure.