[release-4.20] OCPBUGS-88347: ensure org match in validation#4291
Conversation
This commit requires an exact single-org match using reflect.DeepEqual, mirroring the kubelet client path in isNodeClientCert(). This is a cherry-pick of commit 88d72cc from PR openshift#4253, adapted for release-4.20. That branch does not yet contain the pkg/csr/validation package refactor, so the equivalent fix is applied directly to validateKubeletServingCSR in pkg/csr/csr.go.
|
Skipping CI for Draft Pull Request. |
WalkthroughKubelet-serving CSR validation now requires an exact match between the CSR's subject organization list and the expected single-element organization slice, using reflect.DeepEqual instead of membership checking. Corresponding tests were added covering valid and various invalid organization scenarios. ChangesCSR Organization Validation
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jrvaldes 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 |
|
/test ? |
|
/test vsphere-e2e-operator |
|
/test gcp-e2e-operator |
|
/lgtm |
|
@jrvaldes: This pull request references Jira Issue OCPBUGS-88347, 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. |
|
/jira refresh |
|
@jrvaldes: This pull request references Jira Issue OCPBUGS-88347, which is valid. 7 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. |
|
/override ci/prow/vsphere-disconnected-e2e-operator |
|
@jrvaldes: Overrode contexts on behalf of jrvaldes: ci/prow/vsphere-disconnected-e2e-operator 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 kubernetes-sigs/prow repository. |
|
/retest |
|
/override ci/prow/azure-e2e-operator ci/prow/azure-e2e-upgrade missing 2019 template in azure CI |
|
/override ci/prow/nutanix-e2e-operator cluster install failed, there is CI coverage across other jobs, no specific change for this platform was introduced. |
|
@jrvaldes: Overrode contexts on behalf of jrvaldes: ci/prow/azure-e2e-operator, ci/prow/azure-e2e-upgrade 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 kubernetes-sigs/prow repository. |
|
@jrvaldes: Overrode contexts on behalf of jrvaldes: ci/prow/nutanix-e2e-operator 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 kubernetes-sigs/prow repository. |
|
@jrvaldes: The following tests 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. |
3b63ac9
into
openshift:release-4.20
|
@jrvaldes: Jira Issue OCPBUGS-88347: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-88347 has been moved to the MODIFIED state. 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. |
|
/cherry-pick release-4.19 |
|
@jrvaldes: new pull request created: #4304 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 kubernetes-sigs/prow repository. |
|
@jrvaldes: new pull request created: #4305 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 kubernetes-sigs/prow repository. |
This is a manual cherry-pick of commit 88d72cc from PR #4253, adapted for release-4.20. That branch does not yet contain the pkg/csr/validation package refactor, so the equivalent fix is applied directly to validateKubeletServingCSR in pkg/csr/csr.go.
Summary by CodeRabbit