feat(RELEASE-2158): Support self-hosted Quay#3148
feat(RELEASE-2158): Support self-hosted Quay#3148querti wants to merge 1 commit intoconforma:mainfrom
Conversation
Add a new e2e test pipeline that checks if push-to-external-registry works with self-hosted Quay. Unlike other e2e tests which use the stage cluster, this one uses ephemeral Kind cluster. The reason is Quay is deployed to the cluster and is used for testing. Two changes were made to the push-to-external-registry pipeline to ensure its compatibility with self-hosted Quay: - Mount the ca-bundle.crt from trusted-ca configmap to /etc/ssl/certs/. This ensures that the self-signed CA cert of the internal Quay instance is known to the 3rd party tools like skopeo and cosign. Without it, the tools would fail with a TLS error. - Update regexes to support a Quay URL with a port number. The regexes assume that only one ":" will be present in the url, which may be wrong. Update them to account for hostnames with port number. Several other changes were made to support this functionality: - Mounting the CA bundle in Conforma task[1] - Support self-hosted Quay deployment in the Kind cluster[2] - Add init-quay task and skip-quay parameter[3] - Add a new Go e2e test for self-hosted quay[4] [1] conforma/cli#3148 [2] konflux-ci/konflux-ci#5689 [3] konflux-ci/tekton-integration-catalog#272 [4] konflux-ci/e2e-tests#1798 Assisted-by: Cursor Signed-off-by: Lubomir Gallovic <lgallovi@redhat.com>
|
This PR adds the cert to other tasks in the push-to-external-registry pipeline: konflux-ci/release-service-catalog#2031 |
Review Summary by QodoSupport self-hosted Quay with trusted CA certificates
WalkthroughsDescription• Add trusted CA certificate mounting for self-hosted Quay support • Mount CA bundle to both /mnt/trusted-ca and /etc/ssl/certs/ca-custom-bundle.crt • Enable Verify Conforma task to work with self-signed certificates Diagramflowchart LR
A["Verify Conforma Task"] -- "mounts CA bundle" --> B["Trusted CA Volume"]
B -- "maps to /mnt/trusted-ca" --> C["CA Bundle Location 1"]
B -- "maps to /etc/ssl/certs/ca-custom-bundle.crt" --> D["CA Bundle Location 2"]
C --> E["Self-hosted Quay Support"]
D --> E
File Changes1. tasks/verify-conforma-konflux-ta/0.1/verify-conforma-konflux-ta.yaml
|
Code Review by Qodo
1. CA mount not consumed
|
Verify Conforma task should support images that are in a self-hosted Quay instance. This instance has a self-signed CA cert which is implicitly not trusted by 3rd party tools. This can be fixed by mounting the CA bundle to /etc/ssl/certs/, making it trusted. Mount to /mnt/trusted-ca is added to be consistent with other tasks in the pipeline. Assisted-by: Cursor Signed-off-by: Lubomir Gallovic <lgallovi@redhat.com>
|
@simonbaird @joejstuart @st3penta can I request a review? Thanks! |
Verify Conforma task should support images that are in a self-hosted Quay instance. This instance has a self-signed CA cert which is implicitly not trusted by 3rd party tools. This can be fixed by mounting the CA bundle to /etc/ssl/certs/, making it trusted. Mount to /mnt/trusted-ca is added to be consistent with other tasks in the pipeline.