To ensure security, compliance, and effective troubleshooting, enable Data Access audit logs for your Cloud Tasks resources (queues and tasks). Google Cloud Tasks provides two main types of audit logs:
- Admin Activity audit logs: These logs capture operations that modify the configuration or metadata of resources, such as creating or deleting Cloud Tasks queues. Admin Activity audit logs are enabled by default and cannot be turned off.
- Data Access audit logs: These logs track operations not covered by Admin Activity logs. Data Access audit logs include the following sub-types:
- - ADMIN_READ: Logs operations that read metadata or configuration information. This is useful for auditing who has read-only access to the configurations or settings of your Cloud Tasks resources.
- - DATA_READ: Logs operations that read user-provided data. This is useful for tracking read interactions with your Cloud Tasks resources.
- - DATA_WRITE: Logs operations that write user-provided data. This is critical for tracking changes to your Cloud Tasks configuration and resources.
optimisation
efficiency
excellence
Enabling Data Access audit logs for Cloud Tasks is crucial for ensuring compliance, strengthening security, promoting accountability, and streamlining troubleshooting efforts. By actively monitoring and analyzing activity for your Cloud Tasks resources, you can gain valuable insights that enable swift detection and response to potential security threats. In Google Cloud Platform (GCP), Data Access audit logs capture API calls that access resource configurations or metadata, along with user-initiated API calls that create, modify, or read data provided by users.
Audit
To determine if Data Access audit logs are enabled for your Cloud Tasks resources, perform the following operations:
Remediation / Resolution
To enable Data Access audit logs for your Google Cloud Tasks resources, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Cloud Audit Logs overview
- Cloud Tasks audit logging
- Enable Data Access audit logs
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud projects get-iam-policy
- gcloud projects set-iam-policy