Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-20355

[insights-results-aggregator] Allow no-auth endpoint in the gateway

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • None
    • Platform-Infra Sprint 46, Platform-Infra Sprint 47

      Context:

      As part of one of our CI/CD pipeline (CCXDEV-8579), we need to make a request from Gitlab CI to our API hosted at C.R.C. Instead of using authentication, we would like to be able to query the `/v1/info` and `/v2/info` endpoints freely. This way it won't be necessary to store production credentials in Gitlab CI.

      Acceptance criteria:

      • Running

       

      curl --silent -x http://squid.corp.redhat.com:3128 https://console.stage.redhat.com/api/insights-results-aggregator/v1/info   # For stage
      curl --silent https://console.redhat.com/api/insights-results-aggregator/v1/info  # For prod
      

      returns a JSON with some commit hashes and version of dependant services of the API. Something similar to:

       

      {
        "info": {
          "SmartProxy": { ... },
          "Aggregator": { ... },
          "ContentService": { ... }
        },
        "status": "ok"
      } 
      • Same with /v2/info.
      • The /v1/openapi.json and /v2/openapi.json endpoints still don't need authentication.
      • The rest of the endpoints still need authentication.
      • This is needed for both stage and production.

       

       

              kwalsh@redhat.com Keith Walsh
              jdiazsua@redhat.com Juan Diaz Suarez
              Juan Diaz Suarez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: