That should be a lesson in whether "the best" consider it important to every last thing 100% right, or to move quickly and maybe make a small number of mistakes along the way.
Also, they may be "the best" (because they have a PhD, or something), but have no idea of what makes the best code
Yes, the code may suck, but the business is growing. What about those companies that prioritise code quality instead of growth? You probably never heard of them
> What about those companies that prioritise code quality instead of growth? You probably never heard of them
Please stop spreading that nonsense. Speaking from inside knowledge, some of them have strong, sustainable business growth and very successful recent IPOs. Some companies survive despite crap code. This does not make it the only way to work, or even the best way.
It would be nice if they at least focused on quality when it comes to security. I lost count of how many fast-growing companies shared their database with the world.
Yes, especially in the core areas (security/payments/etc) this needs to be handled carefully.
But don't overdo it beyond what is needed. Yes, the DB server needs a firewall, needs good access controls, needs backups.
But you probably don't need 5 slave DBs in 3 different geographical zones so that you "try" to achieve 5 9's of reliability for your service that has 100 sales per day.
My recently-built DB machine has 4 listening network sockets that are bound to non-local interfaces: tcp/22:sshd (so I get in), tcp/5432:postgresql (because it's DB server, huh), udp/123:ntpd (so clocks are in sync) and tcp/443:nginx (serves some static pages with performance data).
"Any system that allows unrestricted access to the PostgreSQL network port, such as users running PostgreSQL on a public cloud, is especially vulnerable. Users whose servers are only accessible on protected internal networks, or who have effective firewalling or other network access restrictions, are less vulnerable.
"This is a good general rule for database security: do not allow port access to the database server from untrusted networks unless it is absolutely necessary. This is as true, or more true, of other database systems as it is of PostgreSQL."
Tumblr has weird bugs that seem to involve character escaping. Searching for tags that have slashes in them seem to end up parsed as URL segments and will return 404s, for instance.