객체 스토리지 (OBJ)

Google Distributed Cloud(GDC) 에어 갭의 객체 스토리지(OBJ) 감사 로그를 사용하면 스토리지 버킷 및 객체 전반에서 데이터 액세스 및 관리 활동을 추적할 수 있습니다. 객체 스토리지 및 Kubernetes API 서버 감사 로그는 객체 읽기 및 쓰기, 버킷 관리, 액세스 제어 업데이트에 대한 호출자 ID, 대상 리소스 또는 작업, 타임스탬프, 소스 IP 주소, 응답 상태를 기록합니다.

워크로드 위치

객체 스토리지

감사 로그 소스

객체 스토리지

감사 대상 작업

객체 삭제

로그 유형: 데이터 액세스.

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID message.user.identity 예를 들면 다음과 같습니다.

"message":"{"user":{"identity":"Alice"}}

대상

(API를 호출하는 필드 및 값)

message.action 예를 들면 다음과 같습니다.

"message":"{"action":"OBJECT_DELETE"}"

작업

(수행된 작업이 포함된 필드)

action

예를 들면 다음과 같습니다.

"action":"OBJECT_DELETE"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"time":"2022-11-09T15:25:26.781513Z"

조치 소스 message.sourceIPs

예를 들면 다음과 같습니다.

"message":"{"sourceIPs":["10.21.21.30"]}"

결과 message.response

예를 들면 다음과 같습니다.

"message":"{"response":"SUCS"}"

기타 필드 해당 사항 없음

해당 사항 없음

예시 로그


{
"pid":"-",
"msgid":"-",
"extradata":"-",
"message":"{
  "time":"2022-11-09T15:25:26.781513Z",
  "auditID":"6a5542fd-cc1e-46b1-aa8d-514c650eba37",
  "user":{"identity":"Alice"},
  "resource":"x1vdn-bucket-for-testing-1",
  "action":"OBJECT_DELETE",
  "description":"{
    "tenantId":"23500289276650416831",
    "storageClass":"standard",
    "workloadType":"user"
    }",
  "sourceIPs":["10.21.21.30"],
  "response":"SUCS",
  "_gdch_org":"org-1-admin"
  }",
"_gdch_flbProcessedTimestamp":1668007526.781513,
"time":"2022-11-09T15:25:26.781513Z",
"pri":"14",
"_gdch_cluster":"org-1-admin",
"host":"objectstorage",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-7hwsp",
"ident":"objectstorage",
"_gdch_service_name":"admin-audit-logs"
}

객체 읽기

로그 유형: 데이터 액세스.

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID message.user.identity 예를 들면 다음과 같습니다.

"message":"{"user":{"identity":"Alice"}}

대상

(API를 호출하는 필드 및 값)

message.action 예를 들면 다음과 같습니다.

"message":"{"action":"OBJECT_READ"}"

작업

(수행된 작업이 포함된 필드)

action

예를 들면 다음과 같습니다.

"action":"OBJECT_READ"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"time":"2022-11-09T15:25:26.781513Z"

조치 소스 message.sourceIPs

예를 들면 다음과 같습니다.

"message":"{"sourceIPs":["10.21.21.30"]}"

결과 message.response

예를 들면 다음과 같습니다.

"message":"{"response":"SUCS"}"

기타 필드 해당 사항 없음

해당 사항 없음

예시 로그


{
"pid":"-",
"msgid":"-",
"extradata":"-",
"message":"{
  "time":"2022-11-09T15:25:26.781513Z",
  "auditID":"6a5542fd-cc1e-46b1-aa8d-514c650eba37",
  "user":{"identity":"Alice"},
  "resource":"x1vdn-bucket-for-testing-1",
  "action":"OBJECT_READ",
  "description":"{
    "objectSize":4,
    "tenantId":"23500289276650416831"
    "storageClass":"standard",
    "workloadType":"user"
    }",
  "sourceIPs":["10.21.21.30"],
  "response":"SUCS",
  "numBytesSent":4
  "_gdch_org":"org-1-admin"
  }",
"_gdch_flbProcessedTimestamp":1668007526.781513,
"time":"2022-11-09T15:25:26.781513Z",
"pri":"14",
"_gdch_cluster":"org-1-admin",
"host":"objectstorage",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-7hwsp",
"ident":"objectstorage",
"_gdch_service_name":"admin-audit-logs"
}

버킷에 객체 넣기

로그 유형: 데이터 액세스.

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID message.user.identity 예를 들면 다음과 같습니다.

"message":"{"user":{"identity":"Alice"}}

대상

(API를 호출하는 필드 및 값)

message.action 예를 들면 다음과 같습니다.

"message":"{"action":"OBJECT_CREATE"}"

작업

(수행된 작업이 포함된 필드)

action

예를 들면 다음과 같습니다.

"action":"OBJECT_CREATE"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"time":"2022-11-09T15:25:26.781513Z"

조치 소스 message.sourceIPs

예를 들면 다음과 같습니다.

"message":"{"sourceIPs":["10.21.21.30"]}"

결과 message.response

예를 들면 다음과 같습니다.

"message":"{"response":"SUCS"}"

기타 필드 해당 사항 없음

해당 사항 없음

예시 로그


{
"pid":"-",
"msgid":"-",
"extradata":"-",
"message":"{
  "time":"2022-11-09T15:25:26.781513Z",
  "auditID":"6a5542fd-cc1e-46b1-aa8d-514c650eba37",
  "user":{"identity":"Alice"},
  "resource":"x1vdn-bucket-for-testing-1",
  "action":"OBJECT_CREATE",
  "description":"{
    "tenantId":"23500289276650416831"
    "storageClass":"standard",
    "workloadType":"user"
    }",
  "sourceIPs":["10.21.21.30"],
  "response":"SUCS",
  "numBytesReceived":4
  "_gdch_org":"org-1-admin"
  }",
"_gdch_flbProcessedTimestamp":1668007526.781513,
"time":"2022-11-09T15:25:26.781513Z",
"pri":"14",
"_gdch_cluster":"org-1-admin",
"host":"objectstorage",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-7hwsp",
"ident":"objectstorage",
"_gdch_service_name":"admin-audit-logs"
}


객체 나열하기

로그 유형: 데이터 액세스.

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID message.user.identity 예를 들면 다음과 같습니다.

"message":"{"user":{"identity":"Alice"}}

대상

(API를 호출하는 필드 및 값)

message.action 예를 들면 다음과 같습니다.

"message":"{"action":"OBJECT_LIST"}"

작업

(수행된 작업이 포함된 필드)

action

예를 들면 다음과 같습니다.

"action":"OBJECT_LIST"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"time":"2022-11-09T15:25:26.781513Z"

조치 소스 message.sourceIPs

예를 들면 다음과 같습니다.

"message":"{"sourceIPs":["10.21.21.30"]}"

결과 message.response

예를 들면 다음과 같습니다.

"message":"{"response":"SUCS"}"

기타 필드 해당 사항 없음

해당 사항 없음

예시 로그


{
"pid":"-",
"msgid":"-",
"extradata":"-",
"message":"{
  "time":"2022-11-09T15:25:26.781513Z",
  "auditID":"6a5542fd-cc1e-46b1-aa8d-514c650eba37",
  "user":{"identity":"Alice"},
  "resource":"x1vdn-bucket-for-testing-1",
  "action":"OBJECT_LIST",
  "description":"{
    "tenantId":"23500289276650416831"
    "storageClass":"standard",
    "workloadType":"user"
    }",
  "sourceIPs":["10.21.21.30"],
  "response":"SUCS",
  "_gdch_org":"org-1-admin"
  }",
"_gdch_flbProcessedTimestamp":1668007526.781513,
"time":"2022-11-09T15:25:26.781513Z",
"pri":"14",
"_gdch_cluster":"org-1-admin",
"host":"objectstorage",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-7hwsp",
"ident":"objectstorage",
"_gdch_service_name":"admin-audit-logs"
}

버킷 만들기

로그 유형: 관리자 활동

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID message.user.identity 예를 들면 다음과 같습니다.

"message":"{"user":{"identity":"Alice"}}

대상

(API를 호출하는 필드 및 값)

message.action 예를 들면 다음과 같습니다.

"message":"{"action":"BUCKET_CREATE"}"

작업

(수행된 작업이 포함된 필드)

action

예를 들면 다음과 같습니다.

"action":"BUCKET_CREATE"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"time":"2022-11-09T15:25:26.781513Z"

조치 소스 message.sourceIPs

예를 들면 다음과 같습니다.

"message":"{"sourceIPs":["10.21.21.30"]}"

결과 message.response

예를 들면 다음과 같습니다.

"message":"{"response":"SUCS"}"

기타 필드 해당 사항 없음

해당 사항 없음

예시 로그


{
  "pri":"14",
  "time":"2022-11-30T19:21:47.577678Z",
  "host":"obj",
  "ident":"obj",
  "pid":"-",
  "msgid":"-",
  "extradata":"-",
  "message":"{
    "time":"2022-11-30T19:21:47.577678Z","auditID":"d3b0c42c-0a3d-4fc9-951a-c41b863058f2",
    "user":{
      "identity":"objectstorage-tenant-bucket-controller-standard-system-sa"
      },
      "resource":"syism-zakmiller-8-17-22",
      "action":"BUCKET_CREATE",
      "description":"{
        "tenantId":"63704411338737989311",
        "storageClass":"standard",
        "workloadType":"system"
        }",
      "sourceIPs":["10.2.2.34"],
      "response":"SUCS",
      "_gdch_org":"root-admin"
      }",
  "_gdch_cluster":"root-admin","_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-tfvcf","_gdch_service_name":"admin-audit-logs"
}

버킷 삭제

로그 유형: 관리자 활동

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID message.user.identity 예를 들면 다음과 같습니다.

"message":"{"user":{"identity":"Alice"}}

대상

(API를 호출하는 필드 및 값)

message.action 예를 들면 다음과 같습니다.

"message":"{"action":"BUCKET_DELETE"}"

작업

(수행된 작업이 포함된 필드)

action

예를 들면 다음과 같습니다.

"action":"BUCKET_DELETE"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"time":"2022-11-09T15:25:26.781513Z"

조치 소스 message.sourceIPs

예를 들면 다음과 같습니다.

"message":"{"sourceIPs":["10.21.21.30"]}"

결과 message.response

예를 들면 다음과 같습니다.

"message":"{"response":"SUCS"}"

기타 필드 해당 사항 없음

해당 사항 없음

예시 로그


{
  "pri":"14",
  "time":"2022-11-30T19:21:47.577678Z",
  "host":"obj",
  "ident":"obj",
  "pid":"-",
  "msgid":"-",
  "extradata":"-",
  "message":"{
    "time":"2022-11-30T19:21:47.577678Z","auditID":"d3b0c42c-0a3d-4fc9-951a-c41b863058f2",
    "user":{
      "identity":"objectstorage-tenant-bucket-controller-standard-system-sa"
      },
      "resource":"syism-zakmiller-8-17-22",
      "action":"BUCKET_DELETE",
      "description":"{
        "tenantId":"63704411338737989311",
        "storageClass":"standard",
        "workloadType":"system"
        }",
      "sourceIPs":["10.2.2.34"],
      "response":"SUCS",
      "_gdch_org":"root-admin"
      }",
  "_gdch_cluster":"root-admin","_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-tfvcf","_gdch_service_name":"admin-audit-logs"
}

버킷 메타데이터 읽기

로그 유형: 관리자 활동

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID message.user.identity 예를 들면 다음과 같습니다.

"message":"{"user":{"identity":"Alice"}}

대상

(API를 호출하는 필드 및 값)

message.action 예를 들면 다음과 같습니다.

"message":"{"action":"BUCKET_METADATA_READ"}"

작업

(수행된 작업이 포함된 필드)

action

예를 들면 다음과 같습니다.

"action":"BUCKET_METADATA_READ"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"time":"2022-11-09T15:25:26.781513Z"

조치 소스 message.sourceIPs

예를 들면 다음과 같습니다.

"message":"{"sourceIPs":["10.21.21.30"]}"

결과 message.response

예를 들면 다음과 같습니다.

"message":"{"response":"SUCS"}"

기타 필드 해당 사항 없음

해당 사항 없음

예시 로그


{
  "pri":"14",
  "time":"2022-11-30T19:21:47.577678Z",
  "host":"obj",
  "ident":"obj",
  "pid":"-",
  "msgid":"-",
  "extradata":"-",
  "message":"{
    "time":"2022-11-30T19:21:47.577678Z","auditID":"d3b0c42c-0a3d-4fc9-951a-c41b863058f2",
    "user":{
      "identity":"objectstorage-tenant-bucket-controller-standard-system-sa"
      },
      "resource":"syism-zakmiller-8-17-22",
      "action":"BUCKET_METADATA_READ",
      "description":"{
        "tenantId":"63704411338737989311",
        "storageClass":"standard",
        "workloadType":"system"
        }",
      "sourceIPs":["10.2.2.34"],
      "response":"SUCS",
      "_gdch_org":"root-admin"
      }",
  "_gdch_cluster":"root-admin","_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-tfvcf","_gdch_service_name":"admin-audit-logs"
}

버킷 메타데이터 업데이트

로그 유형: 관리자 활동

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID message.user.identity 예를 들면 다음과 같습니다.

"message":"{"user":{"identity":"Alice"}}

대상

(API를 호출하는 필드 및 값)

message.action 예를 들면 다음과 같습니다.

"message":"{"action":"BUCKET_METADATA_UPDATE"}"

작업

(수행된 작업이 포함된 필드)

action

예를 들면 다음과 같습니다.

"action":"BUCKET_METADATA_UPDATE"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"time":"2022-11-09T15:25:26.781513Z"

조치 소스 message.sourceIPs

예를 들면 다음과 같습니다.

"message":"{"sourceIPs":["10.21.21.30"]}"

결과 message.response

예를 들면 다음과 같습니다.

"message":"{"response":"SUCS"}"

기타 필드 해당 사항 없음

해당 사항 없음

예시 로그


{
  "pri":"14",
  "time":"2022-11-30T19:21:47.577678Z",
  "host":"obj",
  "ident":"obj",
  "pid":"-",
  "msgid":"-",
  "extradata":"-",
  "message":"{
    "time":"2022-11-30T19:21:47.577678Z","auditID":"d3b0c42c-0a3d-4fc9-951a-c41b863058f2",
    "user":{
      "identity":"objectstorage-tenant-bucket-controller-standard-system-sa"
        },
      "resource":"syism-zakmiller-8-17-22",
      "action":"BUCKET_METADATA_UPDATE",
      "description":"{
        "tenantId":"63704411338737989311",
        "storageClass":"standard",
        "workloadType":"system"
        }",
      "sourceIPs":["10.2.2.34"],
      "response":"SUCS",
      "_gdch_org":"root-admin"
      }",
  "_gdch_cluster":"root-admin","_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-tfvcf","_gdch_service_name":"admin-audit-logs"
}

버킷 액세스 권한 부여 및 취소

로그 유형: 관리자 활동

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID user 예를 들면 다음과 같습니다.

"user": {"groups": ["system:masters",
"system:authenticated"], "username":"kubernetes-admin"}

대상

(API를 호출하는 필드 및 값)

requestURI

예를 들면 다음과 같습니다.

"requestURI":"/apis/rbac.authorization.k8s.io/v1/namespaces/<namespace>/rolebindings?fieldSelector=metadata.name%3D<role-name>"

작업

(수행된 작업이 포함된 필드)

verb

예를 들면 다음과 같습니다.

"verb":"create"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"requestReceivedTimestamp":"2022-11-09T18:53:33.352930Z"

조치 소스 sourceIPs

예를 들면 다음과 같습니다.

"sourceIPs":["10.21.21.28"]

결과 responseStatus

예를 들면 다음과 같습니다.

"responseStatus":{"code":201,"metadata":{}}
기타 필드 해당 사항 없음

해당 사항 없음

액세스 권한 부여를 위한 로그 예시

{
"stageTimestamp":"2022-11-09T18:53:33.421853Z",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-2bqjb",
"userAgent":"kubectl/v1.23.5 (linux/amd64) kubernetes/c285e78",
"verb":"create",
"sourceIPs": ["10.21.21.28"],
"requestReceivedTimestamp":"2022-11-09T18:53:33.352930Z",
"requestURI":"/apis/rbac.authorization.k8s.io/v1/namespaces/gpc-system/rolebindings?fieldManager=kubectl-client-side-apply",
"stage":"ResponseComplete",
"_gdch_cluster":"org-1-admin",
"responseStatus":{
"code":201,
"metadata":{}
},
"user": {
    "groups": ["system:masters","system:authenticated"],
    "username":"kubernetes-admin"
    },
"objectRef":{
  "name":"alice-can-read",
  "apiGroup":"rbac.authorization.k8s.io",
    "namespace":"gpc-system",
    "resource":"rolebindings",
    "apiVersion":"v1"
        },
"Annotations":{
        "authorization.k8s.io/reason":"",
        "authorization.k8s.io/decision":"allow"
        },
"apiVersion":"audit.k8s.io/v1",
"kind":"Event",
"auditID":"066660c3-29d8-4cd3-bed8-0727ca1ba7a7",
"level":"Metadata",
"_gdch_flbProcessedTimestamp":1668020013.467199,
"_gdch_service_name":"apiserver"
}

액세스 취소 로그 예시

{
"sourceIPs": ["10.21.21.28"],
"_gdch_flbProcessedTimestamp":1668020014.507883,
"level":"Metadata",
"apiVersion":"audit.k8s.io/v1",
"auditID":"d0d42688-9e0e-4ed3-9a7f-d3c91c345640",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-5t1tx",
"kind":"Event",
"stageTimestamp":"2022-11-09T18:53:33.911438Z",
"userAgent":"kubectl/v1.23.5 (linux/amd64) kubernetes/c285e78",
"responseStatus":{
    "Details":{
        "kind":"rolebindings",
        "group":"rbac.authorization.k8s.io",
        "uid":"f00c521a-b65a-b65d-4f08-9082-de7837eda84c",
        "name":"alice-can-read"
        },
        "metadata":{},
        "status":"Success",
        "code":200
        }
"objectRef":{
    "resource":"rolebindings",
        "namespace":"gpc-system",
        "name":"alice-can-read",
"apiVersion":"v1",
        "apiGroup":"rbac.authorization.k8s.io"
        },
    "requestURI":"/apis/rbac.authorization.k8s.io/v1/namespaces/gpc/system/rolebindings/alice-can-read",
"requestReceivedTimestamp":"2022-11-09T18:53:33.773949X",
"user": {"username":"kubernetes-admin",
    "groups": ["system:masters", "system:authenticated"]
    },
"annotations": {
        "authorization.k8s.io/reason":"",
        "authorization.k8s.io/decision":"allow"
        },
"_gdch_cluster":"org-1-admin",
"stage":"ResponseComplete",
"verb":"delete",
"_gdch_service-name":"apiserver"
}

버킷 만들기

로그 유형: 관리자 활동

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID user 예를 들면 다음과 같습니다.

"user":{"username":"kubernetes-admin", 
"groups": ["system:masters","system:authenticated"]}

대상

(API를 호출하는 필드 및 값)

requestURI

예를 들면 다음과 같습니다.

"requestURI":"/apis/object.gdc.goog/v1/"

작업

(수행된 작업이 포함된 필드)

verb

예를 들면 다음과 같습니다.

"verb":"create"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"requestReceivedTimestamp":"2022-11-09T18:47:18.331288Z"

조치 소스 sourceIPs

예를 들면 다음과 같습니다.

"sourceIPs":["10.21.21.30"]

결과 responseStatus

예를 들면 다음과 같습니다.

"responseStatus":{"metadata":{},"code":201}

기타 필드 해당 사항 없음

해당 사항 없음

버킷 생성에 대한 로그 예시


{
"responseStatus":{"metadata":{},"code":201},
"_gdch_flbProcessedTimestamp":1668006515.011904,
"sourceIPs":["10.21.21.28"],
"stageTimestamp":"2022-11-09T14:48:05.433558Z",
"apiVersion":"audit.k8s.io/v1",
"annotations":{
  "authorization.k8.io/reason":"",
  "authorization.k8.io/decision":"allow"
  },
"objectRef":{
  "apiVersion":"v1",
  "namespace":"bucket-test-2",
  "resource":"buckets",
  "name":"bucket-for-testing-1",
  "apiGroup":"object.gdc.goog"
  },
"userAgent":"kubectl/v1.23.5 (linux/amd64) kubernetes/c285e78",
"kind":"Event",
"level":"Metadata",
"auditID":"c3b1897a-d1c9-4de8-b5e6-d7875ab3f318",
"stage":"ResponseComplete",
"requestURI":"/apis/object.gdc.goog/v1/namespace/bucket-test-2/buckets?fieldManager-kubectl-client-side-apply",
"requestReceivedTimestamp":"2022-11-09T14:48:05.283425Z",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-5tltx",
"_gdch_cluster":"org-1-admin",
"user":{
  "username":"kubernetes-admin",
  "groups": ["system:masters","system:authenticated"]
  },
"verb":"create",
"_gdch_service_name":"apiserver"
}

버킷 패치

로그 유형: 관리자 활동

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID user 예를 들면 다음과 같습니다.

"user":{"username":"kubernetes-admin", 
"groups": ["system:masters","system:authenticated"]}

대상

(API를 호출하는 필드 및 값)

requestURI

예를 들면 다음과 같습니다.

"requestURI":"/apis/object.gdc.goog/v1/"

작업

(수행된 작업이 포함된 필드)

verb

예를 들면 다음과 같습니다.

"verb":"patch"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"requestReceivedTimestamp":"2022-11-09T18:47:18.331288Z"

조치 소스 sourceIPs

예를 들면 다음과 같습니다.

"sourceIPs":["10.21.21.30"]

결과 responseStatus

예를 들면 다음과 같습니다.

"responseStatus":{"metadata":{},"code":201}

기타 필드 해당 사항 없음

해당 사항 없음

버킷 패치 로그 예시


{
"requestReceivedTimestamp":"2022-11-09T18:40:54.0865902",
"auditID":"c7219d20-64d1-4bfd-85a8-5a2f1b898fa8",
"sourceIPs":["10.21.21.2 8"],
"_gdch_flbProcessedTimestamp":1668019271.206281,
"requestURI":"/apis/object.gdc.goog/v1/namespaces/gpc-system/buckets/buck et-for-testing-1?fieldManager-kubectl -client-side-apply",
"responseStatus":{"code":200,"metadata":{}},
"apiVersion":"audit.k8s.io/v 1",
"objectRef":{
    "namespace":"gpc-system",
    "name":"bucket-for-testing-1",
    "apiVersion":"v1",
    "apiGroup":"object.gdc.goog",
    "resource":"buckets"
      },"
_gdch_cluster":"org-1-admin",
"annotations":{"authorization.k8s.io/reason":"","authorization.k8s.io/decision":"allow"},
"verb":"patch",
"stageTimestamp":"2022-11-09T18:40:54.1386612",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-5t1tx",
"userAgent":"kubectl/v1.23.5 (linux/amd64) kubernetes/c285e78",
"stage":"ResponseComplete",
"kind":"Event",
"user":{"username":"kubernetes-admin","groups":["system:masters", "system:authenticated"]},
"level":"Metadata",
"_gdch_service_name":"apiserver"
}

버킷 삭제

로그 유형: 관리자 활동

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름 값
사용자 또는 서비스 ID user 예를 들면 다음과 같습니다.

"user":{"username":"kubernetes-admin", 
"groups": ["system:masters","system:authenticated"]}

대상

(API를 호출하는 필드 및 값)

requestURI

예를 들면 다음과 같습니다.

"requestURI":"/apis/object.gdc.goog/v1/"

작업

(수행된 작업이 포함된 필드)

verb

예를 들면 다음과 같습니다.

"verb":"delete"

이벤트 타임스탬프 time

예를 들면 다음과 같습니다.

"requestReceivedTimestamp":"2022-11-09T18:47:18.331288Z"

조치 소스 sourceIPs

예를 들면 다음과 같습니다.

"sourceIPs":["10.21.21.30"]

결과 responseStatus

예를 들면 다음과 같습니다.

"responseStatus":{"metadata":{},"code":201}

기타 필드 해당 사항 없음

해당 사항 없음

버킷 삭제 예시 로그


{
"level":"Metadata",
"sourceIPs":["10.21.21.28"],
"_gdch_flbProcessedTimestamp":1668006515.011904,
"user":{"username":"kubernetes-admin",
"groups":["system:masters","system:authenticated"]},
"apiVersion":"audit.k8s.io/v1",
"stage":"ResponseComplete",
"auditID":"afce809c-fc06-4aac-b5af-654c91db6159",
"responseStatus":{"metadata":{},
    "code":200},
"stageTimestamp":"2022-11-09T18:47:18.530272Z",
"objectRef":{
    "namespace":"gpc-system",
    "resource":"buckets",
    "apiVersion":"v1",
    "apiGroup":"object.gdc.goog",
    "name":"bucket-for-testing-1",
  },
"requestURI":"/apis/object.gdc.goog/v1/namespaces/gpc-system/buckets/bucket-for-testing-1",
    "annotations"{"authorization.k8s.io/reason":"",
    "authorization.k8s.io/decision":"allow"
        },
"userAgent":"kubectl/v1.23.5 (linux/amd64) kubernetes/c285e78",
"kind":"Event",
"_gdch_cluster":"org-1-admin",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-5tltx",
"requestReceivedTimestamp":"2022-11-09T18:47:18.331288Z",
"verb":"delete",
"_gdch_service_name":"apiserver"
}