News for hackers. Stuff that matters.
Re:My $500M Mars rover mistake by csomar on Tuesday November 28, 2023 @10:24PM (#38455105)
This is bad because if someone forgot to add prod or for whatever reason the code executed beyond the panic, you’ll wipe out the db.

There is no code that will protect your db/data. Only replication to a read-only storage will help in such situations.

Re:My $500M Mars rover mistake by saagarjha on Tuesday November 28, 2023 @11:35PM (#38455619)
If code is executing past a panic, I think it is unlikely that you can trust the integrity of your database anyways.
Re:My $500M Mars rover mistake by Andrex on Tuesday November 28, 2023 @11:14PM (#38455488)
But what if you have a chron job that auto replicates and then deletes everything after you forward it?