4 ms·
TL/DR: > If your database is smart enough and capable enough, why would you even need a server? Hosted database saves you from the horrors of hosting and lets
by theamk 2y ago
TL/DR:
> If your database is smart enough and capable enough, why would you even need a server? Hosted database saves you from the horrors of hosting and lets your data flow freely to the frontend.
(this is a blog of one such hosted database provider)
- Sytten 2y agoThat quote is why security people will always be employed. Jokes aside firebase access control is a nightmare and all those database as an APi thing have the same problem.
- SuperNinKenDo 2y agoApropos of the other reply to you about security. Maybe some security people could let me know their thoughts on this. It seems like generally, the best way to expose your database to the internet is considered to be not doing so in the first place, i.e., have your webserver query and cache a hosted database that isn't directly exposed. Is my understanding correct? It seems that almost all data breaches we hear about are directly exposed databases or their cloud equivalents. Is doing this in the era of "cloud" being made impossible?
- worthless-trash 2y agoI don't think most largescale breaches are directly exposed databases, they are just the ones that summon the largest face palms.
- TeMPOraL 2y agoThat's in some sense a "Swiss cheese security model". It's not that databases should, in principle, never be directly exposed. It's that they rarely are designed for it security-wise[0]; meanwhile, adding whatever complex assembly of containers and applications written in random languages and frameworks, to sit between users and the database, introduces a swamp of better-secured systems that attackers also needs to get through. The more cruft you pile on, the more annoying it gets for attackers and users alike. In fact, there are many benefits of directly exposed databases - many of which would remove the need for applications normally sitting on top of those databases, which are strictly inferior and less ergonomic and overall more shitty than a generic database browsing interface. But that's another reason for why things are the way they are: people wanna make money, and having your application be a toll booth between useful data you own and the rest of the world, is tried and true way of making money. -- [0] - Because they're not normally exposed, because they're not designed for it, because... it's a self-reinforcing loop.
- dvrp 2y agoWhat do you propose as solution for companies to be able to embrace more "liberating" philosophies such as anti-lock-in measures or copyleft-friendly measures? It seems that solving that is a cultural/economic problem, not a technical one, and that's a shame.