← Back to Pull requests

CORENET-7131: migrate UDN Security and OVNK CNI test cases #3213

Open
unknown opened this pull request with 312 lines diff across 3 files
View on GitHub
unknown unknown commented on May 31, 2026 13:28 UTC
Author

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 -->

Diff: 312 lines (+234 / -78) across 3 files Reviewer: asood-rh Review duration: 265071m
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
0.70
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: medium confidence: 42.2% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 70.5% (HIGH) · Higher = larger blast radius
70.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 42.2% · Lower = rushed or shallow review
42.2%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 40.7% · Moderate risk
40.7%