Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
Confused With Firestore Rules

I am building a simple desktop app which will require a serial key to unlock all the functions of the app.

I am using the Firestore Rest API to store the serial key when a user presses the Activate button which is wired up and working.

Question: My current rules for the database are set to allow read, write: which the app needs so it can write and read back from the database. I keep reading that this is Bad because anyone can sniff out the project ID and then mess with the database using the Curl method from a browser.

Based on my workflow, whats the best route to go down

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The reason it is bad is because any user can edit any record in your data store. A more secure solution would be to associate each record with a user identifier and only users add and edit records which contain their user identifier.

A way to do this is to use Firebase authentication but, if you already have something else in place to identify individuals, you could use that.

The key is to ensure users can't edit anyone else's records, only their own. I found this article quite useful to get my head around it: https://fireship.io/snippets/firestore-rules-recipes/.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!