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 authored and tekton-robot committed Jul 11, 2024
1 parent 0f6c973 commit d56c192
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 d56c192

Please sign in to comment.