Log di controllo per le regole di sicurezza di Firebase
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo documento descrive la registrazione degli audit per le Regole di sicurezza Firebase. I servizi Google Cloud
generano audit log che registrano le attività amministrative e di accesso all'interno delle risorse Google Cloud.
Per ulteriori informazioni sugli audit log di Cloud, consulta quanto segue:
Ogni autorizzazione IAM ha una proprietà type, il cui valore è un enum
che può essere uno dei quattro valori: ADMIN_READ, ADMIN_WRITE,
DATA_READ o DATA_WRITE. Quando chiami un metodo,
Firebase Security Rules genera un log di controllo la cui categoria dipende dalla proprietà
type dell'autorizzazione richiesta per eseguire il metodo.
I metodi che richiedono un'autorizzazione IAM con il valore della proprietà type corrispondente a DATA_READ, DATA_WRITE o ADMIN_READ generano log di controllo Accesso ai dati.
I metodi che richiedono un'autorizzazione IAM con il valore della proprietà typeADMIN_WRITE generano
log di controllo per le attività amministrative.
Per informazioni su come e quali autorizzazioni vengono valutate per ogni metodo, consulta la documentazione di Cloud Identity and Access Management per le regole di sicurezza di Firebase.
google.firebase.rules.v1.FirebaseRulesService
I seguenti log di controllo sono associati ai metodi appartenenti a
google.firebase.rules.v1.FirebaseRulesService.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-24 UTC."],[],[],null,["This document describes audit logging for Firebase Security Rules. Google Cloud services\ngenerate audit logs that record administrative and access activities within your Google Cloud resources.\nFor more information about Cloud Audit Logs, see the following:\n\n- [Types of audit logs](https://cloud.google.com/logging/docs/audit#types)\n- [Audit log entry structure](https://cloud.google.com/logging/docs/audit#audit_log_entry_structure)\n- [Storing and routing audit logs](https://cloud.google.com/logging/docs/audit#storing_and_routing_audit_logs)\n- [Cloud Logging pricing summary](https://cloud.google.com/stackdriver/pricing#logs-pricing-summary)\n- [Enable Data Access audit logs](https://cloud.google.com/logging/docs/audit/configure-data-access)\n\n\u003cbr /\u003e\n\nService name\n\nFirebase Security Rules audit logs use the service name `firebaserules.googleapis.com`.\nFilter for this service: \n\n```gdscript\n protoPayload.serviceName=\"firebaserules.googleapis.com\"\n \n```\n\n\u003cbr /\u003e\n\nMethods by permission type\n\nEach IAM permission has a `type` property, whose value is an enum\nthat can be one of four values: `ADMIN_READ`, `ADMIN_WRITE`,\n`DATA_READ`, or `DATA_WRITE`. When you call a method,\nFirebase Security Rules generates an audit log whose category is dependent on the\n`type` property of the permission required to perform the method.\n\nMethods that require an IAM permission with the `type` property value\nof `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ` generate\n[Data Access](https://cloud.google.com/logging/docs/audit#data-access) audit logs.\n\nMethods that require an IAM permission with the `type` property value\nof `ADMIN_WRITE` generate\n[Admin Activity](https://cloud.google.com/logging/docs/audit#admin-activity) audit logs.\n\n| Permission type | Methods |\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ADMIN_READ` | `google.firebase.rules.v1.FirebaseRulesService.GetRelease` `google.firebase.rules.v1.FirebaseRulesService.GetRuleset` `google.firebase.rules.v1.FirebaseRulesService.ListReleases` `google.firebase.rules.v1.FirebaseRulesService.ListRulesets` `google.firebase.rules.v1.FirebaseRulesService.TestRuleset` |\n| `ADMIN_WRITE` | `google.firebase.rules.v1.FirebaseRulesService.CreateRelease` `google.firebase.rules.v1.FirebaseRulesService.CreateRuleset` `google.firebase.rules.v1.FirebaseRulesService.DeleteRelease` `google.firebase.rules.v1.FirebaseRulesService.DeleteRuleset` `google.firebase.rules.v1.FirebaseRulesService.UpdateRelease` |\n\nAPI interface audit logs\n\nFor information about how and which permissions are evaluated for each method,\nsee the Cloud Identity and Access Management documentation for Firebase Security Rules.\n\n`google.firebase.rules.v1.FirebaseRulesService`\n\nThe following audit logs are associated with methods belonging to\n`google.firebase.rules.v1.FirebaseRulesService`.\n\n`CreateRelease`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.CreateRelease` \n- **Audit log type** : [Admin activity](https://cloud.google.com/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `firebaserules.releases.create - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.CreateRelease\"\n ` \n\n`CreateRuleset`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.CreateRuleset` \n- **Audit log type** : [Admin activity](https://cloud.google.com/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `firebaserules.rulesets.create - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.CreateRuleset\"\n ` \n\n`DeleteRelease`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.DeleteRelease` \n- **Audit log type** : [Admin activity](https://cloud.google.com/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `firebaserules.releases.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.DeleteRelease\"\n ` \n\n`DeleteRuleset`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.DeleteRuleset` \n- **Audit log type** : [Admin activity](https://cloud.google.com/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `firebaserules.rulesets.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.DeleteRuleset\"\n ` \n\n`GetRelease`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.GetRelease` \n- **Audit log type** : [Data access](https://cloud.google.com/logging/docs/audit#data-access) \n- **Permissions** :\n - `firebaserules.releases.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.GetRelease\"\n ` \n\n`GetRuleset`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.GetRuleset` \n- **Audit log type** : [Data access](https://cloud.google.com/logging/docs/audit#data-access) \n- **Permissions** :\n - `firebaserules.rulesets.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.GetRuleset\"\n ` \n\n`ListReleases`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.ListReleases` \n- **Audit log type** : [Data access](https://cloud.google.com/logging/docs/audit#data-access) \n- **Permissions** :\n - `firebaserules.releases.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.ListReleases\"\n ` \n\n`ListRulesets`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.ListRulesets` \n- **Audit log type** : [Data access](https://cloud.google.com/logging/docs/audit#data-access) \n- **Permissions** :\n - `firebaserules.rulesets.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.ListRulesets\"\n ` \n\n`TestRuleset`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.TestRuleset` \n- **Audit log type** : [Data access](https://cloud.google.com/logging/docs/audit#data-access) \n- **Permissions** :\n - `firebaserules.rulesets.test - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.TestRuleset\"\n ` \n\n`UpdateRelease`\n\n- **Method** : `google.firebase.rules.v1.FirebaseRulesService.UpdateRelease` \n- **Audit log type** : [Admin activity](https://cloud.google.com/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `firebaserules.releases.update - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.firebase.rules.v1.FirebaseRulesService.UpdateRelease\"\n ` \n\nMethods that don't produce audit logs\n\nA method might not produce audit logs for one or more of the following\nreasons:\n\n- It is a high volume method involving significant log generation and storage costs.\n- It has low auditing value.\n- Another audit or platform log already provides method coverage.\n\n\u003cbr /\u003e\n\nThe following methods don't produce audit logs:\n\n- `google.firebase.rules.v1.FirebaseRulesService.GetReleaseExecutable`"]]