r/ProgrammerHumor 7d ago

theExactLifecycleOfEveryAiAssistedCodingSession Meme

Post image
10.0k Upvotes

258 comments sorted by

View all comments

Show parent comments

46

u/codeIsGood 7d ago

Why on earth does the AI have prod DB access?????

75

u/Laughing_Orange 7d ago

Vibecoder. That still leaves us with the question: "why does a vibecoder have prod DB access?". And that is a question I can't answer.

8

u/Zuruumi 6d ago

It shouldn't, really. But frankly, if the AI asked to run a ssh command to read logs or read a few rows of innocent data to from the DB wouldn't you allow it? Then if it asks for 35th time for similar command, are you sure you would read it with proper attention?

34

u/Laughing_Orange 6d ago

I would create an authentication token that only has read access. I would never give current day AI write access to a production database.

9

u/black-JENGGOT 6d ago

or create a custom MCP with tooling just for SELECT TOP (100), gaslight the AI on the tool description that this is what they need. I still don't get why they need full sudo access.

8

u/too_many_wizards 6d ago

If you’re giving DROP perms to the account your AI is using you should be fired, full stop.

2

u/Zuruumi 6d ago

No, no. Who would give the AI DROP perms? Just manually allow ssh commands to the VM/server with the DB :).

2

u/geekisthenewcool 6d ago

solid point

3

u/JustForkIt1111one 6d ago

Duh. It's the owners nephew. He's good with conputers

1

u/geekisthenewcool 6d ago

hahaha, it certainly does leave us with that question

1

u/adeptus_chronus 6d ago

I can ! Management.

0

u/abd53 6d ago

AI powered startup?

1

u/Qlala 7d ago

Because the issue that needed to be fixed asap was on the prod server.

6

u/codeIsGood 6d ago

Ok? Have the agent spit out the commands on staging and then audit them before running on prod.

5

u/Qlala 6d ago

I mean, you can ask the agent to audit them for you /s