Log audit GKE Identity Service (GIS) di Google Distributed Cloud (GDC) dengan air gap memungkinkan Anda melacak aktivitas autentikasi dan permintaan token di workload root dan organisasi. Log ini mencatat identitas pengguna, penerbit, resource target, dan kolom payload JSON untuk membuat atau mencabut token login dan membuat token Security Token Service (STS).
| Lokasi workload |
Workload root dan organisasi |
| Sumber log audit |
GKE Identity Service |
| Operasi yang diaudit |
|
Mencabut atau membuat token login
| Kolom dalam entri log yang berisi informasi audit | ||
|---|---|---|
| Metadata audit | Nama kolom audit | Nilai |
| Identitas pengguna atau layanan | payload.user |
Misalnya, "payload":{ "user":"fop-infrastructure-operator@example.com" } |
|
Target (Kolom dan nilai yang memanggil API) |
resource |
"resource":"login_token" |
|
Tindakan (Kolom yang berisi operasi yang dilakukan) |
operation |
"operation":"revoke" |
| Stempel waktu peristiwa | metadata.timestamp |
Misalnya, "metadata":{ "timestamp":"2023-01-13T20:04:30.529916149+00:00" } |
| Sumber tindakan | payload.issuer |
Misalnya, "payload":{ "issuer":"fake-oidc-provider" } |
| Hasil | description |
"description":"Revoked Login Token '84518e03-396a-425d-93ac-5ff1e1c993f8' which was previously issued to user 'fop-infrastructure-operator@example.com' due to a web logout" |
| Kolom lain | Tidak berlaku | Tidak berlaku |
Contoh log
{
"description":"Revoked Login Token '84518e03-396a-425d-93ac-5ff1e1c993f8' which was previously issued to user 'fop-infrastructure-operator@example.com' due to a web logout",
"id":"55f2ae33-d229-4057-aa1f-d62349281e9c",
"_gdch_service_tenant":"platform-obs",
"resource":"login_token",
"_gdch_tenant_id":"platform-obs",
"payload":{
"id":"84518e03-396a-425d-93ac-5ff1e1c993f8",
"expirationTime":"2023-01-14T08:03:33.413710266+00:00",
"user":"fop-infrastructure-operator@example.com",
"groups":[""],
"issuer":"fake-oidc-provider"
},
"_gdch_service_name":"ais",
"_gdch_namespace":"anthos-identity-service",
"operation":"revoke",
"metadata":{
"userAgent":"",
"timestamp":"2023-01-13T20:04:30.529916149+00:00"
},
"_gdch_org_name":"UNKNOWN",
"_gdch_org_id":"UNKNOWN",
"_gdch_cluster":"org-1-admin",
"_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-nhbwb"
}
Membuat token STS
| Kolom dalam entri log yang berisi informasi audit | ||
|---|---|---|
| Metadata audit | Nama kolom audit | Nilai |
| Identitas pengguna atau layanan | identity |
Misalnya,
|
|
Target (Kolom dan nilai yang memanggil API) |
resource |
"resource":"AIS STS token" |
|
Tindakan (Kolom yang berisi operasi yang dilakukan) |
action |
"action":"Create" |
| Stempel waktu peristiwa | time |
Misalnya,
|
| Sumber tindakan | userAgent |
Misalnya,
|
| Hasil | response |
Misalnya,
|
| Kolom lain | Tidak berlaku | Tidak berlaku |
Contoh log
{
"action":"Create",
"auditID":"vwWq8fQ-o9RTopgcZtAC_psm1aYyMKxkv47GOkdU",
"description":"An AIS STS token is minted for fop-shengjiang (from fake-oidc-provider) and will be valid for 11h59m49.438314611s",
"resource":"AIS STS token",
"response":"Success",
"time":"2022-11-22T18:31:37.084205362+00:00",
"user":{
"groups":[
"group-claim-1",
"group-claim-2"
],
"identity":"fop-shengjiang",
"issuer":"fake-oidc-provider"
},
"userAgent":"Go-http-client/2.0"
}