Bug 2268065
| Summary: | Not all csi-addons containers run with read-only filesystem | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | Niels de Vos <ndevos> | |
| Component: | csi-addons | Assignee: | Niels de Vos <ndevos> | |
| Status: | CLOSED ERRATA | QA Contact: | Filip Balák <fbalak> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.14 | CC: | etamir, kbg, muagarwa, nberry, odf-bz-bot, sheggodu | |
| Target Milestone: | --- | |||
| Target Release: | ODF 4.15.2 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | 4.15.2-1 | Doc Type: | Bug Fix | |
| Doc Text: |
Previously, the security scanners or checkers reported that the `csi-addons-controller-manager` pod does not have "readOnlyRootFilesystem" enabled as the pod does not have "readOnlyRootFilesystem" enabled explicitly.
With this fix, in the deployment of the `csi-addons-controller-manager` pod, "readOnlyRootFilesystem is set to `true`. As a result, the security scanners or checkers no longer report the missing "readOnlyRootFilesystem" option for csi-addons-controller-manager.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 2274499 (view as bug list) | Environment: | ||
| Last Closed: | 2024-05-01 01:31:06 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2274499 | |||
|
Description
Niels de Vos
2024-03-06 09:00:39 UTC
Security can be enhanced by setting "readOnlyRootFilesystem: true" for all containers that are part of the csi-addons-controller-manager deployment. The upstream PR has been merged, so it will be included in odf-4.16 automatically. Once this BZ is approved for ODF-4.15.z, please leave a comment "/bugzilla refresh" in https://github.com/red-hat-storage/kubernetes-csi-addons/pull/127 to get the PR merged. Karthick/Sunil, please include this issue in the next 4.15 release. is it possible to backport this to 4.14 also? What are the steps to verify this bug? (In reply to Mudit Agarwal from comment #6) > is it possible to backport this to 4.14 also? Yes, if that is wanted. A new csi-addons bundle will need to be provided as that contains the CSV with the change. (In reply to krishnaram Karthick from comment #7) > What are the steps to verify this bug? You can "oc -n openshift-storage rsh -c manager csi-addons-controller-manager-..." into the manager container and try to create/delete/modify files on non-volume paths. That is expected to fail. csi-addons-controller-manager pod has read only file system: $ touch /tmp/test touch: cannot touch '/tmp/test': Read-only file system 4.15.2-1 regression runs didn't find any issue directly caused by the change: tier1 - https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster-prod/11447/ tier3 - https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster-prod/11423/ tier4a - https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster-prod/11433/ tier4c - https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster-prod/11431/ --> VERIFIED Tested with: odf 4.15.2-1 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenShift Data Foundation 4.15.2 Bug Fix Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:2636 |