OCPBUGS-109578: fix oc darwin client hcp login when insecure tls flag is used - #2438
OCPBUGS-109578: fix oc darwin client hcp login when insecure tls flag is used#2438ehearne-redhat wants to merge 1 commit into
Conversation
This fix fixes an issue seen when oc client is used to login to a HCP cluster on macOS. It falls back to kubeconfig CA when a string based x509 error is observed on the macOS platform. See https://github.com/golang/go/blob/master/src/crypto/x509/ root_darwin.go#L74 for reference.
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-109578, which is invalid:
Comment 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: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe OAuth token request transport now detects Darwin systems and falls back to the kubeconfig CA transport for generic errors beginning with ChangesOAuth transport fallback
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This is a localized macOS login behavior fix, and no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
Full details: Stable And Deterministic Test NamesExplanation PASS. The commit changes only Full details: Test Structure And QualityExplanation PASS. The pull request changes only Full details: Microshift Test CompatibilityExplanation PASS: The pull request changes only Full details: Single Node Openshift (Sno) Test CompatibilityExplanation PASS: The pull request changes only Full details: Topology-Aware Scheduling CompatibilityExplanation PASS: The pull request modifies only Full details: Ote Binary Stdout ContractExplanation PASS. The patch changes only Full details: Ipv6 And Disconnected Network Test CompatibilityExplanation PASS: The pull request changes only Full details: No-Weak-CryptoExplanation PASS. The pull request adds only Darwin-specific handling for generic Full details: Container-PrivilegesExplanation PASS. The commit diff contains one changed file: Full details: No-Sensitive-Data-In-LogsExplanation The change adds one V(4) log for a Darwin certificate-verification fallback. It logs only the verification error ( ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/jira refresh |
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-109578, which is valid. The bug has been moved to the POST state. 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. |
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-109578, 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ehearne-redhat The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@ehearne-redhat: 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. |
This fix fixes an issue seen when oc client is used to login to a HCP cluster on macOS. It falls back to kubeconfig CA when a string based x509 error is observed on the macOS platform.
See https://github.com/golang/go/blob/master/src/crypto/x509/root_darwin.go#L74 for reference.
Summary by CodeRabbit