OADP-4817, OADP-1945, OADP-641: Add AWS_CA_BUNDLE support for custom CA certificates in BSLs#2241
OADP-4817, OADP-1945, OADP-641: Add AWS_CA_BUNDLE support for custom CA certificates in BSLs#2241kaovilai wants to merge 1 commit into
Conversation
|
@kaovilai: This pull request references OADP-641 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kaovilai The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@kaovilai: This pull request references OADP-1945 which is a valid jira issue. This pull request references OADP-641 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Note Responses generated with Claude This cherry-pick was opened as a courtesy for the assignee of OADP-1945 (Michal Pryc), which targets OADP 1.4.11. The velero plugin side is already merged (openshift-velero-plugin#293, #375) — this PR is the only remaining piece needed for caCert/imagestream backup to work on oadp-1.4. |
|
@kaovilai: This pull request references OADP-4817 which is a valid jira issue. This pull request references OADP-1945 which is a valid jira issue. This pull request references OADP-641 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
…kupStorageLocations Cherry-pick of PR openshift#1930 (master) adapted for oadp-1.4 branch structure: - controllers/ package (not internal/controller/) - DPAReconciler (not DataProtectionApplicationReconciler) - DPA passed as parameter (no r.dpa field) Changes: - Add processCACertForBSLs() to extract CA certificates from BSL configs and create velero-ca-bundle ConfigMap - Add processCACertificatesForVelero() to mount ConfigMap and set AWS_CA_BUNDLE env var in velero deployment - AWS_CA_BUNDLE triggers AWS SDK native CA cert functionality for S3, enabling imagestream backup in air-gapped environments with custom CAs - Comprehensive unit tests for both functions Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <[email protected]> Co-Authored-By: Happy <[email protected]> Signed-off-by: Tiger Kaovilai <[email protected]>
1980cfd to
db8145c
Compare
|
/retest |
|
@kaovilai: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Cherry-pick of #1930 (master) / #1943 (oadp-1.5) adapted for oadp-1.4 branch structure.
Summary
processCACertForBSLs()to extract CA certificates from BSL configurations and createvelero-ca-bundleConfigMapprocessCACertificatesForVelero()to mount the ConfigMap and setAWS_CA_BUNDLEenvironment variable in the Velero deploymentAWS_CA_BUNDLEtriggers AWS SDK native CA certificate functionality for S3 operations, enabling imagestream backup in air-gapped environments with custom CAsAdaptation notes
oadp-1.4 uses
controllers/package withDPAReconciler(master usesinternal/controller/withDataProtectionApplicationReconciler). DPA is passed as a function parameter since oadp-1.4's reconciler has nor.dpafield.Known limitation
If any BSL has
caCert, theAWS_CA_BUNDLEenv var applies to all BSLs' imagestream S3 client (env var is container-wide).Related
Corresponding openshift-velero-plugin PRs (already merged to oadp-1.4)