Yea they will send an email alert saying your key was leaked and most times block it. Though I've had a few occasions where I forgot to update my gitignore and didn't find out till I checked my billing.
Well apparently not if you migrate your repo from other git provider. My friend found out that the hard way yesterday and had sleepless night updating all the keys
We have daily+ scans, and they verify forever if those keys are still live. You will get nastygrams until you fix it, as you should, and going over the expected SLAs will get leadership on your butt.
Building systems that are easy to burn-and-turn is the new standard for break glass features. You have to expect your keys WILL get compromised at some point, and need to be able to respond accordingly and quickly.
It's like not giving prod access out - accidents will happen, so recovery has to be addressed upfront. Getting caught unprepared is how a small incident becomes a customer's loss of confidence in your product.
71
u/DoGooderMcDoogles Oct 07 '26
Meh, it's fine. Claude already knows all my api keys anyway.
67
u/ClipboardCopyPaste Oct 07 '26
"One step towards transparency. Now our API keys are public." - said the LinkedIn announcement.
21
u/lolcrunchy Oct 07 '26
Do yall not use gitignore? Do yall not look at your list of files changed when you make commits?
16
u/LordAmir5 Oct 07 '26
Git may ignore that but you shouldn't.
11
u/Stormraughtz Oct 07 '26
Oh nooo my weather app
6
u/sebovzeoueb Oct 07 '26
I heard from a friend that GitHub is actually pretty good at detecting if you committed API Keys and will block it and let you know you oopsied.
2
u/Tolik1111 Oct 07 '26
SOPS exist. I don't know what's the phrase equivalent to "git good" for sops tho
1
u/Mountain-Ox Oct 07 '26
"No, I didn't" Back to sleep
1
u/wardenpat Oct 08 '26
bro this is a repost from my old account 😡
1
u/Frost-Freak Oct 08 '26
And then just do another commit to undo it (and ignoring that git history still has it)
1
u/ZunoJ Oct 08 '26
That would be a valid reason to be fired, sued and maybe even blacklisted with all the big hr agencies
1
u/Arclite83 Oct 08 '26
Building systems that are easy to burn-and-turn is the new standard for break glass features. You have to expect your keys WILL get compromised at some point, and need to be able to respond accordingly and quickly.
It's like not giving prod access out - accidents will happen, so recovery has to be addressed upfront. Getting caught unprepared is how a small incident becomes a customer's loss of confidence in your product.
1
u/ttlanhil Oct 08 '26
In case you don't have a public repo to commit API keys to, I'm willing to set up a repo for people to send PRs with their keys to...
1
u/SleepingForge Oct 13 '26
.env + .gitignore ♥️
1
u/recurrence Oct 07 '26
Okay this one got me LOL. I have definitely double checked stuff like this soooo many times lol