← Back to Pull requests

WIP: [WIP] Add TLS curve propagation test (CNV-96294) #6653

Open
unknown opened this pull request with 225 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 20, 2026 08:47 UTC
Author

##### What this PR does / why we need it:
Add a tier2 test that applies a Custom TLS profile (HCO-direct) carrying a curated curve set - including the non-default SecP256r1MLKEM768 hybrid - and verifies each configured curve is negotiated per CNV service while a deliberately-omitted curve (X25519) is rejected.

  • SNI-aware per-curve openssl probe helper (compose_openssl_curve_command, get_service_curve_status)

  • custom_curve_profile_applied / curve_status_by_service fixtures

  • FIPS-aware expected set; components that do not yet propagate curves are gated via is_jira_open so they auto-assert once their story is resolved

  • apiserver-proxy and observability-controller-metrics excluded (not probeable via a bare openssl handshake)

  • console-plugin gated on CNV-99597 (HCO does not roll it on curve change)
  • The tier2 PQC audit (CNV-15222) and tier3 version propagation (CNV-15973) tests are unchanged.
    ##### Which issue(s) this PR fixes:

    ##### Special notes for reviewer:

    ##### jira-ticket:
    https://redhat.atlassian.net/browse/CNV-96294

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

  • Tests

  • - Added post-upgrade checks for TLS curve negotiation across CNV services.
    - Verify that configured curves negotiate successfully and omitted curves are rejected, while distinguishing inconclusive results from known pending issues.
    - Account for FIPS restrictions, console plugin limitations, and worker support when evaluating curves.
    - Apply a custom TLS profile for testing and restore the previous profile afterward.
    - Exclude services with runtime detection errors from runtime results rather than assigning them a default.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 225 lines (+168 / -57) across 2 files Reviewer: hmeir Review duration: 60117m
    All Vouch review confidence checks passed
    Residual risk 0.37 = Change Risk (0.67) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.67 · 225 lines diff across 2 files
    0.67
    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%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.324
    Sensitive Paths sensitive_paths
    0.067
    Real PR Conversation Timeline
    1 comments
    "Review active on #6653"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 44.7% 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: 67.1% (HIGH) · Higher = larger blast radius
    67.1%
    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: 44.7% · Lower = rushed or shallow review
    44.7%
    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: 37.1% · Moderate risk
    37.1%