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

Azure CredentialsRequest for Machine API Operator may be missing some permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.14, 4.15, 4.16, 4.17, 4.18.0
    • None
    • None
    • CLOUD Sprint 262
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      During review of ARO MiWi permissions, some permissions in the MAPI CredentialsRequest for Azure having other permissions identified through a linked action that are missing.

      A linked access check is an action performed by Azure Resource Manager during a incoming request. For example, when you issue a create operation to a network interface ( Microsoft.Network/networkInterfaces/write ) you specify a subnet in the payload. ARM parses the payload, sees you're setting a subnet property, and as a result requires the linked access check Microsoft.Network/virtualNetworks/subnets/join/action to the subnet resource specified in the network interface. If you update a resource but don't include the property in the payload, it will not perform the permission check.

      The following permissions were identified as possibly needed in MAPI CredsRequest as they are specified as linked action of one of MAPI's existing permissions

      Microsoft.Compute/disks/beginGetAccess/action
      Microsoft.KeyVault/vaults/deploy/action
      Microsoft.ManagedIdentity/userAssignedIdentities/assign/action
      Microsoft.Network/applicationGateways/backendAddressPools/join/action
      Microsoft.Network/applicationSecurityGroups/joinIpConfiguration/action
      Microsoft.Network/applicationSecurityGroups/joinNetworkSecurityRule/action
      Microsoft.Network/ddosProtectionPlans/join/action
      Microsoft.Network/gatewayLoadBalancerAliases/join/action
      Microsoft.Network/loadBalancers/backendAddressPools/join/action
      Microsoft.Network/loadBalancers/frontendIPConfigurations/join/action
      Microsoft.Network/loadBalancers/inboundNatPools/join/action
      Microsoft.Network/loadBalancers/inboundNatRules/join/action
      Microsoft.Network/networkInterfaces/join/action
      Microsoft.Network/networkSecurityGroups/join/action
      Microsoft.Network/publicIPAddresses/join/action
      Microsoft.Network/publicIPPrefixes/join/action
      Microsoft.Network/virtualNetworks/subnets/join/action
      

      Each permission needs to be validated as to whether it is needed by MAPI through any of its code paths.

              rh-ee-nbrubake Nolan Brubaker
              tfahlman Taylor Fahlman
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: