Cloud Audit Logs for Container Security API let you track administrative and data-access operations on your resources to help you monitor access and configuration changes. You can query these logs in the Logs Explorer and check which Container Security API API methods generate Cloud Audit Logs.
For more information about Cloud Audit Logs, see the following documents:
- Types of audit logs
- Audit log entry structure
- Storing and routing audit logs
- Cloud Logging pricing summary
- Enable Data Access audit logs
Notes
This API cannot be called directly, and is only accessible through the dashboard in the Cloud de Confiance console.
Service name
To view the Container Security API audit logs, do the following:
In the Cloud de Confiance console, go to the Logs Explorer page:
Copy and paste the following query into the Query field of the Logs Explorer, and then click Run query.
protoPayload.serviceName="containersecurity.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,
Container Security API 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 |
|---|---|
DATA_READ |
google.cloud.containersecurity.v1beta.ContainerSecurity.ListFindingsgoogle.cloud.containersecurity.v1beta.ContainerSecurity.SearchClusterFindingSummaries |
API interface audit logs
For information about how and which permissions are evaluated for each method, see the Identity and Access Management documentation for Container Security API.
google.cloud.containersecurity.v1beta.ContainerSecurity
The following audit logs are associated with methods belonging to
google.cloud.containersecurity.v1beta.ContainerSecurity.
ListFindings
- Method:
google.cloud.containersecurity.v1beta.ContainerSecurity.ListFindings - Audit log type: Data access
- Permissions:
containersecurity.findings.list - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.containersecurity.v1beta.ContainerSecurity.ListFindings"
SearchClusterFindingSummaries
- Method:
google.cloud.containersecurity.v1beta.ContainerSecurity.SearchClusterFindingSummaries - Audit log type: Data access
- Permissions:
containersecurity.clusterSummaries.list - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.containersecurity.v1beta.ContainerSecurity.SearchClusterFindingSummaries"
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 significant 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.location.Locations.GetLocationgoogle.cloud.location.Locations.ListLocations