NROP tls-scanner: allow scanner ingress to scheduler pods via Network… - #83815
NROP tls-scanner: allow scanner ingress to scheduler pods via Network…#83815mrniranjan wants to merge 1 commit into
Conversation
…Policy The TLS scanner could not reach NROP scheduler pods (port 10259) in the openshift-numaresources namespace because the namespace's NetworkPolicy denies cross-namespace ingress. - Add telcov10n-functional-cnf-compute-nrop-create-network-policy pre-step that applies an additive NetworkPolicy allowing ingress to the secondary-scheduler pods from the scanner namespace, and ensures the scanner namespace exists. - Wire the step into the nrop-tls-scanner workflow before tls-scanner-run. - Set SCANNER_NAMESPACE=tls-scanner on the scan step so the scanner runs pod-networked, letting the NetworkPolicy namespaceSelector match its traffic (host-networked traffic sources from the node IP and would not). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. WalkthroughAdds a CI step that creates and verifies an ingress ChangesNROP TLS scanner network policy
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🟡 Moderate · up to The PR adds a network-policy setup step and changes scanner namespace behavior, but the CI configuration must first be regenerated with Sequence Diagram(s)sequenceDiagram
participant TLSScannerWorkflow
participant NetworkPolicyStep
participant KubernetesAPI
TLSScannerWorkflow->>NetworkPolicyStep: invoke pre-step
NetworkPolicyStep->>KubernetesAPI: create tls-scanner namespace
NetworkPolicyStep->>KubernetesAPI: apply ingress NetworkPolicy
NetworkPolicyStep->>KubernetesAPI: retrieve NetworkPolicy for verification
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrniranjan 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 |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@mrniranjan: 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. |
Allow scanner ingress to scheduler pods via n/w policy
The TLS scanner could not reach NROP scheduler pods (port 10259) in the openshift-numaresources namespace because the namespace's NetworkPolicy denies cross-namespace ingress.
Summary by CodeRabbit
This PR updates the OpenShift CI NROP TLS scanner workflow. It:
tls-scannernamespace when needed.10259.tls-scannernamespace so the policy can match its traffic.