-1

I have a firebase database linked to an iOS app on which users have to be logged-in to read data from a specific node

So I edited my security rules :

"data": {
".read": "auth != null"
}

Nevertheless I would like to prevent users to download the whole node data via firebase CLI

I looked at the documentation https://firebase.google.com/docs/database/rest/auth but I am not sure I have properly understood what to do.

How can I disable data download over Firebase CLI ? Or is there a way to restrict downloading data by a specific user.uid or a given ip ?

scienst
  • 103
  • 1
  • 10

1 Answers1

0

Standard users (i.e. users declared in the Authentication module) cannot use their credentials to authenticate with the CLI, only "admin" users declared through the "Users and permissions" page can do so.

https://console.cloud.google.com/iam-admin/iam?project=[ProjectName]

You reach this page by clicking on the gear icon located in the upper left corner of the Firebase console, on the right of the "Project Overview" title

Renaud Tarnec
  • 79,263
  • 10
  • 95
  • 121