There's absolutely nothing stopping anything with access to localhost from routing it anywhere that process wants. Does not even take a malicious actor, all kinds of legit programs expose localhost. It's really not something you should use for anything except as a signal to other well-behaving programs that you are using the network stack as a machine-local IPC bus.
We deleted the production database by accident
11–20 of 456 posts
Re: We deleted the production database by accident
#12Does the database name value allow specifying a host as part of it?
Tough way to learn that lesson though.
Re: We deleted the production database by accident
#13>Note that host is hardcoded to localhost. This means it should never connect to any machine other than the developer machine. We’re too tired to figure it out right now. The gremlins won this time. Obviously, somehow the script ran on the database host. some practices I've followed in the past to keep this kind of thing from happening: * A script that deletes all the data can never be deployed to production. * scrip…
Re: We deleted the production database by accident
#14Re: We deleted the production database by accident
#15localhost is an abstraction, it's a non-routable-outside-your-machine network...except it's not. It's nothing more than normal TCP traffic except with a message to the OS and other programs that whatever is on that local computer network, you don't want it routed outside the local computer. There's absolutely nothing stopping anything with access to localhost from routing it anywhere that process wants. Does not even…
Re: We deleted the production database by accident
#16> terraform destroy
(And either a confirmation or a flag) and everything is deleted.
I know you can add some locks but still :/
Re: We deleted the production database by accident
#17Does the database name value allow specifying a host as part of it?
Re: We deleted the production database by accident
#18Lost seven hours of data? Daily backup with no transaction log backup? Whoa.
Re: We deleted the production database by accident
#19I think the main reason of this accident is lack of separation between development and operations.
Re: We deleted the production database by accident
#20Recreate and seed test database is totally ok in RoR world. I think the main reason of this accident is lack of separation between development and operations.