Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11072

ApplicationAuth doesn't set user_key when Product uses custom name for user_key

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.15.0 GA
    • 3scale Operator
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      When user_key name is specified in Product, it is not possible to set user_key value via AplicationAuth CR(stored in secret). The value is ignored because of https://github.com/3scale/3scale-operator/pull/953/files#diff-db5111fa140eddf493ff72920b7dbb2e8122f4a80c06e3b5f54bcb40b611e2d5R249

      Reproducer:

      kind: Product
      apiVersion: capabilities.3scale.net/v1beta1
      ...
      deployment:
          apicastHosted:
            authentication:
              userkey:
                authUserKey: token
                credentials: query
                gatewayResponse: {}
      ...
      
      kind: Secret
      ...
      data:
        ApplicationID: ''
        ApplicationKey: ''
        UserKey: >-
          M2ctYWN0Q3B0c1FtcUVVSm41WFhKdVh3OFY5c2RCQXA4U01hU3QxVGY3ay5KWXVtQVRmcHdmUFJwUWhYSTJYNEl1UXhOTXhHUGV3cVE1TTh1OS44RGZKdXR0VUpzSEdmdUplZQ==
      type: Opaque
      
      apiVersion: capabilities.3scale.net/v1beta1
      kind: ApplicationAuth
      ...
      spec:
        applicationCRName: testkn6mbnwczuk
        authSecretRef:
          name: keyseclelnp
        generateSecret: false
        providerAccountRef:
          name: threescale-provider-account-17385
      

        1. screenshot-1.png
          screenshot-1.png
          37 kB
        2. screenshot-2.png
          screenshot-2.png
          55 kB
        3. screenshot-3.png
          screenshot-3.png
          98 kB
        4. screenshot-4.png
          screenshot-4.png
          50 kB
        5. screenshot-5.png
          screenshot-5.png
          22 kB

            Unassigned Unassigned
            mkudlej@redhat.com Martin Kudlej
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: