Kubernetes Metadata API audit logging

This document describes audit logging for Kubernetes Metadata API. 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

Kubernetes Metadata API audit logs use the service name kubernetesmetadata.googleapis.com. Filter for this service:

    protoPayload.serviceName="kubernetesmetadata.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, Kubernetes Metadata 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
ADMIN_READ google.cloud.kubernetesmetadata.v1.MetadataPublisher.RetrieveCollectorConfig
DATA_WRITE google.cloud.kubernetesmetadata.v1.MetadataPublisher.PublishMetadata
google.cloud.kubernetesmetadata.v1.MetadataPublisher.UploadSnapshot

API interface audit logs

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

google.cloud.kubernetesmetadata.v1.MetadataPublisher

The following audit logs are associated with methods belonging to google.cloud.kubernetesmetadata.v1.MetadataPublisher.

PublishMetadata

  • Method: google.cloud.kubernetesmetadata.v1.MetadataPublisher.PublishMetadata
  • Audit log type: Data access
  • Permissions:
    • kubernetesmetadata.metadata.publish - DATA_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.kubernetesmetadata.v1.MetadataPublisher.PublishMetadata"

RetrieveCollectorConfig

  • Method: google.cloud.kubernetesmetadata.v1.MetadataPublisher.RetrieveCollectorConfig
  • Audit log type: Data access
  • Permissions:
    • kubernetesmetadata.metadata.config - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.kubernetesmetadata.v1.MetadataPublisher.RetrieveCollectorConfig"

UploadSnapshot

  • Method: google.cloud.kubernetesmetadata.v1.MetadataPublisher.UploadSnapshot
  • Audit log type: Data access
  • Permissions:
    • kubernetesmetadata.metadata.snapshot - DATA_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.kubernetesmetadata.v1.MetadataPublisher.UploadSnapshot"