apiserver/pkg/endpoints/filters
Dr. Stefan Schimanski 13a3aab581 apiserver/httplog: pretty up impersonation output
```
I0807 09:09:16.419239       1 httplog.go:132] "HTTP" verb="GET" URI="/apis/batch/v1?timeout=32s" latency="214.666µs" userAgent="kubernetes-provider/v0.0.0 (linux/arm64) kubernetes/$Format" audit-ID="948ef6b2-474d-45a7-ad5f-894ce93d05f7" srcIP="192.168.139.202:35542" apf_pl="exempt" apf_fs="exempt" apf_execution_time="129.5µs" resp=200 addedInfo=<

      &{kubernetes-admin  [system:masters system:authenticated] map[]} is acting as &{foo  [system:authenticated] map[]}
       >
```

to

```
I0807 09:09:16.419239       1 httplog.go:132] "HTTP" verb="GET" URI="/apis/batch/v1?timeout=32s" latency="214.666µs" userAgent="kubernetes-provider/v0.0.0 (linux/arm64) kubernetes/$Format" audit-ID="948ef6b2-474d-45a7-ad5f-894ce93d05f7" srcIP="192.168.139.202:35542" apf_pl="exempt" apf_fs="exempt" apf_execution_time="129.5µs" resp=200 addedInfo="kubernetes-admin[system:masters system:authenticated] is impersonating foo[system:authenticated]"
```

Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>

Kubernetes-commit: 37730c07dd658ba585ffee3861780e18947ca534
2023-08-07 11:23:30 +02:00
..
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
audit.go Initialize the AuditEvent with the AuditContext (#113611) 2023-07-03 18:28:13 +00:00
audit_init.go Rename WithAuditID to WithAuditInit 2022-07-12 14:46:27 -07:00
audit_init_test.go Rename WithAuditID to WithAuditInit 2022-07-12 14:46:27 -07:00
audit_test.go Initialize the AuditEvent with the AuditContext (#113611) 2023-07-03 18:28:13 +00:00
authentication.go add Authentication tracking request/error counts and latency metrics 2023-04-11 22:35:14 +08:00
authentication_test.go Clear front proxy headers after authentication is complete 2023-03-20 13:11:38 -04:00
authn_audit.go Initialize the AuditEvent with the AuditContext (#113611) 2023-07-03 18:28:13 +00:00
authn_audit_test.go rename audit Checker interface 2021-03-24 13:07:21 -04:00
authorization.go add Authentication tracking request/error counts and latency metrics 2023-04-11 22:35:14 +08:00
authorization_test.go Initialize the AuditEvent with the AuditContext (#113611) 2023-07-03 18:28:13 +00:00
cachecontrol.go add cache-control headers to kube-apiserver 2019-08-26 09:39:29 -04:00
cachecontrol_test.go add cache-control headers to kube-apiserver 2019-08-26 09:39:29 -04:00
doc.go Mechanical fixup imports: pkg/genericapiserver 2017-02-13 07:36:41 -05:00
impersonation.go apiserver/httplog: pretty up impersonation output 2023-08-07 11:23:30 +02:00
impersonation_test.go This introduces an Impersonate-Uid header to server side code. 2021-03-04 15:19:52 -08:00
metrics.go add Authentication tracking request/error counts and latency metrics 2023-04-11 22:35:14 +08:00
metrics_test.go add Authentication tracking request/error counts and latency metrics 2023-04-11 22:35:14 +08:00
mux_discovery_complete.go aggregator: pass apiServiceRegistrationControllerInitiated signal directly to apiserviceRegistration controller 2021-10-20 11:06:27 +02:00
mux_discovery_complete_test.go rename to muxAndDiscoveryComplete 2021-10-19 12:24:00 +02:00
request_deadline.go Initialize the AuditEvent with the AuditContext (#113611) 2023-07-03 18:28:13 +00:00
request_deadline_test.go Consolidate AuditContext 2022-07-12 11:53:57 -07:00
request_received_time.go Migrate to k8s.io/utils/clock in apiserver 2021-09-14 20:36:07 +02:00
request_received_time_test.go Migrate to k8s.io/utils/clock in apiserver 2021-09-14 20:36:07 +02:00
requestinfo.go Remove request context mapper 2018-04-18 11:12:15 -04:00
requestinfo_test.go Mechanical move: pkg/genericapiserver -> k8s.io/apiserver 2017-02-13 07:36:41 -05:00
storageversion.go staging: fix "go vet" issues 2023-02-28 21:22:40 +01:00
traces.go kubelet tracing 2021-10-10 09:17:27 -04:00
warning.go Add warnings capability for admission webhooks 2020-06-30 16:27:56 -04:00
warning_test.go Add warnings capability for admission webhooks 2020-06-30 16:27:56 -04:00
webhook_duration.go track latency for http.ResponseWriter.Write 2022-02-04 11:36:23 -05:00