OCPBUGS-83335: dont save CAPI secrets#10498
OCPBUGS-83335: dont save CAPI secrets#10498patrickdillon wants to merge 1 commit intoopenshift:mainfrom
Conversation
The installer saves all capi manifests to .clusterapi_output for debugging purposes. On some platforms, this may include secrets which is an unnecessary security risk as they don't help with debugging.
|
@patrickdillon: This pull request references Jira Issue OCPBUGS-83335, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 10✅ Passed checks (10 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
@patrickdillon: This pull request references Jira Issue OCPBUGS-83335, which is valid. 3 validation(s) were run on this bug
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. |
tthvo
left a comment
There was a problem hiding this comment.
/lgtm
/approve
I guess this is just part of the full solution to avoid log-bundle being removed since gitleak analysis showed more "leaks"...
The PR achieved the intention in the bug though 👍 Tested locally with GCP, CAPI secrets are no longer written to disk.
$ cat .openshift_install.log | grep -i 'Skipping secret manifest'
time="2026-04-13T15:47:40-07:00" level=debug msg="Skipping secret manifest openshift-cluster-api-guests/thvo-pchqm-bootstrap"
time="2026-04-13T15:47:40-07:00" level=debug msg="Skipping secret manifest openshift-cluster-api-guests/thvo-pchqm-master"
time="2026-04-13T15:47:40-07:00" level=debug msg="Skipping secret manifest openshift-cluster-api-guests/thvo-pchqm-worker"
$ ls -la --time-style=+"%Y-%m-%d %H:%M" .clusterapi_output/ | awk '{print $6, $7, $8}'
2026-04-13 15:47 .
2026-04-13 15:41 ..
2026-04-13 15:47 Cluster-openshift-cluster-api-guests-thvo-pchqm.yaml
2026-04-13 15:41 envtest.kubeconfig
2026-04-13 15:41 etcd
2026-04-13 15:56 etcd.log
2026-04-13 15:47 GCPCluster-openshift-cluster-api-guests-thvo-pchqm.yaml
2026-04-13 15:47 GCPMachine-openshift-cluster-api-guests-thvo-pchqm-bootstrap.yaml
2026-04-13 15:47 GCPMachine-openshift-cluster-api-guests-thvo-pchqm-master-0.yaml
2026-04-13 15:47 GCPMachine-openshift-cluster-api-guests-thvo-pchqm-master-1.yaml
2026-04-13 15:47 GCPMachine-openshift-cluster-api-guests-thvo-pchqm-master-2.yaml
2026-04-13 15:51 kube-apiserver.log
2026-04-13 15:47 Machine-openshift-cluster-api-guests-thvo-pchqm-bootstrap.yaml
2026-04-13 15:47 Machine-openshift-cluster-api-guests-thvo-pchqm-master-0.yaml
2026-04-13 15:47 Machine-openshift-cluster-api-guests-thvo-pchqm-master-1.yaml
2026-04-13 15:47 Machine-openshift-cluster-api-guests-thvo-pchqm-master-2.yaml
2026-04-13 15:47 Namespace--openshift-cluster-api-guests.yaml
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tthvo 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 |
|
@coderabbitai Can you look into the PR's e2e-aws-ovn job and check:
That's all. Make me proud 😁 |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 3748
You can track the job here: https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_installer/10498/pull-ci-openshift-installer-main-e2e-aws-ovn/2043814984063913984 All other checks ( |
|
@coderabbitai The step e2e-aws-ovn-ipi-install-install in e2e-aws-ovn already completes. You can check the install artifacts normal without waiting for the entire job to finish. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainGot it! Let me check the install step artifacts directly. 🏁 Script executed: Length of output: 76 Let me try different URL patterns for the artifacts. 🏁 Script executed: Length of output: 1414 🏁 Script executed: Length of output: 913 🏁 Script executed: Length of output: 10438 🏁 Script executed: Length of output: 1804
✅ 1. Install completes successfullyThe install step's {"passed": true, "result": "SUCCESS"}✅ 2. No secret manifests in clusterapi artifactsThe
The PR's fix is working correctly — secrets are excluded from the debug artifacts. 🔒 ✅ 3. Log-bundle still scrubbed by CI (as expected)The |
I missed the PR but discussed with @jcpowermac separately. Until now, I mistakenly thought the cause was the root cluster cloud creds. I didn't realize it was the local control plane. |
|
/test e2e-aws-ovn |
|
@patrickdillon: The following test failed, say
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. |
|
/verified by e2e-aws-ovn previous run has (empty) secrets. This one does not. |
|
@patrickdillon: This PR has been marked as verified by 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. |
The installer saves all capi manifests to .clusterapi_output for debugging purposes. On some platforms, this may include secrets which is an unnecessary security risk as they don't help with debugging. Our CI scrubs these, but users shouldn't need to handle it.
Summary by CodeRabbit
Release Notes