Kubernetes Metadata API audit logging

This document describes audit logging for Kubernetes Metadata API, which methods generate audit logs, details about the audit logs each method produces, and which methods do not produce audit logs, if any. Google Cloud generates audit logs that record administrative and access activities within your Google Cloud resources. For more information, see Cloud Audit Logs overview.

Service name

Kubernetes Metadata API audit logs use the service name kubernetesmetadata.googleapis.com.

Methods by permission type

Methods that check DATA_READ, DATA_WRITE, and ADMIN_READ permissions generate logs categorized as Data Access audit logs. Methods that check ADMIN_WRITE permissions generate logs categorized as 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

Audit logs for each API interface

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 section contains details about audit logs 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"