Key Management Service(KMS)
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ワークロードの場所 |
組織のみのワークロード
|
監査ログのソース |
|
監査対象のオペレーション |
|
API サーバー
ログタイプ: コントロール プレーン。
監査情報を含むログエントリのフィールド |
監査メタデータ |
監査フィールド名 |
値 |
ユーザーまたはサービス ID |
user |
次に例を示します。
"user":{
"groups":["system:authenticated"],
"username":"fop-platform-admin@example.com"
}
|
ターゲット
(API を呼び出すフィールドと値)
|
objectRef |
"objectRef":{
"resource":"aeadkeys",
"apiGroup":"kms.gdc.goog",
"apiVersion":"v1",
"namespace":"kms-test1"
}
|
操作
(実行されたオペレーションを含むフィールド)
|
verb |
次に例を示します。
"verb": "create"
|
イベントのタイムスタンプ |
requestReceivedTimestamp |
次に例を示します。
"requestReceivedTimestamp":"2022-12-08T03:59:20.025703Z"
|
アクションのソース |
sourceIPs |
次に例を示します。
"sourceIPs":[
"10.200.0.7"
]
|
成果 |
responseStatus |
次に例を示します。
"responseStatus": {
"metadata": {},
"code": 200
}
|
その他のフィールド |
該当なし |
該当なし |
サンプルログ
{
"user":{
"groups":["system:authenticated"],
"username":"fop-platform-admin@example.com"
},
"auditID":"bec33328-b4ba-431e-96a2-9bbb77666478",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-wxw7t",
"stage":"RequestReceived",
"_gdch_cluster":"org-1-admin",
"userAgent":"kubectl/v1.25.4 (linux/amd64) kubernetes/872a965",
"kind":"Event",
"level":"Metadata",
"stageTimestamp":"2022-12-08T03:59:20.025703Z",
"requestReceivedTimestamp":"2022-12-08T03:59:20.025703Z",
"objectRef":{
"resource":"aeadkeys",
"apiGroup":"kms.gdc.goog",
"apiVersion":"v1",
"namespace":"kms-test1"
},
"sourceIPs":[
"10.200.0.7"
],
"apiVersion":"audit.k8s.io/v1",
"requestURI":"/apis/kms.gdc.goog/v1/namespaces/kms-test1/aeadkeys?fieldManager=kubectl-client-side-apply&fieldValidation=Strict",
"verb":"create",
"_gdch_service_name":"apiserver"
}
Istio
ログタイプ: データプレーン。
監査情報を含むログエントリのフィールド |
監査メタデータ |
監査フィールド名 |
値 |
ユーザーまたはサービス ID |
username |
次に例を示します。
"username":"fop-platform-admin@example.com"
|
ターゲット
(API を呼び出すフィールドと値)
|
resource |
"resource":{
"node_name":"sidecar~10.253.166.144~kms-backend-84f5c4f4c7-ncl4d.kms-system~kms-system.svc.cluster.local",
"cluster_name":"kms-backend.kms-system",
"zone_name":"europe-west4-b",
"log_name":"otel_envoy_accesslog"
}
|
操作
(実行されたオペレーションを含むフィールド)
|
path |
次に例を示します。
"path":"/goog.gdc.kms.v1.CryptoOperationsService/Encrypt"
|
イベントのタイムスタンプ |
start_time |
次に例を示します。
"start_time":"2022-12-08T04:03:33.859Z"
|
アクションのソース |
x_forwarded_for |
次に例を示します。
"x_forwarded_for":"10.253.165.123"
|
成果 |
response_code |
次に例を示します。
"response_code":"200"
|
その他のフィールド |
該当なし |
該当なし |
サンプルログ
{
"response_code":"200",
"response_code_details":"via_upstream",
"response_flags":"-",
"route_name":"default",
"severity_number":0,
"severity_text":"",
"start_time":"2022-12-08T04:03:33.859Z",
"_gdch_service_name":"istio",
"upstream_host":"10.253.166.144:8080",
"upstream_local_address":"127.0.0.6:54383",
"user_agent":"grpc-go/1.49.0",
"_gdch_service_tenant":"platform-obs",
"username":"fop-platform-admin@example.com",
"x_envoy_upstream_service_time":"104",
"x_forwarded_for":"10.253.165.123",
"x_goog_api_client":"-",
"x_request_id":"c11cbf94-765d-440d-9d36-56654d93d834",
"authority":"kms.org-1.zone1.google.gdch.test",
"bytes_received":"32756",
"body":{},
"upstream_transport_failure_reason":"-",
"bytes_sent":"0",
"downstream_local_address":"10.253.166.144:8080",
"downstream_remote_address":"10.253.165.123:0",
"duration":"318",
"method":"POST",
"observed_time_unix_nano":0,
"protocol":"HTTP/2",
"requested_server_name":"outbound_.8080_._.kms-backend.kms-system.svc.cluster.local",
"_gdch_namespace":"istio-system",
"path":"/goog.gdc.kms.v1.CryptoOperationsService/Encrypt",
"connection_termination_details":"-",
"time_unix_nano":1670472213859570944,
"upstream_cluster":"inbound|8080||",
"resource":{
"node_name":"sidecar~10.253.166.144~kms-backend-84f5c4f4c7-ncl4d.kms-system~kms-system.svc.cluster.local",
"cluster_name":"kms-backend.kms-system",
"zone_name":"europe-west4-b",
"log_name":"otel_envoy_accesslog"
},
"_gdch_cluster":"org-1-admin",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-cr9h7"
}
サーバー
ログタイプ: データプレーン。
監査情報を含むログエントリのフィールド |
監査メタデータ |
監査フィールド名 |
値 |
ユーザーまたはサービス ID |
message.user.identity |
次に例を示します。
"message":{"user":"{"identity":"fop-platform-admin@example.com"}}"
|
ターゲット
(API を呼び出すフィールドと値)
|
_gdch_service_name |
"_gdch_service_name":"kms-backend"
|
操作
(実行されたオペレーションを含むフィールド)
|
message.action |
次に例を示します。
"message":"{"action":"/goog.gdc.kms.v1.CryptoOperationsService/Encrypt"}"
|
イベントのタイムスタンプ |
time |
次に例を示します。
"time":"2022-12-08T04:25:32.676604174Z"
|
アクションのソース |
_gdch_cluster |
次に例を示します。
"_gdch_cluster":"org-1-admin"
|
成果 |
message.response |
次に例を示します。
"message":"{"response":"OK"}"
|
その他のフィールド |
message.description フィールドには完全なログメッセージが含まれます。 |
詳細については、ログの例をご覧ください。 |
サンプルログ
{
"pri":"46",
"time":"2023-05-30T20:58:25Z",
"host":"kms-backend-9dd54b666-jfp5v",
"ident":"/kms_bin",
"pid":"1",
"msgid":"audit-log",
"extradata":"-",
"message":"{\"time\":\"2023-08-01T18:04:00.458810232Z\",\"auditID\":\"6f848640-8af1-4659-b9c9-a358d19bea5f\",\"user\":{\"identity\":\"fop-platform-admin@example.com\"},\"resource\":\"namespaces/testnamespace/aeadKeys/testcryptokey\",\"action\":\"/goog.gdc.kms.v1.CryptoOperationsService/Decrypt\",\"description\":\"{\"duration_ms\":202}\",\"userAgent\":\"grpc-go/1.55.0\",\"response\":\"OK\",\"_gdch_service\":\"kms\"}",
"_gdch_org_name":"org-1",
"_gdch_org_id":"org-1.zone1.google.gdch.test",
"_gdch_cluster":"org-1-admin",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-5lq2g",
"_gdch_service_name":"kms-backend",
"_gdch_tenant_id":"platform-obs"
}
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-04 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eThis document outlines audit log details for organization-only workloads, sourcing logs from Service Mesh Envoy access logs and Kubernetes audit logs.\u003c/p\u003e\n"],["\u003cp\u003eAudited operations encompass the API server (control plane), Istio (data plane), and server (data plane), each with distinct log formats and information.\u003c/p\u003e\n"],["\u003cp\u003eThe API server audit logs include user identity, target resource, action performed, event timestamp, action source, and outcome, all available in fields such as \u003ccode\u003euser\u003c/code\u003e, \u003ccode\u003eobjectRef\u003c/code\u003e, and \u003ccode\u003everb\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIstio audit logs capture details like username, target resource, action path, event start time, source IP, and response code, found in fields like \u003ccode\u003eusername\u003c/code\u003e, \u003ccode\u003eresource\u003c/code\u003e, \u003ccode\u003epath\u003c/code\u003e, \u003ccode\u003estart_time\u003c/code\u003e, and \u003ccode\u003eresponse_code\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eServer audit logs provide user identity, target service name, action performed, event time, source cluster, and outcome, with information located in fields like \u003ccode\u003emessage.user.identity\u003c/code\u003e, \u003ccode\u003e_gdch_service_name\u003c/code\u003e, \u003ccode\u003emessage.action\u003c/code\u003e, and \u003ccode\u003emessage.response\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Key Management Service (KMS)\n\nAPI server\n----------\n\nLog type: Control plane.\n\n**Example log** \n\n {\n \"user\":{\n \"groups\":[\"system:authenticated\"],\n \"username\":\"fop-platform-admin@example.com\"\n },\n \"auditID\":\"bec33328-b4ba-431e-96a2-9bbb77666478\",\n \"_gdch_fluentbit_pod\":\"anthos-audit-logs-forwarder-wxw7t\",\n \"stage\":\"RequestReceived\",\n \"_gdch_cluster\":\"org-1-admin\",\n \"userAgent\":\"kubectl/v1.25.4 (linux/amd64) kubernetes/872a965\",\n \"kind\":\"Event\",\n \"level\":\"Metadata\",\n \"stageTimestamp\":\"2022-12-08T03:59:20.025703Z\",\n \"requestReceivedTimestamp\":\"2022-12-08T03:59:20.025703Z\",\n \"objectRef\":{\n \"resource\":\"aeadkeys\",\n \"apiGroup\":\"kms.gdc.goog\",\n \"apiVersion\":\"v1\",\n \"namespace\":\"kms-test1\"\n },\n \"sourceIPs\":[\n \"10.200.0.7\"\n ],\n \"apiVersion\":\"audit.k8s.io/v1\",\n \"requestURI\":\"/apis/kms.gdc.goog/v1/namespaces/kms-test1/aeadkeys?fieldManager=kubectl-client-side-apply&fieldValidation=Strict\",\n \"verb\":\"create\",\n \"_gdch_service_name\":\"apiserver\"\n }\n\nIstio\n-----\n\nLog type: Data plane.\n\n**Example log** \n\n {\n \"response_code\":\"200\",\n \"response_code_details\":\"via_upstream\",\n \"response_flags\":\"-\",\n \"route_name\":\"default\",\n \"severity_number\":0,\n \"severity_text\":\"\",\n \"start_time\":\"2022-12-08T04:03:33.859Z\",\n \"_gdch_service_name\":\"istio\",\n \"upstream_host\":\"10.253.166.144:8080\",\n \"upstream_local_address\":\"127.0.0.6:54383\",\n \"user_agent\":\"grpc-go/1.49.0\",\n \"_gdch_service_tenant\":\"platform-obs\",\n \"username\":\"fop-platform-admin@example.com\",\n \"x_envoy_upstream_service_time\":\"104\",\n \"x_forwarded_for\":\"10.253.165.123\",\n \"x_goog_api_client\":\"-\",\n \"x_request_id\":\"c11cbf94-765d-440d-9d36-56654d93d834\",\n \"authority\":\"kms.org-1.zone1.google.gdch.test\",\n \"bytes_received\":\"32756\",\n \"body\":{},\n \"upstream_transport_failure_reason\":\"-\",\n \"bytes_sent\":\"0\",\n \"downstream_local_address\":\"10.253.166.144:8080\",\n \"downstream_remote_address\":\"10.253.165.123:0\",\n \"duration\":\"318\",\n \"method\":\"POST\",\n \"observed_time_unix_nano\":0,\n \"protocol\":\"HTTP/2\",\n \"requested_server_name\":\"outbound_.8080_._.kms-backend.kms-system.svc.cluster.local\",\n \"_gdch_namespace\":\"istio-system\",\n \"path\":\"/goog.gdc.kms.v1.CryptoOperationsService/Encrypt\",\n \"connection_termination_details\":\"-\",\n \"time_unix_nano\":1670472213859570944,\n \"upstream_cluster\":\"inbound|8080||\",\n \"resource\":{\n \"node_name\":\"sidecar~10.253.166.144~kms-backend-84f5c4f4c7-ncl4d.kms-system~kms-system.svc.cluster.local\",\n \"cluster_name\":\"kms-backend.kms-system\",\n \"zone_name\":\"europe-west4-b\",\n \"log_name\":\"otel_envoy_accesslog\"\n },\n \"_gdch_cluster\":\"org-1-admin\",\n \"_gdch_fluentbit_pod\":\"anthos-audit-logs-forwarder-cr9h7\"\n }\n\nServer\n------\n\nLog type: Data plane.\n\n**Example log** \n\n {\n \"pri\":\"46\",\n \"time\":\"2023-05-30T20:58:25Z\",\n \"host\":\"kms-backend-9dd54b666-jfp5v\",\n \"ident\":\"/kms_bin\",\n \"pid\":\"1\",\n \"msgid\":\"audit-log\",\n \"extradata\":\"-\",\n \"message\":\"{\\\"time\\\":\\\"2023-08-01T18:04:00.458810232Z\\\",\\\"auditID\\\":\\\"6f848640-8af1-4659-b9c9-a358d19bea5f\\\",\\\"user\\\":{\\\"identity\\\":\\\"fop-platform-admin@example.com\\\"},\\\"resource\\\":\\\"namespaces/testnamespace/aeadKeys/testcryptokey\\\",\\\"action\\\":\\\"/goog.gdc.kms.v1.CryptoOperationsService/Decrypt\\\",\\\"description\\\":\\\"{\\\"duration_ms\\\":202}\\\",\\\"userAgent\\\":\\\"grpc-go/1.55.0\\\",\\\"response\\\":\\\"OK\\\",\\\"_gdch_service\\\":\\\"kms\\\"}\",\n \"_gdch_org_name\":\"org-1\",\n \"_gdch_org_id\":\"org-1.zone1.google.gdch.test\",\n \"_gdch_cluster\":\"org-1-admin\",\n \"_gdch_fluentbit_pod\":\"anthos-audit-logs-forwarder-5lq2g\",\n \"_gdch_service_name\":\"kms-backend\",\n \"_gdch_tenant_id\":\"platform-obs\"\n }"]]