apiserver/pkg/audit
Abu Kashem 50cce843c9 Take into account latency incurred in server filters
apiserver_request_duration_seconds does not take into account the
time a request spends in the server filters. If a filter takes longer
then the latency incurred will not be reflected in the apiserver
latency metrics.

For example, the amount of time a request spends in priority and
fairness machineries or in shuffle queues will not be accounted for.

- Add a server filter that attaches request received timestamp to the
request context very early in in the handler chain (as soon as
net/http hands over control to us).
- Use the above received timestamp in the apiserver latency metrics
apiserver_request_duration_seconds.
- Use the above received timestamp in the audit layer to set
RequestReceivedTimestamp.

Kubernetes-commit: d74ab9e1a4929be208d4529fd12b76d3fcd5d546
2020-09-18 16:46:07 -04:00
..
event Export UserInfo conversion, use authnv1.UserInfo in audit 2019-09-09 08:54:54 -04:00
policy prefer NoError/Error over Nil/NotNil 2020-07-18 20:23:35 -04:00
OWNERS Updated OWNERS files to include link to docs 2019-01-30 20:05:00 +01:00
context.go Allow handlers early in the request chain to set audit annotations 2020-03-19 20:02:37 -04:00
format.go support micro time for advanced audit 2017-09-25 11:56:30 +08:00
metrics.go switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
request.go Take into account latency incurred in server filters 2020-09-18 16:46:07 -04:00
request_test.go limit User-Agent max length 1024 and add ...TRUNCATED suffix 2018-06-20 11:15:09 +08:00
scheme.go Audit test utils fix (#74276) 2019-02-22 01:19:51 -07:00
types.go Add String method to audit.Backend interface 2018-07-18 17:35:08 +08:00
union.go Add option to k8s apiserver to reject incoming requests upon audit failure 2018-07-03 14:40:55 +02:00
union_test.go Add String method to audit.Backend interface 2018-07-18 17:35:08 +08:00