UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit a3704782 authored by Justen Mehl's avatar Justen Mehl Committed by Michael Martin
Browse files

Mitigate automountServiceAccountToken findings in flux-system and bigbang namespaces

parent 071814bc
No related branches found
No related tags found
1 merge request!3634Mitigate automountServiceAccountToken findings in flux-system and bigbang namespaces
......@@ -53,6 +53,15 @@ patches:
drop:
- ALL
$patch: replace
- target:
kind: ServiceAccount
name: helm-controller
patch: |-
apiVersion: v1
kind: ServiceAccount
metadata:
name: helm-controller
automountServiceAccountToken: false
- target:
kind: Deployment
name: helm-controller
......@@ -64,6 +73,7 @@ patches:
spec:
template:
spec:
automountServiceAccountToken: true
containers:
- name: manager
resources:
......@@ -73,6 +83,15 @@ patches:
requests:
cpu: 900m
memory: 1Gi
- target:
kind: ServiceAccount
name: kustomize-controller
patch: |-
apiVersion: v1
kind: ServiceAccount
metadata:
name: kustomize-controller
automountServiceAccountToken: false
- target:
kind: Deployment
name: kustomize-controller
......@@ -84,6 +103,7 @@ patches:
spec:
template:
spec:
automountServiceAccountToken: true
containers:
- name: manager
resources:
......@@ -93,6 +113,15 @@ patches:
requests:
cpu: 300m
memory: 600Mi
- target:
kind: ServiceAccount
name: notification-controller
patch: |-
apiVersion: v1
kind: ServiceAccount
metadata:
name: notification-controller
automountServiceAccountToken: false
- target:
kind: Deployment
name: notification-controller
......@@ -104,6 +133,7 @@ patches:
spec:
template:
spec:
automountServiceAccountToken: true
containers:
- name: manager
resources:
......@@ -113,6 +143,15 @@ patches:
requests:
cpu: 100m
memory: 200Mi
- target:
kind: ServiceAccount
name: source-controller
patch: |-
apiVersion: v1
kind: ServiceAccount
metadata:
name: source-controller
automountServiceAccountToken: false
- target:
kind: Deployment
name: source-controller
......@@ -124,6 +163,7 @@ patches:
spec:
template:
spec:
automountServiceAccountToken: true
containers:
- name: manager
resources:
......
......@@ -169,6 +169,17 @@ policies:
names:
- prometheus-monitoring-monitoring-kube-prometheus*
{{- end }}
- resources:
namespaces:
- flux-system
kinds:
- Pod
- Deployment
names:
- notification-controller-*
- helm-controller-*
- source-controller-*
- kustomize-controller-*
{{- if or .Values.fluentbit.enabled .Values.monitoring.enabled .Values.twistlock.enabled }}
disallow-tolerations:
......@@ -712,6 +723,8 @@ policies:
- thanos
- mattermost
- mattermost-operator
- bigbang
- flux-system
- keycloak
update-automountserviceaccounttokens:
......
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