You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bgrand-ch
changed the title
Storage emulator: Closed access rules with Cloud Functions does not work in the emulator
Closed access rules for Storage not work in emulators
Nov 13, 2024
Hey @bgrand-ch, thanks for the detailed report! I'm able to reproduce the behavior you mentioned. When using the emulators, the request is being denied with a Permission denied. No READ permission error. I'll mark this as reproducible and raise this to our engineering team so they can take a look.
[REQUIRED] Environment info
firebase-tools: 13.25.0
Platform: macOS Sequioa 15.1
[REQUIRED] Test case
storage.rules
minimal file with closed access:firebase.json
with the followingemulators
settings (and other settings required for your project):[REQUIRED] Steps to reproduce
firebase emulators:start
.firebase-admin/storage
in a Cloud Function.ApiError: Permission denied. No READ permission
.[REQUIRED] Expected behavior
Same behaviours of closed access rules between the Cloud Storage service and the Storage emulator.
[REQUIRED] Actual behavior
Closed access rules work for Cloud Storage service in a Cloud Function with
firebase-admin/storage
, but not on the Storage emulator.Logs:
The text was updated successfully, but these errors were encountered: