← Back to Pull requests

CNTRLPLANE-2589: Migrate test/e2e-oidc to OTE + bug fixes(imagestream,scc,Pathological Event Monitor) #945

Closed
unknown closed this pull request without merging on Aug 10, 2026 17:17 UTC
View on GitHub
unknown unknown commented on Jul 05, 2026 15:49 UTC
Author

Hi Team,

This PR is about:
Part 1: OTE Migration
1.1 Test Architecture Transformation: Dual-Mode Pattern Implementation:
1.2 Test Tags & Metadata
- Tags: [OIDC][Serial][Disruptive]
- Test Name: TestExternalOIDCWithKeycloak
- Timeout: [Timeout:3h] - Extended timeout for comprehensive authentication flow testing
1.3 Comprehensive Test Coverage
The test suite now includes 6 complete sub-tests (previously only precondition checks):
1. auth-config ConfigMap Lifecycle (Type != OIDC)
- Verifies ConfigMap doesn't exist when authentication type is not OIDC
- Tests CAO auto-deletion when manually created
2. CEL Expression Validation
- Tests invalid CEL expressions for uid claim mapping
- Tests invalid CEL expressions for extras claim mapping
- Verifies admission controller rejects malformed expressions
3. Invalid OIDC Configuration Handling
- Tests degradation with invalid CA bundle
- Tests degradation with invalid issuer URL
- Confirms operator enters Degraded state appropriately
4. Username Claim & Prefix Policy Variations
- Tests email claim with custom prefix (oidc-test:)
- Tests email claim with no prefix
- Tests sub claim with default issuer-based prefix
- Tests email claim with NoOpinion policy (auto-prefix)
- Verifies successful KAS rollout (when old architecture enabled)
- Full OAuth/OIDC state validation including JWT/JWKS verification
5. auth-config ConfigMap Lifecycle (Type == OIDC)
- Verifies ConfigMap exists when type is OIDC
- Tests CAO auto-overwrite when manually modified
6. Unknown Username Claim Handling
- Tests configuration with non-existent claim
- Verifies rollout succeeds but authentication fails gracefully

Part 2: Critical Bug Fixes
2.1 Keycloak Token Expiration Bug
2.2 Pod Security Admission (PSA) Violations

Part 3: Library Enhancements
3.1 ImageStream Support (NEW - Addresses Known-Image-Checker Violations)
3.2 IDP Deployment Enhancements
3.3 Keycloak/GitLab Integration Updates
3.4 Wait Utilities Refactoring

Diff: 264 lines (+198 / -66) across 3 files Reviewer: liouk Review duration: 51927m
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.62) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 264 lines diff across 3 files
0.62
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
57%
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.334
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #945"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 58.0% 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: 62.5% (MEDIUM) · Higher = larger blast radius
62.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: 58.0% · Lower = rushed or shallow review
58.0%
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: 26.2% · Safe to merge
26.2%