Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-3019

Run OVNController pod components at minimum privilege escalation level

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • ovn-operator
    • None
    • Minimum privileges for OVNController pod processes
    • False
    • Hide

      None

      Show
      None
    • False
    • Proposed
    • Proposed
    • To Do
    • Proposed
    • Proposed
    • 100% To Do, 0% In Progress, 0% Done

      OVNController CRD controller spawns pods via DaemonSet that are privileged, run as root, and require additional capabilities (NET_ADMIN, SYS_ADMIN, SYS_RESOURCE). This bears risks to security of the cluster, and we should minimize the risk surface where possible.

       

      Note: OVNNorthd and OVNDbCluster pods are not privileged. This Epic applies to OVNController pods only, and - to be even more clear - to ovn-controller processes running in pods (on OCP nodes via OpenShift), not to EDP nodes (where bare podman is used, and where ovs-vswitchd is running on hypervisor.

       

      Definition of Done:

      • ovn-controller is running in unprivileged container
        • scc!=privileged, user!=root,capabilities are default
      • ovsdb-server is running in unprivileged container
        • scc!=privileged, user!=root,capabilities are default
        • prior work done for OVNDbCluster CRD controller suggests that scc=restricted-v2 should work for ovsdb-server
      • configJob that configures vswitchd local ovsdb-server is running in unprivileged container

       

      Note: ovs-vswitchd may still run as privileged. This service manipulates interfaces and hence has a different security profile.

              ihrachys Ihar Hrachyshka
              ihrachys Ihar Hrachyshka
              rhos-dfg-networking-squad-neutron
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: