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

ApplicationAuth constantly generating applicationkeys if the auth secret doesn't exist

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • 3scale Operator
    • None
    • 3
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • 3
    • RHOAM Sprint 56

      What

      ApplicationAuth constantly generating applicationkeys if the auth secret doesn't exist
      How to reproduce
      Create a product with a application via cr
      create a ApplicationAuth CR with the following content making sure that the auth secret example doesn't exist.

      apiVersion: capabilities.3scale.net/v1beta1
      kind: ApplicationAuth
      metadata: 
        name: example
        namespace: 3scale-test
      spec: 
        applicationCRName: application-cr
        authSecretRef: 
          name: example
        generateSecret: true
      

      the status should update straight away to

      status: 
        conditions: 
          - lastTransitionTime: '2024-04-10T11:44:17Z'
            message: ApplicationKey limit reached a maximum of 5 keys allowed
            status: 'True'
            type: Failed
          - lastTransitionTime: '2024-04-10T11:44:17Z'
            status: 'False'
            type: Ready
      

      How

      debug the operator when the above conditions are met to see if you can stop the generation of keys if the secret is not found.

            Unassigned Unassigned
            aucunnin@redhat.com Austin Cunningham
            Martin Kudlej Martin Kudlej
            Austin Cunningham Austin Cunningham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: