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

Ingress operator should use granular roles on GCP

XMLWordPrintable

    • Important
    • No
    • 2
    • Sprint 247
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      Description of problem

      The Ingress Operator should use granular roles in its CredentialsRequest per CCO-249. A change to use granular roles merged after the release-4.15 branch cut. This change needs to be backported for 4.15.0.

      Version-Release number of selected component (if applicable)

      4.15.0

      How reproducible

      Easily.

      Steps to Reproduce

      1. Launch an OCP 4.15 cluster on GCP.
      2. Check the ingress operator's CredentialsRequest: oc get -n openshift-cloud-credential-operator credentialsrequests/openshift-ingress-gcp -o yaml

      Actual results

      The CredentialsRequest uses a predefined role:

      spec:
        providerSpec:
          apiVersion: cloudcredential.openshift.io/v1
          kind: GCPProviderSpec
          predefinedRoles:
          - roles/dns.admin
      

      Expected results

      The CredentialsRequest should specify the individual permissions that the operator requires:

      spec:
        providerSpec:
          apiVersion: cloudcredential.openshift.io/v1
          kind: GCPProviderSpec
          permissions:
          - dns.changes.create
          - dns.resourceRecordSets.create
          - dns.resourceRecordSets.update
          - dns.resourceRecordSets.delete
          - dns.resourceRecordSets.list
      

      Additional info

      https://github.com/openshift/cluster-ingress-operator/pull/844 merged in the master branch for 4.16 and needs to be backported to the release-4.15 branch.

              mmasters1@redhat.com Miciah Masters
              mmasters1@redhat.com Miciah Masters
              Hongan Li Hongan Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: