Morning/Afternoon all,
I would like to run a scenario past you and ask for some advice regarding security rules.
I have an Angular app which is hosted through Firebase Hosting and uses Realtime Database and Firestore.
This apps purpose is for displaying information about an event. The information should be accessible by anyone at the event through the URL. The URL's are unique to each event.
When it comes to security rules on the the Realtime database and Firestore, would allowing read to all and blocking writes completely be sufficient or should I be looking to authenticate these users on entry and then building security rules around that user?
I keep getting alerts that I have unsecure rules and on top of that I want to understand this now to ensure that I don't have other actors driving up consumption costs.
I pondered logging each user in anonymously when they entered an event either through inputting and submitting an event code on the homepage, or through entering a url with an event code in the route. And then adding some data about the event they are focused on to their claims and building the security rules around providing access to the resources associated with the events they have in claims. Would that seem like a better option?