Artifact Registry (AR)

借助 Google Distributed Cloud (GDC) 网闸隔离设备中的 Artifact Registry (AR) 数据平面审核日志,您可以跟踪对文件存储中的制品执行的成功操作。Artifact Management 审核日志会记录您创建、删除或拉取制品时的调用方身份、目标资源和集群、操作以及时间戳。

工作负载位置

文件存储

审核日志来源

制品管理审核日志

审核的操作

日志类型

数据平面

创建工件

日志条目中包含审核信息的字段
审核元数据 审核字段名称 值
用户或服务身份 user

例如,

"user":{
  "identity":"s:gpc-system:artifact-registry-services-registry-exporter",
  "issuer":"artifact.private.gdc.goog/hra"
}

目标

(调用 API 的字段和值)

  • resource
  • _gdch_service_name
  • _gdch_cluster

"resource": "library/configsync:1.9.0-gdch.306",
"_gdch_service_name": "artifactmanagement",
"_gdch_cluster": "root-admin"

操作

(包含所执行操作的字段)

action

"action": "create"

事件时间戳 time

例如,

"time": "2022-11-30T02:14:33Z"

操作来源 无法使用。

无法使用。

结果 系统只会记录成功的操作。

系统只会记录成功的操作。

其他字段 _gdch_cluster

例如,

"_gdch_cluster": "root-admin"

日志示例

{
  "auditID": "15000",
  "action": "create",
  "time": "2022-11-30T02:14:33Z",
  "user":{
    "identity":"s:gpc-system:artifact-registry-services-registry-exporter",
    "issuer":"artifact.private.gdc.goog/hra"
  },
  "resource": "library/configsync:1.9.0-gdch.306",
  "_gdch_service_name": "artifactmanagement",
  "_gdch_namespace": "harbor-system",
  "_gdch_service_tenant": "infra-obs",
  "_gdch_cluster": "root-admin",
  "_gdch_fluentbit_pod": "anthos-audit-logs-forwarder-wqbg8"
}

删除制品

日志条目中包含审核信息的字段
审核元数据 审核字段名称 值
用户或服务身份 user

例如,

"user":{
  "identity":"s:gpc-system:artifact-registry-services-registry-exporter",
  "issuer":"artifact.private.gdc.goog/hra"
}

目标

(调用 API 的字段和值)

  • resource
  • _gdch_service_name
  • _gdch_cluster

"resource": "library/test:v1",
"_gdch_service_name": "artifactmanagement",
"_gdch_cluster": "root-admin"

操作

(包含所执行操作的字段)

action

"action": "delete"

事件时间戳 time

例如,

"time": "2022-11-30T21:26:17.718Z"

操作来源 无法使用。

无法使用。

结果 系统只会记录成功的操作。

系统只会记录成功的操作。

其他字段 _gdch_cluster

例如,

"_gdch_cluster": "root-admin"

日志示例

{
  "auditID": "3993",
  "action": "delete",
  "time": "2022-11-30T21:26:17.718Z",
  "user":{
    "identity":"s:gpc-system:artifact-registry-services-registry-exporter",
    "issuer":"artifact.private.gdc.goog/hra"
  },
  "resource": "library/test:v1",
  "_gdch_service_name": "artifactmanagement",
  "_gdch_namespace": "harbor-system",
  "_gdch_service_tenant": "infra-obs",
  "_gdch_cluster": "root-admin",
  "_gdch_fluentbit_pod": "anthos-audit-logs-forwarder-wqbg8"
}

拉取制品

日志条目中包含审核信息的字段
审核元数据 审核字段名称 值
用户或服务身份 user

例如,

"user":{
  "identity":"s:gpc-system:artifact-registry-services-registry-exporter",
  "issuer":"artifact.private.gdc.goog/hra"
}

目标

(调用 API 的字段和值)

  • resource
  • _gdch_service_name
  • _gdch_cluster

"resource": "library/test:v1",
"_gdch_service_name": "artifactmanagement",
"_gdch_cluster": "root-admin"

操作

(包含所执行操作的字段)

action

"action": "pull"

事件时间戳 time

例如,

"time": "2022-11-30T02:14:33Z"

操作来源 无法使用。

无法使用。

结果 系统只会记录成功的操作。

系统只会记录成功的操作。

其他字段 _gdch_cluster

例如,

"_gdch_cluster": "root-admin"

日志示例

{
  "auditID": "3996",
  "action": "pull",
  "time": "2022-11-30T02:14:33Z",
  "user":{
    "identity":"s:gpc-system:artifact-registry-services-registry-exporter",
    "issuer":"artifact.private.gdc.goog/hra"
  },
  "resource": "library/test:v1",
  "_gdch_service_name": "artifactmanagement",
  "_gdch_namespace": "harbor-system",
  "_gdch_service_tenant": "infra-obs",
  "_gdch_cluster": "root-admin",
  "_gdch_fluentbit_pod": "anthos-audit-logs-forwarder-wqbg8"
}