本文档介绍 Binary Authorization 的审核日志记录。Google Cloud 服务会生成审核日志,以记录 Google Cloud 资源中的管理和访问活动。 如需详细了解 Cloud Audit Logs,请参阅以下内容:
服务名称
Binary Authorization 审核日志使用服务名称 binaryauthorization.googleapis.com
。
针对此服务的过滤条件:
protoPayload.serviceName="binaryauthorization.googleapis.com"
方法(按权限类型)
每个 IAM 权限都有一个 type
属性,该属性的值是一个枚举,可以是以下四个值之一:ADMIN_READ
、ADMIN_WRITE
、DATA_READ
或 DATA_WRITE
。当您调用某个方法时,Binary Authorization 会生成一个审核日志,其类别取决于执行该方法所需权限的 type
属性。需要 IAM 权限且 type
属性值为 DATA_READ
、DATA_WRITE
或 ADMIN_READ
的方法会生成数据访问审核日志。需要 IAM 权限且 type
属性值为 ADMIN_WRITE
的方法会生成管理员活动审核日志。
权限类型 | 方法 |
---|---|
ADMIN_READ |
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetAttestor google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetPolicy google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.GetPlatformPolicy google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.ListPlatformPolicies google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence google.cloud.binaryauthorization.v1alpha2.ContinuousValidationManagementServiceV1Alpha2.GetContinuousValidationConfig google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetAttestor google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetPolicy google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.ListAttestors google.iam.v1.IAMPolicy.GetIamPolicy |
ADMIN_WRITE |
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.CreateAttestor google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.DeleteAttestor google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdateAttestor google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdatePolicy google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.CreatePlatformPolicy google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.DeletePlatformPolicy google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.ReplacePlatformPolicy google.cloud.binaryauthorization.v1alpha2.ContinuousValidationManagementServiceV1Alpha2.UpdateContinuousValidationConfig google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.CreateAttestor google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.DeleteAttestor google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdateAttestor google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdatePolicy google.iam.v1.IAMPolicy.SetIamPolicy |
API 接口审核日志
如需了解如何评估每种方法的权限以及评估哪些权限,请参阅 Binary Authorization 的 Identity and Access Management 文档。
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1
以下审核日志与属于 google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1
的方法相关联。
CreateAttestor
- 方法:
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.CreateAttestor
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.attestors.create - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.CreateAttestor"
DeleteAttestor
- 方法:
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.DeleteAttestor
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.attestors.delete - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.DeleteAttestor"
GetAttestor
- 方法:
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetAttestor
- 审核日志类型:数据访问
- 权限:
binaryauthorization.attestors.get - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetAttestor"
GetPolicy
- 方法:
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetPolicy
- 审核日志类型:数据访问
- 权限:
binaryauthorization.policy.get - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetPolicy"
ListAttestors
- 方法:
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors
- 审核日志类型:数据访问
- 权限:
binaryauthorization.attestors.list - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors"
UpdateAttestor
- 方法:
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdateAttestor
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.attestors.update - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdateAttestor"
UpdatePolicy
- 方法:
google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdatePolicy
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.policy.update - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdatePolicy"
google.cloud.binaryauthorization.v1.PlatformPolicyManagementService
以下审核日志与属于 google.cloud.binaryauthorization.v1.PlatformPolicyManagementService
的方法相关联。
CreatePlatformPolicy
- 方法:
google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.CreatePlatformPolicy
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.platformPolicies.create - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.CreatePlatformPolicy"
DeletePlatformPolicy
- 方法:
google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.DeletePlatformPolicy
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.platformPolicies.delete - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.DeletePlatformPolicy"
GetPlatformPolicy
- 方法:
google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.GetPlatformPolicy
- 审核日志类型:数据访问
- 权限:
binaryauthorization.platformPolicies.get - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.GetPlatformPolicy"
ListPlatformPolicies
- 方法:
google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.ListPlatformPolicies
- 审核日志类型:数据访问
- 权限:
binaryauthorization.platformPolicies.list - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.ListPlatformPolicies"
ReplacePlatformPolicy
- 方法:
google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.ReplacePlatformPolicy
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.platformPolicies.replace - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.ReplacePlatformPolicy"
google.cloud.binaryauthorization.v1.ValidationHelperV1
以下审核日志与属于 google.cloud.binaryauthorization.v1.ValidationHelperV1
的方法相关联。
ValidateAttestationOccurrence
- 方法:
google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence
- 审核日志类型:数据访问
- 权限:
binaryauthorization.attestors.verifyImageAttested - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence"
google.cloud.binaryauthorization.v1alpha2.ContinuousValidationManagementServiceV1Alpha2
以下审核日志与属于 google.cloud.binaryauthorization.v1alpha2.ContinuousValidationManagementServiceV1Alpha2
的方法相关联。
GetContinuousValidationConfig
- 方法:
google.cloud.binaryauthorization.v1alpha2.ContinuousValidationManagementServiceV1Alpha2.GetContinuousValidationConfig
- 审核日志类型:数据访问
- 权限:
binaryauthorization.continuousValidationConfig.get - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1alpha2.ContinuousValidationManagementServiceV1Alpha2.GetContinuousValidationConfig"
UpdateContinuousValidationConfig
- 方法:
google.cloud.binaryauthorization.v1alpha2.ContinuousValidationManagementServiceV1Alpha2.UpdateContinuousValidationConfig
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.continuousValidationConfig.update - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1alpha2.ContinuousValidationManagementServiceV1Alpha2.UpdateContinuousValidationConfig"
google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1
以下审核日志与属于 google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1
的方法相关联。
CreateAttestor
- 方法:
google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.CreateAttestor
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.attestors.create - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.CreateAttestor"
DeleteAttestor
- 方法:
google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.DeleteAttestor
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.attestors.delete - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.DeleteAttestor"
GetAttestor
- 方法:
google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetAttestor
- 审核日志类型:数据访问
- 权限:
binaryauthorization.attestors.get - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetAttestor"
GetPolicy
- 方法:
google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetPolicy
- 审核日志类型:数据访问
- 权限:
binaryauthorization.policy.get - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetPolicy"
ListAttestors
- 方法:
google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.ListAttestors
- 审核日志类型:数据访问
- 权限:
binaryauthorization.attestors.list - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.ListAttestors"
UpdateAttestor
- 方法:
google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdateAttestor
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.attestors.update - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdateAttestor"
UpdatePolicy
- 方法:
google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdatePolicy
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.policy.update - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdatePolicy"
google.iam.v1.IAMPolicy
以下审核日志与属于 google.iam.v1.IAMPolicy
的方法相关联。
GetIamPolicy
- 方法:
google.iam.v1.IAMPolicy.GetIamPolicy
- 审核日志类型:数据访问
- 权限:
binaryauthorization.attestors.getIamPolicy - ADMIN_READ
binaryauthorization.policy.getIamPolicy - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.iam.v1.IAMPolicy.GetIamPolicy"
SetIamPolicy
- 方法:
google.iam.v1.IAMPolicy.SetIamPolicy
- 审核日志类型:管理员活动
- 权限:
binaryauthorization.attestors.setIamPolicy - ADMIN_WRITE
binaryauthorization.policy.setIamPolicy - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.iam.v1.IAMPolicy.SetIamPolicy"
不会生成审核日志的方法
由于以下一个或多个原因,方法可能不会生成审核日志:
- 这是一种高容量方法,涉及较高的日志生成和存储费用。
- 它的审核价值较低。
- 其他审核或平台日志已提供方法。
以下方法不会生成审核日志:
google.cloud.binaryauthorization.v1.PlatformPolicyEvaluationService.EvaluateGkePolicy
google.cloud.binaryauthorization.v1.SystemPolicyV1.GetSystemPolicy
google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1.GetSystemPolicy