UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Mitigate automountServiceAccountToken findings in flux-system and bigbang namespaces

Merged Justen Mehl requested to merge 1855-flux-hardening into master
Files
2
@@ -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:
Loading