Slide 36
Slide 36 text
Presented by @makocchi
CloudNative Days Tokyo 2019
36
Actual audit log
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Request",
"auditID": "bebead89-a12b-4152-8ede-4bed98ebf745",
"stage": "ResponseComplete",
"requestURI": "/api/v1/namespaces/default/pods/nginx",
"verb": "get",
"user": {
"username": "demo",
"uid": "10a14d993b164b34b3aea325f9a599f5",
"groups": [
"2ad03dfcd93b46a18f2bb081057753ab",
"system:authenticated"
],
},
"sourceIPs": [
"1.2.3.4"
],
"userAgent": "kubectl/v1.15.0 (linux/amd64) kubernetes/e8462b5",
"objectRef": {
"resource": "pods",
"namespace": "default",
"name": "nginx",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestReceivedTimestamp": "2019-07-19T05:01:55.156727Z",
"stageTimestamp": "2019-07-19T05:01:55.158597Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": ""
}
}
とある pod を get した時の audit log
(見やすいように整形してあります)