r/ProgrammerHumor • • 2d ago

Other vibeCodeMasterClass

Post image
9.3k Upvotes

606 comments sorted by

View all comments

30

u/Mars_Bear2552 2d ago

this implies that game copies come with an API key

22

u/Shadowlance23 2d ago

That's what I think too. A smarter way of doing it would be to route commands through a server the dev controls so they could put limits in and not expose the key, but I very much doubt that has happened.

15

u/fefect123 2d ago

I very much doubt that, routing the requests through a global server which then handles the requests it the only way to go. Nobody is that stupid that they directly allow access through an API key included in the game itself.

39

u/Banes_Addiction 2d ago

Nobody is that stupid that they directly allow access through an API key included in the game itself. 

lol. lmao.

9

u/james2432 1d ago

rofl. even

33

u/Mars_Bear2552 2d ago

with the advent of vibe coded slop? you'd be shocked.

9

u/Personal-Code-2496 2d ago

You wanna see the amount of slop that comes with vibe coding. I have seen endpoints not doing basic validation if a user has access to a specific resource to every secret in an project being committed to a public repository. Using chatGPT doesn't make you a programmer and it shows whenever you see the code quality from vibe coders

12

u/AnnoyingRain5 2d ago

If AI made the game itself, it likely has an api key in the code, this is a very common mistake made by agents

7

u/Enverex 1d ago

AI agents will absolutely scream about passwords and API keys being present anywhere where either they or other people could get access to them.

6

u/AnnoyingRain5 1d ago

I know of many vibecoded projects where the AI placed credentials in production user-facing code.

3

u/Specific_Raccoon_696 1d ago

Maybe a year or two ago or with cheap models - any time you get close to talking about API keys and secrets, the AI will keep reminding you not to paste it in the chat. Of course, if the dev is dumb enough to do that themselves then it can get saved somewhere by accident; but, people have been known to do that sort of thing even before AI as well.

5

u/cuntmong 1d ago

nah you luddites dont know shit. my vibe coded website is 100x better than anything you could make, and it took about 3 minutes to make. devs are cooked. check it out:

http://localhost:8080/index.html

3

u/Spaceduck413 1d ago

Wtf you stole my site!

3

u/poophroughmyveins 1d ago

6-12 months ago maybe lol

5

u/Real-Extension-1357 2d ago

Forget AI, people have definitely done this before and Im not sure why the person you replied to said nobody is that stupid and yet...

2

u/AnnoyingRain5 2d ago

Oh 100%, people are in fact that stupid, however this has become way more common post-AI

5

u/The_Mdk 1d ago

Yeah, no, unless we're talking about cheap LLMs run locally or something

Claude is SO pedantic about not even wanting keys in its chat cause now "anyone that could access this chat can read them" despite it running only on my dev server, it's almost annoying

And it'll bug me over and over about it if I ever do it, like it'll add "rotate that key" at the end of every message

1

u/Ran4 1d ago

..in 2024. Not today.

2

u/postexitus 1d ago

Erm. you will be surprised.

1

u/Penguinmanereikel 1d ago

I remember that AI vampire game from a few years ago that included ChatGPT API keys

3

u/Desperate-Tomatillo7 2d ago

Cool, I'll ask Claude to get the API key.

2

u/BruhMomentConfirmed 2d ago

How though... Routing it through their own servers would still make for high usage.

1

u/PelimiesPena 2d ago

At least they could limit what it is used for. Provide your api-key and someone gets free access to do what ever they want with your AI-subscription. Route the traffic trough an api you control, and you can set limits, check/validate the payloads and only return pre-defined payloads.

5

u/Karnewarrior 1d ago

It's a game about having a sister. SOME of those players ain't teaching her to drive...

1

u/Merry-Lane 2d ago

Setting up a reverse proxy that authenticates the requests and redirects them doesn’t make that high of a usage. It’s abysmal compared to requests hitting a db.

1

u/SensitiveRooster1662 2d ago

Open your systems, the games are more fun i guess?

1

u/Moscato359 18h ago

Not if the dev hosts a proxy which has the key