CORENET-7131: migrate UDN Security and OVNK CNI test cases #3213
All Vouch review confidence checks passed
Residual risk 0.41 = Change Risk (0.70) × (1 − Review Confidence (0.42)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.70 · 312 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.070
Real PR Conversation Timeline
1 comments
"Review active on #3213"
general
weight: 0.35
asood-rh
Validates that ovnkube-node container logs do not expose API tokens
or Bearer authentication credentials.
Test searches ovnkube-controller container logs for sensitive patterns
(api-token, authorization, bearer) and filters false positives to ensure
no actual tokens are logged.
Description
Migrate OTP test case 49216 (API Token Logging Security) to OTE framework as part of the broader OTP-to-OTE migration effort.
Test Case: Medium-49216 - API Token Logging Security
Priority: Blocking (port=yes, >95% pass rate)
Lifecycle: blocking
Fixes
N/A (migration work, not fixing a specific issue)
Additional Information for reviewers
- Added
openshift/test/otp/networking_tools_test.go- First OTP networking tools test- Added
openshift/test/otp/otp_suite_test.go- Ginkgo test suite registration for OTP package- Uses k8s client-go directly (no openshift/origin dependency for portability)
- Tagged with
[sig-networking][OTP][blocking][case_id:49216]Checks
[ ] My code requires changes to the documentation → Leave UNCHECKED
[ ] if so, I have updated the documentation as required → Leave UNCHECKED
[x] My code requires tests → CHECK THIS (type x between the brackets)
[x] if so, I have added and/or updated the tests as required → CHECK THIS
[ ] All the tests have passed in the CI → Leave UNCHECKED (say "will verify once CI runs")
How to verify it
Test Type: End-to-end Ginkgo test
Local verification:
```bash
export KUBECONFIG=/path/to/kubeconfig
cd openshift/test
go test -v ./otp -ginkgo.focus="case_id:49216"
Manual verification (already done):
- Tested on live OpenShift 4.22 cluster
- Checked 6 ovnkube-node pods
- Result: 0 API tokens found in logs
CI verification:
Test will run automatically as part of OpenShift networking test suite (tagged with [sig-networking]).
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added comprehensive end-to-end tests for Multus networking support, including IPv6 exclude-range handling and Dummy CNI plugin validation.
Added network tracing tests using ovnkube-trace to validate pod-to-pod and pod-to-host traffic delivery.
Added security tests to detect token exposure in logs and validate CNI configuration file permissions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->