Skip to content

Commit

Permalink
Set root file system to read-only to match operand
Browse files Browse the repository at this point in the history
The operand's root is set to read only, but the operator isn't, which is
causing things like the trivvy scanner to complain about it as "severity
high" misconfiguration.

This just changes the readOnlyRootFilesystem setting to true in the pod
templates (both the raw manifests and the CSV) to alleviate any possible
security issue the writeable root fs may cause. It should have no impact
whatsoever on the operation of the operator.

Signed-off-by: John Kyros <[email protected]>
  • Loading branch information
jkyros committed Aug 12, 2024
1 parent 6efa716 commit ce97bbe
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundle/manifests/keda.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ metadata:
categories: Cloud Provider
certified: "false"
containerImage: ghcr.io/kedacore/keda-olm-operator:2.15.0
createdAt: "2024-08-09T21:40:07Z"
createdAt: "2024-08-12T20:57:13Z"
description: Operator that provides KEDA, a Kubernetes-based event driver autoscaler
operatorframework.io/suggested-namespace: keda
operators.operatorframework.io/builder: operator-sdk-v1.31.0
Expand Down Expand Up @@ -655,6 +655,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /certs
name: certificates
Expand Down
1 change: 1 addition & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
ports:
- containerPort: 8080
name: http
Expand Down
1 change: 1 addition & 0 deletions config/manifests/bases/keda.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /certs
name: certificates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /certs
name: certificates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /certs
name: certificates
Expand Down

0 comments on commit ce97bbe

Please sign in to comment.