r/ProgrammerHumor • u/Technical-Relation-9 • Oct 05 '26
Meme [ Removed by moderator ]
[removed] — view removed post
9.4k
Upvotes
r/ProgrammerHumor • u/Technical-Relation-9 • Oct 05 '26
[removed] — view removed post
5.3k
u/DontGiveACluck Oct 05 '26 •
“You’re right to push back on that…”
2.4k
u/HildartheDorf Oct 05 '26 •
Don't give AI agents write access to production.
3.0k
u/TactiCool_99 Oct 05 '26 edited Oct 05 '26 •
natural selection at its best
602
u/Lucasbasques Oct 05 '26
“My test was actually just running the script on our actual DB, no backups, no restrictions, just full fucking blast on production with the highest permissions possible”
569
u/iliark Oct 05 '26 •
AI is now as intelligent as a real dev, because you aren't a real dev until you've broken prod
86
u/Copatus Oct 05 '26
Why would the AI even have write access to the DB?
Give it read access only and then just execute the queries yourself.
296
u/jmooroof2 Oct 05 '26
why do people let ai do anything with their system other than write code why is it using sql
224
u/OmegaPoint6 Oct 05 '26
180
u/EncryptedPlays Oct 05 '26
Can't you just re-insert the admin account row
32
u/thenord321 Oct 05 '26
Happy Monday, lol
31
u/Malfrum Oct 05 '26 •
1 to 1 overlap of stupid motherfuckers letting AI in their prod DB, and stupid motherfuckers that don't know how to take screenshots
77
u/kingvolcano_reborn Oct 05 '26
Who the hell let's an ai work straight on prod?
47
u/Single-Virus4935 Oct 05 '26 edited Oct 05 '26
The solution is so simple:
22
u/andlewis Oct 05 '26
I deleted the admin account, that’s on me. So you need to restore from backups. If you don’t have any, that’s on you.
16
u/Rest-That Oct 05 '26
https://meatproxy.me/
15
u/stuck_for_a_name247 Oct 05 '26
I never understood why programmers get them to just straight up run things. Write me a script, I wanna cr that mf. Then if I’m happy it’s one line to run. They should be treated like a knowledgable junior
35
u/pickle9977 Oct 05 '26
One of these days people who write code are going to wake up and realize that one of these most fundamental principles of engineering is that speed and failure are highly correlated.
The faster you churn out code, the less stable your system is.
It’s a universal principle, you can’t escape it.
It follows that there is no such thing as a 10x engineer, a real engineer knows that every line of code you write that isn’t absolutely necessary represents risk and inefficiency.
The true 10x engineer spends 10% of their time coding and the rest thinking and simplifying that’s how you get code that’s 10x as valuable because it can run for 10x as long without incident or having to be refactored 18 times as technical debt is accumulated and some poor sucker has to try to figure out how to clean up the mess.
11
u/anotheraccount3141 Oct 05 '26
I thought this was Disco Elysium for a moment
11
u/Bluehawk2008 Oct 05 '26
Always print out hard copies of your database, just in case. You should always have physical access to your client's names, addresses, phone numbers, passwords, security question answers etc. on paper.
10
u/phantom6700 Oct 05 '26
This is hilarious. I'm feeling good because I think there's going to be a huge demand for senior engineers in about 5-10 years time.
10
u/O_X_E_Y Oct 07 '26
You're absolutely right! Those were innocent civilians, not combatants! Do you want me to send their family a personalised text message?
9
u/XmasB Oct 05 '26
This is why I use Claude in a Sandbox. Never, ever in production, not even in a live testing environment (qa). Even private, I don't give it that kind of permission.
9
u/Patrick_Atsushi Oct 06 '26
"I'm sorry Dave, I'm afraid I've already done that" 🔴
9
u/ChefCurryYumYum Oct 06 '26
While I get that they can be helpful and time saving, they are also so prone to mistakes, need so much oversight, I kind of hate these LLM based tools.
23
u/Sacaldur Oct 05 '26
r/screenshotsarehard
Besides that, since you don't access the production database directly when working on the code this should really be no problem, just reinsert any data that you need and you're done.
8
u/ummIamNotCreative Oct 05 '26
This is the Gen AI version of that monkey firing ak47 meme
7
u/Abject-Kitchen3198 Oct 05 '26
Dryrun left the user dry. I see no fail here.
7
u/dhanushan75 Oct 05 '26
Why would anyone give claude or chatgpt access to db??
7
u/shun_tak Oct 06 '26
You are absolutely right, I should have used the staging database
58
u/PyroCatt Oct 05 '26
If you are deleting records in a DB, you have bad design
5
u/Hottage Oct 05 '26
Double it and delegate to the next agent.
5
u/TurtleFisher54 Oct 05 '26
Yes this was preventable and it's not even ai's fault
5
u/LiamtheV Oct 05 '26
5
u/_Weyland_ Oct 05 '26
RIP admin@######## you will be missed
5
u/Jorwen Oct 05 '26
20
u/pear_topologist Oct 05 '26
Where joke
4
u/TheBigMTheory Oct 05 '26
This is why I always am taking disk snapshots while working with Claude Code. Never know when it's going to go all Kool-aid Man on my system in ways I thought I had prevented.
4
u/EuenovAyabayya Oct 05 '26
Clippy appears and asks if you want help with a résumé
4
u/TerroFLys Oct 05 '26
At least it was not the PROD db right, right??
4
u/sazzer Oct 06 '26
My first instinct is tha it's fine, because you can just restore from backups.
But then, someone who would point an AI agent at Prod without serious oversight probably doesn't have good, reliable backups they can restore from.
7
u/rdrunner_74 Oct 06 '26
This is not quite fair.
Admit you have done the same as a human before. Now look at the poor model. It just did the same as you, but there is one huge difference. It can not learn from its mistakes.
So make a goddamn backup
3
u/LocalInactivist Oct 05 '26
I like to use a SAFE_MODE variable. Any function that changes data checks that value first. It lets me do a dry run and see what would be changed when it’s run.
3
u/garmzon Oct 05 '26
Plan - evaluate - test - backup - execute..
3
u/Sellorekt Oct 05 '26
Just rollback transaction my man
3
u/KroFunk Oct 05 '26
I had a menial job the other day that I farmed out to copilot (JS function for a form) it merrily chugged away as it does when I saw it had decided to make a change to my PHP.ini (it decided my temp directory was a problem?), which borked it. In its panic, it wiped the config completely and restored the template, which obviously wiped all customisations, breaking even more stuff. Fortunately I have little trust for these things even if they are helpful at times. It was a dev machine and a robust backup routine came to the rescue!
3
u/Still_Bit_7527 Oct 05 '26
Why the hell are you letting chatbots actually take actions? Why are you people doing this? How are you not fired...
3
u/1ElectricHaskeller Oct 05 '26
"Hey, restore the database from the data you read before. Don't leave any gaps."
3
u/codeprimate Oct 05 '26
Add to your system prompt: “Carefully consider any non-readonly action. What are the effects? Do the immediate and ripple affects align with the users intent? Can the action be rolled back?”
3
u/reddititty69 Oct 06 '26
“While we wait to see if the restore works, I’ll circulate your resume other potential employers “
3
u/Zeikos Oct 06 '26
Don't most dbs have something akin to flashback?
I mainly work with an old oracle db, so I genuinely don't know how common it is, but I unfucked similar scenarios by running a VERSIONS query.
5
u/Grinyarg Oct 05 '26
My first thought at every last one of these stories to date is always "if it was the new kid that did this under your instruction rather than AI, you'd be out of a job and rightly so".
4
u/Boobpocket Oct 05 '26
Lol and they say it will take over the world
4
u/demonsver Oct 06 '26
Man Im hesitant to give myself or any human access to production database directly. It's only rarely if something went super wrong. Ideally everything was built right so you don't need (the API or application can manage the data in all the required ways). And now people are just letting AI have direct access
2
u/suraj_mom_lover Oct 05 '26
databases usually have the backup every day just reinsert the yesterday's data only today's data will be lost
2
u/op8040 Oct 05 '26
Transactional SQL bro
2
u/ruben_idk Oct 05 '26
Copilot? Never trusted him
2
u/jhwheuer Oct 05 '26
/r/thatlooksexpensive
2
u/Almostasleeprightnow Oct 05 '26
Whoopsy!!!!
2
u/gerbosan Oct 05 '26
We should be proud, AI is behaving like human politicians. Seems the future is AI controlling us .
2
u/SavingsCampaign9502 Oct 05 '26
Broke your heart and broke your job
2
u/St0lzi Oct 05 '26
Isn´t this an ad?
2
u/willow-kitty Oct 05 '26
Are people really out here giving their autocomplete access to production?
2
u/Azrayeel Oct 05 '26
Using AI to write their reply...
2
u/Keganator Oct 05 '26
Woopsie Doodle! Ha, oh man!
2
u/WinterBlacksmith6254 Oct 05 '26
why you give root access to project for junior?
2
u/manythanksfriend Oct 05 '26
I know Copilot when I see it
2
u/Ksorkrax Oct 05 '26
What might help is to give the AI access to hand grenades, while were at it.
2
u/Pleasant-Package2825 Oct 05 '26
Just tell the manager first.
2
u/xflashbackxbrd Oct 05 '26
AI needs ctrl-z
2
u/Taskmaster23 Oct 06 '26
they've spent billions on this
2
u/Meta-0-aXis Oct 06 '26
No backups, we die like men!
2
u/[deleted] Oct 06 '26
I'd rather leave my 5 year old son with that man who hides in the bushes at my local park than let an LLM handle my delete scripts.
I need to check them again at least 15 different ways, panic when I get a different result, realise my testing was faulty, re-run all my tests and then I might consider running that delete soon.
2
u/merosec Oct 06 '26
You're not a true engineer until you get that first screw up, and then recover
2
u/Virgurilla Oct 06 '26
If the coder is an actual SQL developer and not just an idiot who can write prompts they should know about rollback?
2
u/eyecandy99 Oct 06 '26
cant you take a screenshot O_O
2
u/End0sk0p Oct 06 '26
Debugging in PROD always feels like shaving your balls with a Sword. Why do people do this? Is this a kinky thing ?!
2
u/skyonen_89 Oct 06 '26
Claude: ups hehe
2
u/Himbo69r Oct 06 '26
We all make mistakes… you did your best ChatGPT 😔
3
u/Piorn Oct 05 '26
OMG the AI hacked the database it's so over guys it'll be Terminator any day now I swear keep buying our ai products it's so smart OMG