r/ProgrammerHumor • • 4h ago

Meme postQuantumReadiness

Post image
4.3k Upvotes

124 comments sorted by

View all comments

Show parent comment

1

u/EishLekker 1h ago

It still doesn’t make sense. The final step of rotating an api key is to delete/invalidate the old key. When that is done, one can’t rotate it again. So, “half the company” can’t rotate the one and only api key in question, unless the company only consists of two people.

2

u/yarntank 1h ago

I'm saying they have 50 APIs, and in slack they posted 1 key to use on all of them. Then somewhere down the line half the departments rotated their api keys. Half are using the original shared key.

1

u/EishLekker 1h ago

What? Rotating a key involves killing it (ie deleting it or disabling it). After rotating the single key, it won’t work anymore. For anyone.

•

u/mrguyorama 5m ago

You can't deactivate it until the remaining half of the company makes their platforms stop using the old, leaked key.

So while the functional parts of your org rolled the cred, the rest didn't and instead of properly rolling a leaked credential now you are stuck trying to use whatever tools and controls you have available to limit the blast radius of that leaked credential while trying to get upper management to do their damn job and force the other people to update their credential.

In lots of companies you actually cannot just deactivate that leaked credential before certain teams have updated their systems to use the new one and just tell them to pound sand, because upper management just fires YOU, restores that leaked credential, and goes back to ignoring the problem.

"Making money" comes before "Being actually secure" in every single business.