feat(RELEASE-2177): ta stepactions support for self-signed certificate#361
feat(RELEASE-2177): ta stepactions support for self-signed certificate#361jinqi7 wants to merge 1 commit intokonflux-ci:mainfrom
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
76808b5 to
6eb1b9d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #361 +/- ##
=======================================
Coverage 95.54% 95.54%
=======================================
Files 57 57
Lines 3863 3863
=======================================
Hits 3691 3691
Misses 172 172
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Review Summary by QodoAdd self-signed certificate support to trusted artifact stepactions
WalkthroughsDescription• Add self-signed certificate support to trusted artifact stepactions • Introduce ConfigMap-based CA bundle configuration parameters • Mount CA certificates to standard system paths for validation • Pass CA certificate path to create-trusted-artifact step Diagramflowchart LR
A["ConfigMap Parameters"] -->|"caTrustConfigMapName, caTrustConfigMapKey"| B["Volume Mount Configuration"]
B -->|"Mount to /etc/pki/tls/certs/custom-ca"| C["CA Certificate Access"]
C -->|"Pass caCertPath parameter"| D["create-trusted-artifact Step"]
File Changes1. tasks/augment-component-sboms-ta/0.3/augment-component-sboms-ta.yaml
|
Code Review by Qodo
1. Optional subPath mount fails
|
Signed-off-by: Jing Qi <jinqi@redhat.com> It's needed for push-to-external-registry pipeline to support self-signed certificate in trusted artifacts stepactions.
|
This may replace #360 if it's ready. However in the current state, the task won't work as the CA bundle is just mounted to the Mobster pod but not used. See this issue. We can either merge this as-is (without deploying the change to release-service-catalog) or we can try to update the container's CA bundle in script like so: ca_bundle=/mnt/trusted-ca/ca-bundle.crt
if [ -f "$ca_bundle" ]; then
echo "[$(date --utc -Ins)] Using mounted CA bundle: $ca_bundle"
cp -vf $ca_bundle /etc/pki/ca-trust/source/anchors/custom-bundle.crt # changed name not to cause conflicts
update-ca-trust
fi(This snippet has been modified from buildah-oci-ta.yaml in build-definitions). Let us know if the mounting mechanism is final so we can work on top of these changes if that's the case. |
|
Closing in favor of #363 |
Signed-off-by: Jing Qi jinqi@redhat.com
It's needed for push-to-external-registry pipeline to support self-signed
certificate in trusted artifact stepactions.
Related PR: konflux-ci/release-service-catalog#2133