UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit eb8d5499 authored by Dustin Hilgaertner's avatar Dustin Hilgaertner
Browse files

added exceptions to bigbang kyverno-policy template

parent 10470bf6
No related branches found
No related tags found
1 merge request!3348kyvernoPolicies update to 3.0.4-bb.4
Pipeline #2406694 failed
......@@ -114,6 +114,41 @@ policies:
{{- end }}
{{- end }}
# -- Prevent Automounting of Kubernetes API Credentials on Pods and Service Accounts
disallow-auto-mount-service-account-token:
enabled: true
validationFailureAction: Audit
exclude:
any:
{{- if .Values.addons.gitlab.enabled }}
- resources:
namespaces:
- gitlab
kinds:
- Pod
names:
- gitlab-shared-secrets*
{{- end }}
{{- if .Values.addons.gitlabRunner.enabled }}
- resources:
namespaces:
- gitlab-runner
kinds:
- ServiceAccount
names:
- gitlab-runner
{{- end }}
{{- if .Values.kyvernoReporter.enabled }}
- resources:
namespaces:
- kyverno-reporter
kinds:
- Pod
- Deployment
names:
- kyverno-reporter*
{{- end }}
{{- if or .Values.fluentbit.enabled .Values.monitoring.enabled .Values.twistlock.enabled }}
disallow-tolerations:
exclude:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment