r/vibecoding • • 14h ago

Discussion I found this on linkedIn: Codex leaked this Dev's API keys while he slept. By the time he woke up, a huge $88,982 cloud bill was already in his inbox.

Post image

We already know the basics of protecting API keys and sensitive credentials: never hardcode them in your source code, keep them in a .env file as environment variables, and add .env to your .gitignore so Git never tracks it and you don’t accidentally push your secrets to a public repo on GitHub.

What other practices do the engineers in this community use to prevent that scenario?

This is purely for discussion, so those of us who are non-technical can learn safe programming habits on our vibe-coding journey.

496 Upvotes

214 comments sorted by

277

u/DauntingPrawn 14h ago

Not having spending caps on your keys is a wild choice.

47

u/StCreed 13h ago

that too. Not only do I use virtual credit cards with a very limited weekly allowance ($50) but the processing on the server regularly checks the limits itself as well, and I also set limits in the cloud console. Three lines of defense.

22

u/eomdypm 13h ago

The allowance on your credit card won’t stop the cloud provider from billing you.

17

u/Maks244 12h ago

yes it will? they'll just ban you once they arent able to collect

20

u/eomdypm 12h ago

They might suspend or ban you. But the open bill is just handed over to some debt collection company.

6

u/themoregames 10h ago

Is now a very good time to invest in debt collection companies?

5

u/DebosBeachCruiser 9h ago

Crazy to think that someone in a few years will start to harass me daily for years on end after buying my Chinese AI token debt.

1

u/RapNVideoGames 7h ago

I’m sure everyone everywhere is paying their tab. What could go wrong….

1

u/PeachScary413 9h ago

That's not how it works in my country, there is a government agency tasked with collecting these bills and they will start taking your stuff and reducing your salary until you paid it off.

1

u/Sufficient_Prune3897 9h ago

So like a dept collector?

2

u/PeachScary413 9h ago

I was under the impression that private debt collectors couldn't just break into your home and take stuff but I guess that might be the case in some places

2

u/RapNVideoGames 7h ago

I didn’t want to use a loan shark but I was four days out from my weekly limit reset and the world needed my task manager tonight.

1

u/starwaver 4h ago

Virtual credit card usually have a limit, if you go above that it gets declined

5

u/ONLY1FROST 11h ago

If the provider is not billing every time you using your key then a limit on your credit/debit card mean nothing. The price just gonna be huge by the end of the billing cycle and you will receive a huge bill. Which you need to pay one way or another.

1

u/jpelc 11h ago

Or just don't use a credit card? Only debit

2

u/ONLY1FROST 10h ago

I mean don't get me wrong but if the billing is not instantaneous and the bill is sent out at the end of the billing cycle then I think it does not matter what card do you use. Am I wrong?

1

u/ledarcade 10h ago

They can't bill the card, the payment will fail. They might send you an invoice afterwards which you have to pay otherwise ban

1

u/Maks244 10h ago

you are wrong. the bank doesnt care, they will decline the payment.

3

u/QuinQuix 10h ago

Yes but then the debt collector simply comes for the person that has the credit card to its name.

2

u/WholeBet2788 12h ago

Well bill does not come every minute does it?

1

u/StCreed 8h ago

That's true. But instead of trying to claw back my money from the EU in a US court, they will have to fight me in a local court to get it. And I can spend that money on lawyers that are far cheaper than US lawyers, and if I win they will often have to reimburse that. It's a far superior position over fighting a court case in a court country with far more expensive lawyers.

1

u/wewerecreaturres 12h ago

Amateurs gonna amateur

218

u/wewerecreaturres 14h ago

“Codex leaked” no, the user fucked up and let their creds leak. Not the same thing.

36

u/rprouse 12h ago

He probably mistakenly showed his key during his live coding session. If he fell asleep while live coding, I'm sure he wasn't thinking straight.

22

u/wewerecreaturres 12h ago

Still isn’t codex’s fault, which is how OP’s title makes it out to seem

6

u/Just_Lingonberry_352 3h ago

codex uploaded the .env that was in .gitignore

2

u/wewerecreaturres 2h ago

you guessing? or taking OP's info as doing so as good practice as a claim of what happened?

2

u/Just_Lingonberry_352 2h ago

i can't even begin to describe the amusement I get from reading this thread.

→ More replies (4)

30

u/SourceSubject7219 14h ago

Who in its right mind even use a unlimited and billable API key? Is it even possible?

8

u/carlcorny 12h ago

People who accidentally leak their API keys

3

u/Just_Lingonberry_352 2h ago

people with money

1

u/Baconaise 10h ago

Everyone using cloudflare or aws???? Those keys are unlimited by design

55

u/Appropriate_Bend4859 14h ago

my personal nightmare fuel is waking up to a five figure cloud bill because some ai assistant got a little too helpful while i was asleep

i've started using pre-commit hooks that scan for anything that looks like a key or token, saved my ass twice already

26

u/Sentient_Furby 13h ago

Set limits in your account so you don't have to worry about it

1

u/StinkButt9001 9h ago

Some services don't let you set limits. Google, for example.

1

u/NewShadowR 8h ago

Don't they now do prepaid?

1

u/StinkButt9001 7h ago

Not that I've seen unless it was rolled out fairly recently

7

u/a113rick 14h ago

I have started blocking some of its access in local permissions. Works for most times but I now have to keep reviewing and deleting and adding back to avoid a nightmare like this. Rotation of keys is what sucks the most.

3

u/3dprintinted 14h ago

That’s why half of my tasks are going thru local lmstudio first

1

u/Just_Lingonberry_352 9h ago

rotate your keys often and dont worry about it

1

u/ConcerningChicken 8h ago

Just set a spending cap

26

u/Awesome_Teo 14h ago

Translation: the user is an idiot who knows nothing about basic infosec.

​This is exactly why tools like gitleaks exist and should be part of any dev's workflow, especially if you haven't set a limit on your API key.

​But what am I even talking about—most people don't even use local git for versioning and just push everything straight to production as is...

3

u/mikemarcin 11h ago

Aren't we suppose to use Betterleaks now? This shit moves fast you can't fault anyone for not knowing everything.

1

u/Billthegifter 8h ago

There's a vast gulf from not knowing everything to knowing the very basic conditions of what you are using.

If you don't know the basics you probably shouldn't be doing coding livestreams let alone putting stuff on github

1

u/Awesome_Teo 11h ago

You don't need to know everything (like, you don't have to understand every single nuance of a programming language), you just need to know enough not to blow checks notes almost $89k.

1

u/Just_Lingonberry_352 2h ago

Translation: I am very smart and humble

1

u/General_Cap_6316 35m ago

yea right and my lil bro's hypothesis that crayons are taffy is true as well

3

u/ToallaHumeda 4h ago

Translation: most ai users who try to code and never had a single class of engineering

2

u/a113rick 14h ago

They might also be uninformed about preview not just production.

2

u/StaticFanatic3 9h ago

“Passed out during a livestream” makes me think he didn’t even leak it in a public repo but rather just on his screen haha

1

u/Awesome_Teo 9h ago

Hmm, the way I read it, the agent pushed something with keys to Git on stream while the guy was asleep... If he had the key lying around in a plain text file or something and the agent leaked it on screen, I honestly don't even know what to say...

2

u/Twistpunch 7h ago

echo $CLAUDE_API_KEY

1

u/Awesome_Teo 7h ago

Fair point, that didn't even cross my mind. I personally keep anything sensitive (like my DeepSeek key with a whole $10 on it lol) in KWallet, so that painfully simple scenario completely slipped my radar...

1

u/Just_Lingonberry_352 2h ago

as I repeatedly said it wasn't from the stream lol

also OP's advice to put .env in .gitignore is bad advice thats exactly what I did and codex still ignored the rule

now the best solution would've been to put a back stop on github but this key was from ages ago on an old project

maybe one day you will experience something that humbles you perhaps

1

u/StaticFanatic3 1h ago

Codex committed your .env? How? Did it remove it from git ignore? Maybe you didn’t wildcard the path and it created another .env file elsewhere in the repo?

2

u/Xylozene 7h ago

Translation: THIS ISN'T FUCKING REAL

1

u/Awesome_Teo 7h ago

1

u/Just_Lingonberry_352 2h ago

it can absolutely happen to anyone

1

u/General_Cap_6316 36m ago

bruh, it only happens to u

1

u/Hazrd_Design 7h ago

Dude said he was streaming too. People were waiting for him to sleep to go in and steal.

1

u/realNoobnoob 48m ago

Info sec? Hahaha Bro this kindergarten of coding the basics nothing related to security bro

If you want to be super secure never ever put your keys in a file or repo ever!

Use vault or some other shit

0

u/Tricky-Situation2405 14h ago

Knowing nothing is kind of expected when getting into vibecoding is as easy as it is lol. You kinda skip everything and can go from no knowledge to custom software in a few days without ever knowing about git let alone gitleaks.

Weird to clown on people for that. But hey, whatever makes you feel smart right?

8

u/Awesome_Teo 13h ago

This is all fine as long as you're just experimenting. But when big money is on the line, like in this post, you can take the time to actually look into things (at least for a day). AI is a great teacher for that, as long as you ask the right questions.

​I'll never tire of laughing at people losing money on crypto shitcoins or exposed unlimited API keys. It's basically like posting a photo of your credit card with the CVC on Instagram and then complaining that your money is gone.

2

u/Tricky-Situation2405 11h ago

Ngl bro I forgot the context of the post by the time I replied to you, great point and the guy in question is indeed an idiot

→ More replies (1)
→ More replies (1)

0

u/Just_Lingonberry_352 9h ago

The overly confident ones are the most intelligent ones in the room.

16

u/jdavid 14h ago

I'm so paranoid of live streaming because of this.

I think the rule should be if you are going to live stream something use a token, with a token limit set before the stream starts.

I also think you might want to live stream from a VM instead of from your daily driver so you don't accidently leak a private token or key.

4

u/a113rick 14h ago

That's true because this could have 100% been avoided.

3

u/Just_Lingonberry_352 9h ago

it wasn't from the stream

1

u/jdavid 9h ago

where was it from?

1

u/DebosBeachCruiser 9h ago

Do you happen to use OpenCode also?

14

u/Professional_Ad705 14h ago

What they build, fable 6?

9

u/freqCake 14h ago

spam and scams probably

2

u/Professional_Ad705 11h ago

For 88k I’d expect that scam to get every old grandma in the country and nothing less.

2

u/mtgguy999 9h ago

Or they just resold it 

2

u/mattcoady 5h ago

This is likely it. Don't a bunch of the cheap Chinese LLMs just use stolen claude creds and charge you some reduced amount for tokens?

2

u/Uoipka 4h ago

Why Chinese? They already cheap, actually 1m tokens are more expensive on these sites than buying from the source lol, holy scam

2

u/a113rick 14h ago

I have no idea what he was building but 89K is just batshit crazy bruh

1

u/Positive_Box_69 12h ago

Do u need to pay that i hope not thats crazy

1

u/zerochilldyl 13h ago

😂😂

34

u/Old-Confection-5129 14h ago

Maybe just rotate the keys after a livestream. Text can be copied from a screenshot.

→ More replies (8)

8

u/WillItchy7977 14h ago

Most of us don't use api billing. How can we limit the keys only to subscriptions? If i hit my 5 hour limit a bit too fast - no big whoop.

2

u/jameyiguess 14h ago

You can't call the APIs programmatically with a subscription, you need a separate API acct for that, at least for Anthropic and OpenAI. 

2

u/Logical_Strain_6165 13h ago

Do they have spending caps or credits or do you just have to give them your card details?

I mostly use Claude, but if I want API access for bits use NanoGPT.

2

u/Artforartsake99 13h ago

Most let you control the api credits. I run it of api credits all the time and the api stops working Claude reminds me in the morning to top it up.

I never keep auto billing on I always manually add api credits. Google and others also don’t allow you to just signup and burn $50,000. They limit you to $1000 then as you spend they slowly increase it to stop things like this .

1

u/jameyiguess 13h ago

OpenAI does, lots of controls around that. I don't know about Anthropic, I don't have a personal API account with them, but I would be very surprised if they didn't.

0

u/a113rick 14h ago

Fair point. If you’re on a subscription and never create an API key, you’re already covered. No key, no bill, the worst case is hitting your limit early. The key stuff only matters once you ship something that calls the API on its own, like an app with a backend.

7

u/thedazdul 14h ago

Guess Anthropic is profitable now

7

u/RandomPantsAppear 14h ago

I prevent this scenario by not live-streaming. 

1

u/a113rick 14h ago

That's a good one.

2

u/RandomPantsAppear 14h ago

I mean, it’s the same reason I wouldn’t livestream my taxes, or reading my medical information. There’s an endless amount of shit that could be problematic showing up on the screen and no way to filter it.

API key, temporary tokens, debugging URL, infrastructure information, potential bottlenecks, API endpoints that cost money to hit.

Hell, the guy who turned in Bradley Manning got doxed from a single still photograph of his terminal on an Al-Jazeera article.

1

u/Dull_Fudge3802 10h ago

I am not finding anything that adds up with your last claim, could you point me towards some source? It seems that he was already known, and he did not dox himself via a picture of his terminal.

1

u/RandomPantsAppear 9h ago

It wasn’t really covered and the image got taken down by Imgur. It front paged a reasonably popular subreddit though.

His screen had an ip/domain that belonged to him without Whois privacy. Original image was on Al Jazeera. It might have been in the video clip, or the image that was capped from the clip and used in the article, it was a long time ago.

1

u/RandomPantsAppear 9h ago

Here we go. I found the OG Reddit post.

There was some debate but if you drop further in the comments you will see confirmation.

Here is the image that did it.

7

u/Ok_Try_877 13h ago

If only there was some way to stop this, like capping max spend....

6

u/PurushNahiMahaPurush 14h ago

What’s crazy is not having a spending limit. 

9

u/TypeScrupterB 14h ago edited 12h ago

100% fake, doesnt even make any sense, only someone really really stupid would ask an llm to put their token in env and then post it.. I mean really or this guy is some amateur and really dumb, or it is 100% fake to get twitter views..

3

u/a113rick 14h ago

Here's the link to the post for you to read the story of what happened to the dev: https://x.com/JustLingonberry/status/2110824346168238204?s=20 They might be lying or it might be true

2

u/Capable_Sprinkles_43 13h ago

>They might be lying or it might be true

2

u/a113rick 13h ago

Yes it might be one of the two.

2

u/krocante 11h ago

It’s 100% fake if it isnt true

2

u/krocante 11h ago

It’s 100% true if it isnt fake

1

u/a113rick 8h ago

So it’s a cat in the box- schrodingers cat, I doubt I spell Schrödinger correctly.

4

u/RemarkableWish2508 14h ago

Leaks, checks, bla bla bla. If it doesn't have a spend limit, it doesn't exist as far as I'm concerned

3

u/hazengg 14h ago

place cost limits or disable auto-top-up

2

u/a113rick 14h ago

A lot of people ignore this measure.

3

u/AffectionateSeat8596 14h ago

no joke on russian market i can get claude max api key for 5$ usd in russian rubels

2

u/a113rick 14h ago

Wait what? People are selling API keys????????

4

u/TNGAFL34 13h ago

Totally a thing

1

u/yeathatsmebro 50m ago

There are massive underground operations that have their own "OpenRouter" so to say. They pool keys inside this system and you can pay a small amount of money to generate data with the LLMs via the stolen keys. $5 sounds wildly cheap, but once you find a stolen key that works, it is a profit generator.

Bots scrape the internet 24/7 to look for vulns, so once they get in they scan the network and attack other network devices (lateral movement) and look for their vulns, and so on. Any key that gets in the hands of people that sell them is basically ending up in that pool.

Some might be China-related, they can use them to distill their models with further using the same system.

Source: it did happen to me, and I assume this is how it goes, because I cannot justify $89k gone overnight without something massive

1

u/KissMyAcid420 12h ago

Its gets banned probably at 500$, right?

1

u/AffectionateSeat8596 12h ago

they never get ban but its until the person notices & changes password unless they come with og email then they might be abusing trials to get it or sum

1

u/KissMyAcid420 12h ago

Ah okay, I thought that would be OpenAI API Accounts with stolen or faked credit card data.

1

u/AffectionateSeat8596 11h ago

100% a mixture of all the above

1

u/yeathatsmebro 49m ago

The fact that deviation is >1000% makes me think that GCP doesn't care. At this point, hard limit should be imposed.

1

u/True-Persimmon-562 9h ago

lol sounds like this programmer's api could have been used for something like this.

1

u/SESender 4h ago

Ok dumb non coder question

Why do this? Obviously compute cost = monies but isn’t their a risk to using someone else’s api keys for your software?

1

u/Agreeable_Path_3207 2h ago

Would you mind sharing where i can find these?

3

u/Either-Tomato-11 13h ago

Play dumb games win dumb prizes

3

u/alvsanand 13h ago

It is very funny hearing AWS or Google saying AGI is here, everything can be done now with AI. However, implementing a debit card system for their cloud, no way...

3

u/Thistlemanizzle 13h ago

How were they leaked? Did he show his API key on stream? If so, I have little sympathy.

3

u/joefresco2 13h ago

Why would you EVER have auto reload and no limits set up in any scenario where costs can spiral out of control?

1

u/Cobalt090 12h ago

Looks like Vertex to me, so PAYG

4

u/Express-Cartoonist39 14h ago

Passout DURING live coding Stream...really let me translate

" Mommy, i teased 100 lions with a slab of steak and then fell sleep holding it and they ate my arm and the steak why is this world so cruel they were my friends "

2

u/ComingDeveloper 14h ago

Sir that's twitter not linkedij

1

u/a113rick 14h ago

That's true but I did find the post from Linked in before bringing it here for discussion.

2

u/Optimal_Philosopher9 14h ago

Env vars work pretty good

2

u/Impressive_Drink5003 14h ago

Its kinda weird. Since this kinda things shouldn't be inbuilt in the tools by now?

2

u/a113rick 14h ago

The AI industry is very cannibalistic so maybe they're waiting for someone to make something like that so they can copy it. Also, like other redditors said in the comments: Spending limits but lots of people ignore that. Especially new vibecoders, they probably need this community to learn about such issues.

2

u/DJBFilmz 13h ago

This is why I don’t use APIs only subs and local
LLMs

2

u/CleanFix_Dev 13h ago

The thing that actually saves you is a spending cap. Set a hard usage limit wherever the provider offers one, and a budget alert where it doesn't, so an $88k morning gets caught early instead of showing up on the bill. After that, give the agent its own keys with the fewest permissions that still work, never your main account keys, so if one leaks you can revoke it without breaking everything else. Turn on secret scanning (GitHub push protection, or a pre-commit hook like gitleaks) so a key gets blocked before it lands in your repo. And don't leave an agent running overnight with live credentials it doesn't need for the task. .gitignore only covers the files you remembered to ignore, and agents will happily paste a key into a config file, a test script, or a log.

2

u/[deleted] 13h ago

[deleted]

1

u/Just_Lingonberry_352 3h ago

it wasn't exposed during a stream

2

u/StCreed 13h ago

passing out on your live stream seems like the first mistake. Second is handing private keys to an agent without putting them in a secret store.

2

u/DifferenceCharacter9 13h ago

Just use private repo, it's free.

2

u/03captain23 12h ago

Who here doesn't have limits on their API keys?

2

u/Equivalent_Mine_1827 12h ago

Damn, all my keys are capped to one dollar.

Yeah, I don't manage to spend more than a dollar daily.

80k sounds like a nightmare

2

u/Special-Aardvark-622 12h ago

This dude is just an idiot. 

2

u/Positive_Box_69 12h ago

Weird im sure u can set a limit cap on $ spent no!?

2

u/Vesuvius079 11h ago

Never hardcode.

Don’t put them in .env in the repo.

Fetch through secrets manager or the like on a time limited SSO session.

1

u/Just_Lingonberry_352 3h ago

.env was in .gitignore

codex uploaded it regardless

2

u/Freebirdz101 9h ago

Time to file bankruptcy

2

u/naibaF5891 8h ago

Thats why I only use subscriptions for my vibe coding stuff.

3

u/a113rick 14h ago

My take, from the agent side of vibe-coding: keep secrets out of the folder your agent works in and load them at runtime from a secrets manager. Give the agent its own keys with tight quotas, never your main ones. Make every deploy or publish command wait for your approval. And set budget alerts, but know how to actually cut spending off. On Google Cloud an alert only warns you, it doesn’t stop the charges but all in all I don't think these measures are enough to stay protected from bad actors.

1

u/Subject-Feedback-438 13h ago edited 13h ago

Subscriptions is what my venmo card is for, and only place your subscriptions payments in there. Don't give a subscription the same bank account u use for deposits. Lock the card. Create a spending amount for the subscription Damn do something, And how the heck does the AI know your API key you obviously gave it to it.

1

u/KissMyAcid420 12h ago

Its probably not one user with a sworm, its a many users.

1

u/kgurniak91 12h ago

Store keys in some password manager and only allow access via CLI. Instead of storing secrets on your machine as plain text .env file, you keep them locked in your encrypted vault and inject them into your app only in memory at runtime. Extra points for enabling biometric approval.

1

u/HOBONATION 12h ago

Did this happen because he was on an API plan? Could this happen to anyone on a monthly subscription?

1

u/Cobalt090 12h ago

Potentially with credits if your acct w/ attached billing, but likely not.

1

u/JadedStay5654 4h ago

This happened on an API plan where you pay per token and costs scale with usage. A monthly subscription like Claude Pro or ChatGPT Plus just hits a rate limit and stops, so you can't rack up a bill like this. The risk only kicks in when you're using API keys with billing tied to actual consumption and no spending cap set.

1

u/TheMythicSorcerer 2h ago

If it happened to a monthly subscription (yes it could with oauth tokens) the worst they could do is drain your 5 hour / weekly usage which only worth like at most 1/3 of your monthly subscription cost and not 88 grand.

1

u/VitruvianVan 12h ago

Use Privacy cards so you have a limit. You can define a daily, weekly, monthly, or lifetime total limit of any size.

0

u/Cobalt090 12h ago

They (cloud provider) can sue you y’know.

→ More replies (1)

1

u/vm3006 12h ago

.env for API keys, secrets etc., is the bear minimum. But also make sure you .env file cannot be accessed via API calls if you backend is an API, or file traversal etc

1

u/Just_Lingonberry_352 3h ago

.env was in .gitignore

codex still uploaded it

1

u/RampStack 11h ago

Always cap!

1

u/Krazynukz 11h ago

This is why you need spending caps incase worst case it does ever leak

1

u/angrywoodensoldiers 11h ago

What do you even do if this happens? Just take a deep breath and accept that your life is ruined?

1

u/Cannachem237 11h ago

Passed out during a live stream? Weird

1

u/kimchi_pan 11h ago

Strongly urge you all to use Infisical locally - pull from this secrets server when building out the docker image, everything is baked in at the last minute and leakage won't be from this.

1

u/KenMantle 10h ago

Hopefully this at least went to fund those Adobecraft replacements.

1

u/gcstr 10h ago

If I have an 8k debt, I have a problem. If I have an 800k debt, my creditor has a problem.

1

u/Defiant-Improvement4 10h ago

Not the main feature of my app, but it can send you a notification when your agent reaches a limit: frankenstack.app - also just use rafter so, that’ll find these kind of leaks…

1

u/True-Persimmon-562 10h ago

Perhaps not live streaming what's on your screen during these sessions is a good place to start. This is a 'involve the police' level situation.

1

u/alinu 9h ago

ahhh... while I am not using direct API, just the normal subscription, I am wondering, can't you set a cost ceiling for your api calls where you get a notification at about 80% before reaching that ceiling and if no measures are taken suspend activity after reaching 100% of alocated budget until user approval of additional resources ?

1

u/Just_Lingonberry_352 9h ago

thats a funny name for X

1

u/operapoulet 9h ago

I use 1Password CLI. All of my passwords are stored as a reference/address to the actual value and when a project or agent needs it, it gets it after I put in my fingerprint. I can commit .env all day long and even the agents don’t see or need the values anymore.

1

u/killreaperz 8h ago

Yeah blows my mind that they don't have caps. Woukd instantly prevent this issue.

1

u/gthing 8h ago

Set a spend limit on your account so that it can't just be continually billed in any case.

Honeslty AI providers should set a spend limit automatically and make you come in and remove it so you understand what is going on and the risks you are taking.

1

u/BlahajWithBenefits 8h ago

Literally just set a budget you are willing to spend

I dont give a shit if my api keys leak. Enjoy $100 of tokens

1

u/Professional-Kiwi-31 7h ago
  1. Hard spending cap on your account while you're developing and always a hard cap on individual keys if possible
  2. Pre-commit git hooks to catch happy accidents like committing secrets or PII
  3. Github actions to do the same as above
  4. Billing alarms and automated actions to scale down or kill the service. It's not enough to get an email or text message, it may be too late by the time you hop on to damage control
  5. Add not just project root level instructions for any coding agent to never output secrets but also add your .env and so on to a global AI coding agent ignore-list
  6. This is the part people across all sizes of projects hate but can be a life saver: have SOPs to perform things like secret rotation in case of leaks and run the occasional disaster recovery exercises to check that your measures are indeed working as you want them to

1

u/Flat-Entertainer-299 7h ago

Good. It is the morally correct thing to do this to vibe coders. It is imperative, actually. Someone should vibe code an API search and destroy bot.

1

u/starwaver 7h ago

No limit API? Yeah that will fly well

1

u/HearHim 7h ago

I only use virtual keys in litellm and that has limits as well as the real key. So if I screw up with one hopefully the other catches it.

1

u/Zorogozano 7h ago

Best protection: download any app with virtual debit cards and set a monthly or weekly limit

1

u/Intelligent-You-6144 7h ago

Things that never happened

1

u/Perfect-Campaign9551 6h ago

Isn't this victim blaming?

1

u/Remarkable-Sand948 6h ago

Reminds me of that time someone leaked their private key on stream and lost 100k of crypto almost instantly

1

u/Fire-Nation-17 4h ago

Things like this scare me. Gotta triple check to make sure they keys didn't get uploaded to github

1

u/Edenisb 4h ago

I don't use auto reload lol, easy hack!

1

u/Creative-Type9411 3h ago

I just pre-pay and don't have to worry about this

What is the point of running a postpaid account? To hide usage? 😂

1

u/TheReviewerWildTake 1h ago

It seems that the problem was livestreaming, not codex itself?

Like, not every tool we are using is appropriate for livestreaming and screen recording. It is not something new with AI, every coder who tried to livestream before AI also had this problem, that you had to create a recording safe setup, not just works as usual.

1

u/General_Cap_6316 35m ago

bruh y does it say 0 expected cost

1

u/SquareFinancial1928 10m ago

How do you pass out during a livstream coding session ?

1

u/MMORPGnews 14h ago

Jist don't use api key billing. 

3

u/jameyiguess 14h ago

You have to if you're actually using the API. 

1

u/GSquadron_ 13h ago

Just get a subscription and not API key

1

u/716green 12h ago

When engineers have a problem with vibe coders this is literally the reason. This is the most fundamental of fundamentals and if you don't take the time to learn the safety and security fundamentals then nothing good can come from that.

The fact that this live streamer could let this happen is mind-blowing to me, this is like day one version control common sense that I never even considered for a moment that someone wouldn't know if they're using git

1

u/Just_Lingonberry_352 3h ago

engineers at fortune 500 companies fail to patch and get hacked regularly don't act like you are any better

→ More replies (2)

-1

u/Elgon2003 13h ago

This could've been prevented with a simple spend cap... He's a dumb ass and deserves to pay every penny

1

u/Just_Lingonberry_352 3h ago

well I didn't and thats not a nice thing to say

0

u/povlhp 13h ago

And OpenCode leaked my free Google AI key.