6

Is it possible to have a Firebase Storage rule that is similar to the get() function of Firestore?

Basically I would like to check the user document in Firestore to allow writes in Storage.

I guess working with claims would be the best solution, but I'm not sure I can use that.

I would like something like this:

allow create: if get(/databases/$(database)/documents/users/$(request.auth.uid)).data.canDoSomeStuff == true;
Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Johan Nordberg
  • 3,621
  • 4
  • 33
  • 58

1 Answers1

3

It's currently not possible for security rules for any Firebase product to reach outside of their own product. Feel free to file a feature request for that.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441