Uploaded image for project: 'Cert Manager support for Red Hat OpenShift'
  1. Cert Manager support for Red Hat OpenShift
  2. CM-674

Configure operator container to set readOnlyRootFilesystem to true

XMLWordPrintable

    • OAPE Sprint 275
    • 1

      All cert-manager operands containers are applied with "readOnlyRootFilesystem: true" in their securityContext (aligned with upstream natively):

      But the operator controller-manager is not:

      https://github.com/openshift/cert-manager-operator/blob/bb69f735ac8611d97b02d012d6f99f0184a567a4/config/manager/manager.yaml#L101-L109

      As called out in OCPSTRAT-2045, it's a common hardening recommendation to set readOnlyRootFilesystem to true, which ensures that the container's root filesystem is mounted as read-only.

      Acceptance criteria

      • Validate the operator pod container if has this field set correctly after installation.
      • Verify effective behavior inside the running container. (oc exec -it – touch /etc/testfile should error out).
      • Ensure existing e2es in operator repo and QE CI not being broken. 

              rh-ee-yuewu Yuedong Wu
              rh-ee-yuewu Yuedong Wu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: