mirror of https://github.com/rancher/dartboard.git
Add example audit config file
Signed-off-by: Silvio Moioli <silvio@moioli.net>
This commit is contained in:
parent
cd79b8a88b
commit
92a052469f
|
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: audit.k8s.io/v1
|
||||||
|
kind: Policy
|
||||||
|
|
||||||
|
# Prevent requests in the RequestReceived stage from generating audit events.
|
||||||
|
omitStages:
|
||||||
|
- "RequestReceived"
|
||||||
|
|
||||||
|
rules:
|
||||||
|
# Log all resources in core and extensions at the Metadata level.
|
||||||
|
- level: Metadata
|
||||||
|
# Long-running requests like watches that fall under this rule will not
|
||||||
|
# generate an audit event in RequestReceived.
|
||||||
|
omitStages:
|
||||||
|
- "RequestReceived"
|
||||||
Loading…
Reference in New Issue