Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-22190

Azure cloud node manager has global Node update permissions

XMLWordPrintable

    • No
    • CLOUD Sprint 258
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, the cloud node manager had permission to update any node object, however, only needed to be able to update the node on which it was running. Following the principles of least privilege, restrictions have been put in place to prevent the node manager from one node, updating the node object of another node
      Show
      Previously, the cloud node manager had permission to update any node object, however, only needed to be able to update the node on which it was running. Following the principles of least privilege, restrictions have been put in place to prevent the node manager from one node, updating the node object of another node
    • Bug Fix
    • In Progress

      Description of problem:

      The Azure cloud node manager uses a service account with a cluster role attached that provides it with cluster wide permissions to update Node objects.
      
      This means, were the service account to become compromised, Node objects could be maliciously updated.
      
      To limit the blast radius of a leak, we should determine if there is a way to limit the Azure Cloud Node Manager to only be able to update the node on which it resides, or, to move it's functionality centrally within the cluster.
      
      Possible paths:
      * Check upstream progress for any attempt to move the node manager role into the CCM
      * See if we can re-use kubelet credentials as these are already scoped to updating only the Node on which they reside
      * See if there's another admission control method we can use to limit the updates (possibly https://kubernetes.io/docs/reference/access-authn-authz/validating-admission-policy/) 

      Version-Release number of selected component (if applicable):

      4.14.0
      

      How reproducible:

      Always
      

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

            joelspeed Joel Speed
            joelspeed Joel Speed
            Zhaohua Sun Zhaohua Sun
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: