Artifact Registry (AR) data plane audit logs in Google Distributed Cloud (GDC) air-gapped appliance
let you track successful operations on artifacts in file storage. Artifact
Management audit logs record the caller identity, target resource and cluster,
action, and timestamp when you create, delete, or pull an artifact.

|---|---|
| **Workload location** | File storage |
| **Audit log source** | [Artifact Management audit logs](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/infrastructure/io-operations/audit-am) |
| **Audited operations** | - [Create an artifact](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/infrastructure/io-operations/audit-ar#create) - [Delete an artifact](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/infrastructure/io-operations/audit-ar#delete) - [Pull an artifact](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/infrastructure/io-operations/audit-ar#pull) <br /> |
| **Log type** | Data plane |

## Create an artifact

| Fields in the log entry that contain audit information |||
| Audit metadata | Audit field name | Value |
|---|---|---|
| **User or service identity** | `user` | For example, <br /> ```json "user":{ "identity":"s:gpc-system:artifact-registry-services-registry-exporter", "issuer":"artifact.private.gdc.goog/hra" } ``` <br /> |
| **Target** *(Fields and values that call the API)* | - `resource` - `_gdch_service_name` - `_gdch_cluster` | <br /> ```json "resource": "library/configsync:1.9.0-gdch.306", "_gdch_service_name": "artifactmanagement", "_gdch_cluster": "root-admin" ``` <br /> |
| **Action** *(Fields containing the performed operation)* | `action` | `"action": "create"` |
| **Event timestamp** | `time` | For example, `"time": "2022-11-30T02:14:33Z"` |
| **Source of action** | *Not available.* | *Not available.* |
| **Outcome** | *Only successful operations are logged.* | *Only successful operations are logged.* |
| **Other fields** | `_gdch_cluster` | For example, `"_gdch_cluster": "root-admin"` |

### Example log

    {
      "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"
    }

## Delete an artifact

| Fields in the log entry that contain audit information |||
| Audit metadata | Audit field name | Value |
|---|---|---|
| **User or service identity** | `user` | For example, <br /> ```json "user":{ "identity":"s:gpc-system:artifact-registry-services-registry-exporter", "issuer":"artifact.private.gdc.goog/hra" } ``` <br /> |
| **Target** *(Fields and values that call the API)* | - `resource` - `_gdch_service_name` - `_gdch_cluster` | <br /> ```json "resource": "library/test:v1", "_gdch_service_name": "artifactmanagement", "_gdch_cluster": "root-admin" ``` <br /> |
| **Action** *(Fields containing the performed operation)* | `action` | `"action": "delete"` |
| **Event timestamp** | `time` | For example, `"time": "2022-11-30T21:26:17.718Z"` |
| **Source of action** | *Not available.* | *Not available.* |
| **Outcome** | *Only successful operations are logged.* | *Only successful operations are logged.* |
| **Other fields** | `_gdch_cluster` | For example, `"_gdch_cluster": "root-admin"` |

### Example log

    {
      "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"
    }

## Pull an artifact

| Fields in the log entry that contain audit information |||
| Audit metadata | Audit field name | Value |
|---|---|---|
| **User or service identity** | `user` | For example, <br /> ```json "user":{ "identity":"s:gpc-system:artifact-registry-services-registry-exporter", "issuer":"artifact.private.gdc.goog/hra" } ``` <br /> |
| **Target** *(Fields and values that call the API)* | - `resource` - `_gdch_service_name` - `_gdch_cluster` | <br /> ```json "resource": "library/test:v1", "_gdch_service_name": "artifactmanagement", "_gdch_cluster": "root-admin" ``` <br /> |
| **Action** *(Fields containing the performed operation)* | `action` | `"action": "pull"` |
| **Event timestamp** | `time` | For example, `"time": "2022-11-30T02:14:33Z"` |
| **Source of action** | *Not available.* | *Not available.* |
| **Outcome** | *Only successful operations are logged.* | *Only successful operations are logged.* |
| **Other fields** | `_gdch_cluster` | For example, `"_gdch_cluster": "root-admin"` |

### Example log

    {
      "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"
    }