Update audit policies file
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Adrien Reslinger 2021-06-02 15:46:58 +02:00
parent 1e17bc7317
commit d18ccea770
Signed by: adrien
GPG key ID: DA7B27055C66D6DE

View file

@ -10,7 +10,15 @@ rules:
- group: "" - group: ""
# Resource "pods" doesn't match requests to any subresource of pods, # Resource "pods" doesn't match requests to any subresource of pods,
# which is consistent with the RBAC policy. # which is consistent with the RBAC policy.
resources: ["pods"] resources: ["pods", "deployments"]
- level: RequestResponse
resources:
- group: "rbac.authorization.k8s.io"
# Resource "pods" doesn't match requests to any subresource of pods,
# which is consistent with the RBAC policy.
resources: ["clusterroles", "clusterrolebindings"]
# Log "pods/log", "pods/status" at Metadata level # Log "pods/log", "pods/status" at Metadata level
- level: Metadata - level: Metadata
resources: resources:
@ -48,11 +56,17 @@ rules:
# The empty string "" can be used to select non-namespaced resources. # The empty string "" can be used to select non-namespaced resources.
namespaces: ["kube-system"] namespaces: ["kube-system"]
# Log configmap and secret changes in all other namespaces at the Metadata level. # Log configmap changes in all other namespaces at the RequestResponse level.
- level: RequestResponse
resources:
- group: "" # core API group
resources: ["configmaps"]
# Log secret changes in all other namespaces at the Metadata level.
- level: Metadata - level: Metadata
resources: resources:
- group: "" # core API group - group: "" # core API group
resources: ["secrets", "configmaps"] resources: ["secrets"]
# Log all other resources in core and extensions at the Request level. # Log all other resources in core and extensions at the Request level.
- level: Request - level: Request