Skip to content

Commit c6acc1e

Browse files
config: set readOnlyRootFilesystem on all containers
`readOnlyRootFilesystem` will keep you from writing anywhere other than a mounted volume. It's not just the root directory but the entire root filesystem. It's a security best practice that we should embrace in all the Tekton components. Signed-off-by: Vincent Demeester <[email protected]>
1 parent 8254234 commit c6acc1e

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

config/kubernetes/500-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ spec:
7575
type: RuntimeDefault
7676
runAsNonRoot: true
7777
allowPrivilegeEscalation: false
78+
readOnlyRootFilesystem: true
7879
runAsUser: 65532
7980
capabilities:
8081
drop:

config/kubernetes/500-webhook.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ spec:
5555
type: RuntimeDefault
5656
runAsNonRoot: true
5757
allowPrivilegeEscalation: false
58+
readOnlyRootFilesystem: true
5859
runAsUser: 65532
5960
capabilities:
6061
drop:

config/openshift/500-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ spec:
7575
type: RuntimeDefault
7676
# runAsNonRoot: true
7777
allowPrivilegeEscalation: false
78+
readOnlyRootFilesystem: true
7879
# runAsUser: 65532
7980
capabilities:
8081
drop:

config/openshift/500-webhook.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ spec:
5555
type: RuntimeDefault
5656
# runAsNonRoot: true
5757
allowPrivilegeEscalation: false
58+
readOnlyRootFilesystem: true
5859
# runAsUser: 65532
5960
capabilities:
6061
drop:

0 commit comments

Comments
 (0)