reCAPTCHA audit logging

This document describes audit logging for reCAPTCHA. Google Cloud services generate audit logs that record administrative and access activities within your Google Cloud resources. For more information about Cloud Audit Logs, see the following:

Service name

reCAPTCHA audit logs use the service name recaptchaenterprise.googleapis.com. Filter for this service:

    protoPayload.serviceName="recaptchaenterprise.googleapis.com"
  

Methods by permission type

Each IAM permission has a type property, whose value is an enum that can be one of four values: ADMIN_READ, ADMIN_WRITE, DATA_READ, or DATA_WRITE. When you call a method, reCAPTCHA generates an audit log whose category is dependent on the type property of the permission required to perform the method. Methods that require an IAM permission with the type property value of DATA_READ, DATA_WRITE, or ADMIN_READ generate Data Access audit logs. Methods that require an IAM permission with the type property value of ADMIN_WRITE generate Admin Activity audit logs.

Permission type Methods
ADMIN_READ google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKey
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetMetrics
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListIpOverrides
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeys
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroupMemberships
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroups
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RetrieveLegacySecretKey
ADMIN_WRITE google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AddIpOverride
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKey
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKey
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.MigrateKey
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RemoveIpOverride
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPolicies
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy
google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKey
DATA_WRITE google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateAssessment

API interface audit logs

For information about how and which permissions are evaluated for each method, see the Identity and Access Management documentation for reCAPTCHA.

google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService

The following audit logs are associated with methods belonging to google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.

AddIpOverride

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AddIpOverride
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.keys.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AddIpOverride"

AnnotateAssessment

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AnnotateAssessment
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.assessments.annotate - DATA_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AnnotateAssessment"

CreateAssessment

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateAssessment
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.assessments.create - DATA_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateAssessment"

CreateFirewallPolicy

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.firewallpolicies.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy"

CreateKey

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKey
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.keys.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKey"

DeleteFirewallPolicy

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.firewallpolicies.delete - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy"

DeleteKey

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKey
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.keys.delete - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKey"

GetFirewallPolicy

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.firewallpolicies.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy"

GetKey

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKey
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.keys.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKey"

GetMetrics

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetMetrics
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.metrics.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetMetrics"

ListFirewallPolicies

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.firewallpolicies.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies"

ListIpOverrides

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListIpOverrides
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.keys.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListIpOverrides"

ListKeys

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeys
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.keys.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeys"

ListRelatedAccountGroupMemberships

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroupMemberships
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.relatedaccountgroupmemberships.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroupMemberships"

ListRelatedAccountGroups

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroups
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.relatedaccountgroups.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroups"

MigrateKey

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.MigrateKey
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.keys.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.MigrateKey"

RemoveIpOverride

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RemoveIpOverride
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.keys.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RemoveIpOverride"

ReorderFirewallPolicies

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPolicies
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.firewallpolicies.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPolicies"

RetrieveLegacySecretKey

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RetrieveLegacySecretKey
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.keys.retrievelegacysecretkey - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RetrieveLegacySecretKey"

SearchRelatedAccountGroupMemberships

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.SearchRelatedAccountGroupMemberships
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.relatedaccountgroupmemberships.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.SearchRelatedAccountGroupMemberships"

UpdateFirewallPolicy

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.firewallpolicies.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy"

UpdateKey

  • Method: google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKey
  • Audit log type: Admin activity
  • Permissions:
    • recaptchaenterprise.keys.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKey"

google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1

The following audit logs are associated with methods belonging to google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.

CreateAssessment

  • Method: google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateAssessment
  • Audit log type: Data access
  • Permissions:
    • recaptchaenterprise.assessments.create - PERMISSION_TYPE_UNSPECIFIED
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateAssessment"

Methods that don't produce audit logs

A method might not produce audit logs for one or more of the following reasons:

  • It is a high volume method involving signifcant log generation and storage costs.
  • It has low auditing value.
  • Another audit or platform log already provides method coverage.

The following methods don't produce audit logs:

  • google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessment