Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-170

Odd behavior when listing packages with token

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2020.08.20
    • None
    • quay.io
    • None
    • Kamino [Quay 178]
    • 0

      We noticed that when listing packages via GET /cnr/api/v1/packages?namespace=certified-operators we're getting less results when using an authentication token vs anonymous access.

      Unauthorized requests returns more results:

      curl https://quay.io/cnr/api/v1/packages\?namespace\=certified-operators | jq | grep namespace | wc -l 
      58
      

      Authorized request returns less results (even with admin token):

       curl -H "Authorization: $TOKEN" https://quay.io/cnr/api/v1/packages\?namespace\=certified-operators | jq | grep namespace | wc -l 
      50
      

      There is no mention about pagination in headers

      {'Server': 'nginx/1.12.1', 'Date': 'Wed, 15 Jan 2020 19:11:08 GMT', 'Content-Type': 'application/json', 'Content-Length': '14055', 'Connection': 'keep-alive', 'X-Frame-Options': 'DENY', 'Strict-Transport-Security': 'max-age=63072000; preload'}
      

       
      This is currently blocking operator metadata publish from RHC.

      Do you have any suggestions of what could be wrong here?

       

            jschorr Joseph Schorr (Inactive)
            lucarval@redhat.com Luiz Carvalho
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: