-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
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.