Firebase Admin icon

Firebase Admin

Interact with Firebase Firestore, Auth, and Storage using Firebase Admin SDK

Storage Rule → Update Rules

AI-generated

Summary

Update Firebase Storage Security Rules for a specified project and bucket, optionally releasing the new rules automatically under a configurable release name.

Inputs

  • Project Name or ID (required) — Select the Firebase project by name or ID to apply the storage rules.
  • Bucket Name or ID — Specify the Cloud Storage bucket name. Leave blank to use the default bucket associated with the project.
  • Release Name Override — Provide a custom release name for the new ruleset. Defaults to 'firebase.storage/{bucketName}' if not specified.
  • Rules Source (required) — The source code of the Firebase Storage Security Rules to deploy.
  • Auto-Release — Choose whether to automatically update the release to point to the newly created ruleset.

Output shape

a JSON object containing the deployed ruleset metadata including the ruleset name and possibly the release information if auto-release is enabled.

If 'Auto-Release' is set to true, the operation will update the release to use the newly created ruleset. The actual returned object reflects the deployment status and metadata as returned by the Firebase Admin SDK API.

Examples

Example 1: Updating security rules for a specific bucket with auto-release enabled

Project ID set, bucket name selected, new rules source provided, auto-release true, no release name override

Example 2: Deploying rules with a custom release name and manual release management

Project ID set, bucket name selected, rules source provided, auto-release false, release name override specified

Links

Discussion