r/AskProgramming • u/Known-Flamingo-209 • Aug 03 '26
HTML/CSS HTML DB/ Security
I’m a beginner in html, what database would you recommend me to use for a project that I want to be working initially on one device only, it would be for a friend to make a task easier at their job it’s my first real world project and I’m afraid that data will be lost
What security/ protection layers I must apply ?
What’s your recommendations
1
Upvotes
View all comments
Show parent comment
2
u/JeLuF Aug 03 '26
I recently stumbled across an application using a database centric approach. It's a web application for judges in a sports competition. What I've found out so far: Users register with the database platform. They then apply for permissions in the judging application. An admin assigns them to a judges panel in a competition. This allows them to enter their votes. ACLs are in place to only allow them to add new votes to the system for that specific panel in that competition.
The chiefs of the judges panel (CJP), in their web view, see all the votes from the judges, and once all judges have entered their data, one of the CJP clicks a button to confirm the votes. This computes the participant's total points and stores this in a new "excercise" record that only the CJP has rights to create for this competition.
I'm running the live stream, and I have a web page that is subscribed to changes to the "excercise" records. The database has builtin pubsub functionality. When there are changes, the page gets notified via a websocket to the DB and automatically shows a small animated lower third with the results, which OBS then overlays over the video feed.
It looks very strange for someone like me who is used to a classical client/server architecture, but I didn't find any issues so far. The ACLs seem to prevent that the judges can alter votes that they shouldn't be able to change, and my "can access overlays" account can't edit the votes either. It's probably more secure than a server process that only uses a single very powerful database account for all its SQL statements.
It really looked very odd on first glimpse. But honestly, it doesn't look too bad to me after all. No server processes to take care of, no patching of nginx or node.js or python or PHP or whatever, all of your application core is just static content in a CDN. They use firebase as their backend, so that's just some cloud application that Google takes care of for you.