Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

124
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda