ארגונים (ORG)

יומני הביקורת של הארגונים (ORG) במכשיר GDC עם air gap מאפשרים לעקוב אחרי פעולות ה-API של מודל המשאבים של Kubernetes‏ (KRM) בעומסי העבודה של אשכול ברמת אדמין בסיסית (root). ביומני הביקורת של Kubernetes מתועדים הפרטים הבאים של בקשות הארגון: זהות מבצע הקריאה החוזרת, ה-URI של בקשת היעד, פועל הפעולה, חותמת הזמן, כתובת ה-IP של המקור, סטטוס התגובה והערות ההרשאה.

מיקום עומס העבודה

עומסי עבודה ברמת הבסיס בלבד

מקור יומן הביקורת

יומני ביקורת של Kubernetes

פעולות מבוקרות

ביצוע פעולות במישור הניהול של KRM API

ביצוע פעולות במישור הניהול של KRM API

שדות ברשומה ביומן שמכילים מידע על הביקורת
מטא-נתונים של ביקורת שם השדה ביומן הביקורת ערך
זהות המשתמש או השירות user

לדוגמה,

"user":{"uid": "253b9e2f-fde2-4e37-ae7b-36a55d57aafb", "username": "system:serviceaccount: gatekeeper-system: gatekeeper-admin", "extra": {"authentication.kubernet es.io/pod-name": [ "gatekeeper-audit-7fd7bc5d97-x9x8b"], "authentication.kubernetes.io/pod-uid":["e62eaabc-2530-4c36-b793-a98b42c061eb"]}, "groups":["system: serviceaccounts", "system: serviceacc ounts: gatekeeper-system", "system: authenticated"]}

Target

(שדות וערכים שקוראים ל-API)

requestURI

לדוגמה,

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

פעולה

(שדות שמכילים את הפעולה שבוצעה)

verb "verb":"list"
חותמת הזמן של האירוע requestReceivedTimestamp

לדוגמה,

"requestReceivedTimestamp":"2022-12-06T23:05:22.586546Z"

מקור הפעולה sourceIPs

לדוגמה,

"sourceIPs":["10.200.0.4"]

תוצאה responseStatus

לדוגמה,

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

שדות אחרים annotations

לדוגמה,

"annotations":{"authorization.k8s.io/decision": "allow","authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"gatekeeper-manager-rolebinding\" of ClusterRole \"gatekeeper-manager-role\" to ServiceAccount \"gatekeeper-admin/gatekeeper-system\""}

יומן לדוגמה

{
   "userAgent":"gatekeeper/v3.7.0 (linux/amd64) 3ba8e93/2021-11-15T20:59:44Z",
   "sourceIPs":[
      "10.200.0.4"
   ],
   "objectRef":{
      "apiGroup":"resourcemanager.gdc.goog",
      "resource":"organizations",
      "apiVersion":"v1alpha1"
   },
   "stageTimestamp":"2022-12-06T23:05:22.590986Z",
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1",
   "level":"Metadata",
   "auditID":"38da3a00-47b8-424f-8d63-d89258e2043e",
   "requestReceivedTimestamp":"2022-12-06T23:05:22.586546Z",
   "verb":"list",
   "_gdch_cluster":"root-admin",
   "_gdch_fluentbit_pod":"anthos-audit-logs-forwarder-2j85z",
   "stage":"ResponseComplete",
   "responseStatus":{
      "code":200,
      "metadata":{}
   },
   "user":{
      "uid":"253b9e2f-fde2-4e37-ae7b-36a55d57aafb",
      "username":"system:serviceaccount:gatekeeper-system:gatekeeper-admin",
      "extra":{
         "authentication.kubernet es.io/pod-name":[
            "gatekeeper-audit-7fd7bc5d97-x9x8b"
         ],
         "authentication.kubernetes.io/pod-uid":[
            "e62eaabc-2530-4c36-b793-a98b42c061eb"
         ]
      },
      "groups":[
         "system:serviceaccounts",
         "system:serviceaccounts:gatekeeper-system",
         "system: authenticated"
      ]
   },
   "requestURI":"/apis/resourcemanager.gdc.goog/v1alpha1/organizations?limit=500",
   "annotations":{
      "authorization.k8s.io/decision":"allow",
      "authorization.k8s.io/reason":"RBAC: allowed by ClusterRoleBinding \"gatekeeper-manager-rolebinding\" of ClusterRole \"gatekeeper-manager-role\" to ServiceAccount \"gatekeeper-admin/gatekeeper-system\""
   },
   "_gdch_service_name":"apiserver"
}