Skip to content

Commit

Permalink
Set readOnlyRootFilesystem as true for PAC resources (#1756)
Browse files Browse the repository at this point in the history
Setting Controller, Webhook and Watcher Deployments
securityContext readOnlyRootFilesystem to true
to increase the security and to avoid being flagged
by the security scanner.

Signed-off-by: Savita Ashture <[email protected]>
  • Loading branch information
savitaashture authored Aug 29, 2024
1 parent 2d465fe commit 5c88f74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/400-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
containerPort: 9090
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions config/500-watcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ spec:
containerPort: 9090
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions config/600-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
containerPort: 8443
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL

0 comments on commit 5c88f74

Please sign in to comment.