Skip to content

Commit

Permalink
Set readOnlyRootFilesystem as true in Controllers and Webhook
Browse files Browse the repository at this point in the history
Setting readOnlyRootFilesystem to increase the security and to avoid
being flagged by scanner.
  • Loading branch information
khrm committed May 17, 2024
1 parent 3dab35e commit 696d6d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ spec:
value: tekton.dev/pipeline
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- "ALL"
Expand Down
1 change: 1 addition & 0 deletions config/events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ spec:
value: /etc/ssl/certs
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- "ALL"
Expand Down
1 change: 1 addition & 0 deletions config/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ spec:
value: tekton.dev/pipeline
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- "ALL"
Expand Down

0 comments on commit 696d6d4

Please sign in to comment.