Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-1977

Creating new quay repo fails due to Quay token not being passed to API

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description of the problem:
      When trying to create a workflow using the software template, and choosing the "Create a new Quay repository option", the pipeline fails with the following error:

      12024-12-31T14:10:11.938Z Beginning step Create Quay Repository
      22024-12-31T14:10:12.440Z Error: Failed to create Quay repository, 403 -- CSRF token was invalid or missing.3    at Object.handler (/opt/app-root/src/dynamic-plugins-root/janus-idp-backstage-scaffolder-backend-module-quay-dynamic-1.7.2/dist/cjs/createQuayRepository-040c3a03.cjs.js:111:15) 

      When examining the network calls, the following is seen in the payload: 

      Following investigation with rh-ee-eshalev , the token was being passed as a secret, but the template was not parsing the secret correctly, so null was being passed as a parameter.

      How reproducible: 100%

      Steps to reproduce:

      1. Create template using 1.4 version of software template. Choose the Create New Quay Repository option.

      Actual results: See above

      Expected results: Quay repo should be created as expected.

              rh-ee-eshalev Elai Shalev
              yfirst Yona First
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: