protoPayload 字段的格式。在迁移期间,数据访问审核日志条目中的 protoPayload 将保持向后兼容。不过,新的或未来的代码应用应使用推荐的替换字段,如下所示:
| 建议的替换字段 | 已弃用的字段 | 说明 |
|---|---|---|
protoPayload.status.details |
protoPayload.metadata |
EXTERNAL 的错误详情(即 Cloud EKM)密钥操作。 |
protoPayload.metadata.entries.caller_provided_context |
protoPayload.request.caller_provided_context |
与此 Cloud KMS 操作关联的调用方上下文。 |
本文档列出了 Cloud Key Management Service 的受审核方法。 Google Cloud 服务会生成审核日志,以记录 Google Cloud 资源中的管理和访问活动。如需详细了解 Cloud Audit Logs,请参阅以下内容:
服务名称
如需查看 Cloud Key Management Service 审核日志,请执行以下操作:
在 Google Cloud 控制台中,前往 Logs Explorer 页面:
将以下查询复制并粘贴到Logs Explorer的查询字段中,然后点击运行查询。
protoPayload.serviceName="cloudkms.googleapis.com"
方法(按权限类型)
每个 IAM 权限都有一个 type 属性,该属性的值是一个枚举,可以是以下四个值之一:ADMIN_READ、ADMIN_WRITE、DATA_READ 或 DATA_WRITE。在您调用某个方法时,Cloud Key Management Service 会生成一个审核日志,其类别取决于执行该方法所需权限的 type 属性。需要 IAM 权限且 type 属性值为 DATA_READ、DATA_WRITE 或 ADMIN_READ 的方法会生成数据访问审核日志。需要 IAM 权限且 type 属性值为 ADMIN_WRITE 的方法会生成管理员活动审核日志。
| 权限类型 | 方法 |
|---|---|
ADMIN_READ |
google.cloud.kms.v1.Autokey.GetKeyHandlegoogle.cloud.kms.v1.Autokey.ListKeyHandlesgoogle.cloud.kms.v1.AutokeyAdmin.GetAutokeyConfiggoogle.cloud.kms.v1.AutokeyAdmin.ShowEffectiveAutokeyConfigGetEkmConfigGetEkmConnectionListEkmConnectionsVerifyConnectivitygoogle.cloud.kms.v1.HsmManagement.GetSingleTenantHsmInstancegoogle.cloud.kms.v1.HsmManagement.GetSingleTenantHsmInstanceProposalgoogle.cloud.kms.v1.HsmManagement.ListSingleTenantHsmInstanceProposalsgoogle.cloud.kms.v1.HsmManagement.ListSingleTenantHsmInstancesgoogle.cloud.kms.v1.KeyAccessJustificationsConfig.GetKeyAccessJustificationsPolicyConfiggoogle.cloud.kms.v1.KeyAccessJustificationsConfig.ShowEffectiveKeyAccessJustificationsEnrollmentConfiggoogle.cloud.kms.v1.KeyAccessJustificationsConfig.ShowEffectiveKeyAccessJustificationsPolicyConfigGetCryptoKeyGetCryptoKeyVersionGetImportJobGetKeyRingGetRetiredResourceListCryptoKeyVersionsListCryptoKeysListImportJobsListKeyRingsListRetiredResourcesGetIamPolicyGetOperation |
ADMIN_WRITE |