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

Proxy configuration does not allow anonymous pulls from upstream

XMLWordPrintable

    • False
    • None
    • False
    • Quay Enterprise
    • 0
    • Customer Escalated

      If username and password are not explicitly entered, validation of proxy configuration does not go through:

      Logs from the container:

      gunicorn-web stdout | 2023-03-30 16:24:00,897 [194] [DEBUG] [data.cache.impl] Checking cache for key upstream_token__gcr/gcr.io/None
      gunicorn-web stdout | 2023-03-30 16:24:00,897 [194] [DEBUG] [data.cache.impl] Found no result in cache for key upstream_token__gcr/gcr.io/None; calling loader
      gunicorn-web stdout | 2023-03-30 16:24:00,897 [194] [DEBUG] [data.cache.impl] Got loaded result for key upstream_token__gcr/gcr.io/None: None
      gunicorn-web stdout | 2023-03-30 16:24:00,897 [194] [DEBUG] [data.cache.impl] Not caching loaded result for key upstream_token__gcr/gcr.io/None: None
      gunicorn-web stdout | 2023-03-30 16:24:00,898 [194] [DEBUG] [urllib3.connectionpool] Starting new HTTPS connection (1): gcr.io:443
      gunicorn-web stdout | 2023-03-30 16:24:00,990 [194] [DEBUG] [urllib3.connectionpool] https://gcr.io:443 "GET /v2/ HTTP/1.1" 401 None
      gunicorn-web stdout | 2023-03-30 16:24:01,017 [194] [DEBUG] [urllib3.connectionpool] https://gcr.io:443 "GET /v2/token?service=gcr.io HTTP/1.1" 401 None
      gunicorn-web stdout | 2023-03-30 16:24:01,018 [194] [DEBUG] [app] Ending request: urn:request:4fe2fd3c-98b2-452b-a8c3-b8e3cbdd45c3 (/api/v1/organization/gcr/validateproxycache) {'endpoint': 'api.proxycacheconfigvalidation', 'request_id': 'urn:request:4fe2fd3c-98b2-452b-a8c3-b8e3cbdd45c3', 'remote_addr': '172.24.0.1', 'http_method': 'POST', 'original_url': 'https://quay.skynet/api/v1/organization/gcr/validateproxycache', 'path': '/api/v1/organization/gcr/validateproxycache', 'parameters': {}, 'json_body': {'org_name': 'gcr', 'expiration_s': 86400, 'insecure': False, 'upstream_registry': 'gcr.io', 'upstream_registry_username': '', 'upstream_registry_password': ''}, 'confsha': 'ddfc0988', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0'}
      gunicorn-web stdout | 2023-03-30 16:24:01,019 [194] [DEBUG] [data.database] Disconnecting from database.
      gunicorn-web stdout | 2023-03-30 16:24:01,019 [194] [DEBUG] [peewee.pool] Returning 140556008477456 to pool.
      gunicorn-web stdout | 2023-03-30 16:24:01,019 [194] [INFO] [gunicorn.access] 172.24.0.1 - - [30/Mar/2023:16:24:01 +0000] "POST /api/v1/organization/gcr/validateproxycache HTTP/1.0" 400 326 "https://quay.skynet/organization/gcr?tab=settings" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0"
      

      This also happens with docker.io and quay.io. Please check!

            hgovinda Harish Govindarajulu
            rhn-support-ibazulic Ivan Bazulic
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: