워크로드 위치 |
루트 및 조직 워크로드 |
감사 로그 소스 | |
감사 대상 작업 |
영역 업데이트
감사 정보가 포함된 로그 항목의 필드 | ||
---|---|---|
감사 메타데이터 | 감사 필드 이름 | 값 |
사용자 또는 서비스 ID | user.username |
예를 들면 다음과 같습니다. "user":{ "username": "fop-dns@example.com" } |
대상 (API를 호출하는 필드 및 값) |
requestURI |
|
작업 (실행된 작업을 포함하는 필드) |
verb |
|
이벤트 타임스탬프 |
ts
|
예를 들면 다음과 같습니다.
|
작업 소스 | sourceIPs |
예를 들면 다음과 같습니다.
|
결과 | responseStatus.code |
예를 들면 다음과 같습니다. "responseStatus":{ "code":200 } |
기타 필드 |
|
예를 들면 다음과 같습니다. "annotations":{ "authorization.k8s.io/decision":"allow" }, "objectRef":{ "resourceVersion":"697063", "uid":"aed2e6f7-ca03-4bcd-9c07-167ccd4da88e", "apiVersion":"v1", "resource":"configmaps", "apiGroup":"UNKNOWN", "namespace":"dns-system", "name":"gpc-coredns-external-zonefile" } |
예시 로그
{
"_gdch_cluster":"root-admin",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-7s769",
"_gdch_service_name":"apiserver",
"annotations":{
"authorization.k8s.io/decision":"allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"dns-core-controllers-rolebinding\" of ClusterRole \"dns-core-controllers-role\" to ServiceAccount \"dns-core-controller-sa/dns-system\"",
},
"apiVersion":"audit.k8s.io/v1",
"auditID":"ba0344d7-283f-4d79-aabc-e083al9b053a",
"kind":"Event",
"level":"Metadata",
"objectRef":{
"resourceVersion":"697063",
"uid":"aed2e6f7-ca03-4bcd-9c07-167ccd4da88e",
"apiVersion":"v1",
"resource":"configmaps",
"apiGroup":"UNKNOWN",
"namespace":"dns-system",
"name":"gpc-coredns-external-zonefile"
},
"requestReceivedTimestamp":"2022-11-11T22:02:02.034688Z",
"requestURI":"/api/v1/namespaces/dns-system/configmaps/gpc-coredns-external-zonefile",
"responseStatus":{
"metadata":{},
"code":200
},
"sourceIPs":["10.142.5.147"],
"stage":"ResponseComplete",
"stageTimestamp":"2022-11-11T22:02:02.045045Z",
"ts":2022-11-11T22:02:02.074Z,
"tsNs":1668204122074601081,
"user":{
"uid":"08f727c9-5e3d-403f-bf35-06ef53f9709c",
"groups":[
"system:serviceaccounts",
"system:serviceaccounts:dns-system",
"system:authenticated"
],
"username": "system:serviceaccount:dns-system:dns-core-controller-sa",
"extra": {
"authentication.kubernetes.io/pod-name":["dns-core-controller-58c4646858-z8kmr"],
"authentication.kubernetes.io/pod-uid":["17d9392a-bc27-4d6c-bab7-ff076a5457eb"]
}
},
"userAgent":"controller-manager/v0.0.0 (linux/amd64) kubernetes/$Format",
"verb":"update"
}
DNSSEC 키 만들기 또는 삭제
감사 정보가 포함된 로그 항목의 필드 | ||
---|---|---|
감사 메타데이터 | 감사 필드 이름 | 값 |
사용자 또는 서비스 ID | user.username |
예를 들면 다음과 같습니다. "user":{ "username": "fop-dns@example.com" } |
대상 (API를 호출하는 필드 및 값) |
requestURI |
|
작업 (실행된 작업을 포함하는 필드) |
verb |
|
이벤트 타임스탬프 |
ts
|
예를 들면 다음과 같습니다.
|
작업 소스 | sourceIPs |
예를 들면 다음과 같습니다.
|
결과 | responseStatus.code |
예를 들면 다음과 같습니다. "responseStatus":{ "code":200 } |
기타 필드 |
|
예를 들면 다음과 같습니다. "annotations":{ "authorization.k8s.io/decision":"allow" }, "objectRef":{ "resource": "secrets", "namespace":"dns-system", "uid":"9a9c16ca-3601-4bc9-8683-629a61ea5634", "apiVersion":"v1", "resourceVersion":"825911", "apiGroup":"UNKNOWN", "name":"gpc-coredns-external-ksks" } |
예시 로그
{
"_gdch_cluster":"root-admin",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-t15kb",
"_gdch_service_name":"apiserver",
"annotations":{
"authorization.k8s.io/decision":"allow",
"authorization.k8s.io/reason":"RBAC: allowed by RoleBinding 'fop-dns@example.com-dns-key-manager/dns-system' of Role 'dns-key-manager' to User 'fop-dns@example.com'"
},
"apiVersion":"audit.k8s.io/v1",
"auditID":"87d3d836-b5a2-487a-8480-bc8078c5b248",
"kind":"Event",
"level":"Metadata",
"objectRef":{
"resource": "secrets",
"namespace":"dns-system",
"uid":"9a9c16ca-3601-4bc9-8683-629a61ea5634",
"apiVersion":"v1",
"resourceVersion":"825911",
"apiGroup":"UNKNOWN",
"name":"gpc-coredns-external-ksks"
},
"requestReceivedTimestamp":"2022-11-11T22:02:02.034688Z",
"requestURI":"/api/v1/namespaces/dns-system/secrets/gpc-coredns-external-ksks",
"responseStatus":{
"metadata":{},
"code":200
},
"sourceIPs":["10.142.5.147"],
"stage":"ResponseComplete",
"stageTimestamp":"2022-11-11T22:02:02.045045Z",
"ts":2022-11-11T22:02:02.074Z,
"tsNs":1668204122074601081,
"user":{
"groups":[
"system: authenticated"
],
"username": "fop-dns@example.com"
},
"userAgent":"gdcloud/v0.0.0 (linux/amd64) kubernetes/$Format",
"verb":"update"
}
DNSSEC 키 변경
감사 정보가 포함된 로그 항목의 필드 | ||
---|---|---|
감사 메타데이터 | 감사 필드 이름 | 값 |
사용자 또는 서비스 ID | user.username |
예를 들면 다음과 같습니다. "user":{ "username": "fop-dns@example.com" } |
대상 (API를 호출하는 필드 및 값) |
requestURI |
|
작업 (실행된 작업을 포함하는 필드) |
verb |
|
이벤트 타임스탬프 |
ts
|
예를 들면 다음과 같습니다.
|
작업 소스 | sourceIPs |
예를 들면 다음과 같습니다.
|
결과 | responseStatus.code |
예를 들면 다음과 같습니다. "responseStatus":{ "code":200 } |
기타 필드 |
|
예를 들면 다음과 같습니다. "annotations":{ "authorization.k8s.io/decision":"allow" }, "objectRef":{ "resourceVersion":"758987", "resource":"configmaps", "apiGroup":"UNKNOWN", "name":"gpc-coredns-external-corefile", "apiVersion":"v1", "namespace":"dns-system", "uid":"d831c851-4fa3-4£30-92f6-c68cb36b0c62" } |
예시 로그
{
"_gdch_cluster":"root-admin",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-8z2rm",
"_gdch_service_name":"apiserver",
"annotations":{
"authorization.k8s.io/decision":"allow",
"authorization.k8s.io/reason":"RBAC: allowed by RoleBinding 'fop-dns@example.com-dns-key-manager/dns-system' of Role 'dns-key-manager' to User 'fop-dns@example.com'"
},
"apiVersion":"audit.k8s.io/v1",
"auditID":"ba0344d7-283f-4d79-aabc-e083al9b053a",
"kind":"Event",
"level":"Metadata",
"objectRef":{
"resourceVersion":"758987",
"resource":"configmaps",
"apiGroup":"UNKNOWN",
"name":"gpc-coredns-external- corefile",
"apiVersion":"v1",
"namespace":"dns-system",
"uid":"d831c851-4fa3-4£30-92f6-c68cb36b0c62"
},
"requestReceivedTimestamp":"2022-11-11T22:02:02.034688Z",
"requestURI":"/api/v1/namespaces/dns-system/configmaps/gpc-coredns-external-corefile",
"responseStatus":{
"metadata":{},
"code":200
},
"sourceIPs":["10.142.5.147"],
"stage":"ResponseComplete",
"stageTimestamp":"2022-11-11T22:02:02.045045Z",
"ts":2022-11-11T22:02:02.074Z,
"tsNs":1668204122074601081,
"user":{
"groups":[
"system: authenticated"
],
"username": "fop-dns@example.com"
},
"userAgent":"gdcloud/v0.0.0 (linux/amd64) kubernetes/$Format",
"verb":"update"
}