UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit bed54450 authored by Tunde Oladipupo's avatar Tunde Oladipupo Committed by Micah Nagel
Browse files

Gatekeeper Update volume-types to deny

parent 8f064bce
No related branches found
No related tags found
1 merge request!693Gatekeeper Update volume-types to deny
......@@ -12,10 +12,24 @@ postInstall:
image:
pullSecrets:
- name: private-registry
networkPolicies:
enabled: {{ .Values.networkPolicies.enabled }}
controlPlaneCidr: {{ .Values.networkPolicies.controlPlaneCidr }}
violations: # Try to keep this in alpha order to make it easier to find keys
allowedDockerRegistries:
match:
excludedNamespaces:
{{- if .Values.istio.enabled }}
- istio-system # allows creation for loadbalancer pods for various ports and various vendor loadbalancers
{{- end }}
- kube-system # ignored as the kubernetes distro cannot be controlled
{{- if .Values.addons.mattermost.enabled }}
parameters:
exemptContainers:
- init-check-database # mattermost needs postgres:13 image and cannot override the upstream
{{- end }}
{{- if .Values.monitoring.enabled }}
hostNetworking:
match:
......@@ -45,16 +59,24 @@ violations: # Try to keep this in alpha order to make it easier to find keys
excludedNamespaces:
- logging # FluentBit needs selinux option type spc_t
{{- end }}
allowedDockerRegistries:
volumeTypes:
match:
excludedNamespaces:
{{- if .Values.istio.enabled }}
- istio-system # allows creation for loadbalancer pods for various ports and various vendor loadbalancers
{{- if .Values.fluentbit.enabled }}
# fluent-bit container requires certain host level access to ship logs and for keep track of state
# https://docs.fluentbit.io/manual/pipeline/filters/kubernetes#workflow-of-tail-kubernetes-filter
- logging
{{- end }}
- kube-system # ignored as the kubernetes distro cannot be controlled
{{- if .Values.addons.mattermost.enabled }}
parameters:
exemptContainers:
- init-check-database # mattermost needs postgres:13 image and cannot override the upstream
{{- end }}
{{- if .Values.twistlock.enabled }}
# Twistlock requires /dev/log for its syslog daemon.
# https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-compute/audit/logging.html#
- twistlock
{{- end }}
{{- if .Values.monitoring.enabled }}
# Prometheus node exported requires hostpath hardcoded in upstream chart on which monitoring pkg has a direct dependency
# https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus-node-exporter/templates/daemonset.yaml#L150
- monitoring
{{- end }}
- kube-system #local-path_local-path-provisioner helper-pod-create-pvc
{{- end -}}
......@@ -281,7 +281,7 @@ gatekeeper:
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/core/policy.git
path: "./chart"
tag: "3.5.1-bb.2"
tag: "3.5.1-bb.3"
# -- Flux reconciliation overrides specifically for the OPA Gatekeeper Package
flux:
......
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