Skip to content

Commit 7301392

Browse files
Merge pull request #454 from rivkyrizel/MGMT-22200
MGMT-22200: Add readOnlyRootFilesystem security constrain in CAPI providers
2 parents 8ca0d3a + 9c531c0 commit 7301392

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

bootstrap-components.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ spec:
812812
capabilities:
813813
drop:
814814
- ALL
815+
readOnlyRootFilesystem: true
815816
volumeMounts:
816817
- mountPath: /tmp/k8s-webhook-server/serving-certs/
817818
name: certs

bootstrap/config/manager/manager.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ spec:
3535
fieldPath: metadata.namespace
3636
securityContext:
3737
allowPrivilegeEscalation: false
38+
readOnlyRootFilesystem: true
3839
capabilities:
3940
drop:
4041
- "ALL"

controlplane-components.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ spec:
944944
capabilities:
945945
drop:
946946
- ALL
947+
readOnlyRootFilesystem: true
947948
securityContext:
948949
runAsNonRoot: true
949950
serviceAccountName: capoa-controlplane-controller-manager

controlplane/config/manager/manager.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ spec:
3030
name: manager
3131
securityContext:
3232
allowPrivilegeEscalation: false
33+
readOnlyRootFilesystem: true
3334
capabilities:
3435
drop:
3536
- "ALL"

test/e2e/manifests/capboa/bootstrap_install.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ spec:
812812
capabilities:
813813
drop:
814814
- ALL
815+
readOnlyRootFilesystem: true
815816
volumeMounts:
816817
- mountPath: /tmp/k8s-webhook-server/serving-certs/
817818
name: certs

test/e2e/manifests/capcoa/controlplane_install.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ spec:
944944
capabilities:
945945
drop:
946946
- ALL
947+
readOnlyRootFilesystem: true
947948
securityContext:
948949
runAsNonRoot: true
949950
serviceAccountName: capoa-controlplane-controller-manager

0 commit comments

Comments
 (0)