← Back to Pull requests

Fix MIG-2062 and 6 other CVEs: Switch to RHEL9 ansible operator [release-1.8] #983

Closed
unknown closed this pull request without merging on Nov 08, 2026 10:20 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 11:18 UTC
Author

Summary


Switches from RHEL 8 based ose-ansible-operator:v4.17 to RHEL 9 based ose-ansible-rhel9-operator:v4.17 and updates vendored Python wheels to resolve 7 critical operator CVEs.

Problem


The RHEL 8 based image has Python 3.6.8, which blocks all CVE fixes that require Python >= 3.7.

Solution


1. Switch to RHEL 9 variant: ose-ansible-operator:v4.17 → ose-ansible-rhel9-operator:v4.17 (Python 3.9.18)
2. Update vendored wheels:
- certifi: 2024.7.4 → 2026.10.23
- urllib3: 1.26.19 → 2.8.0

Changes


  • konflux.Dockerfile: Updated base image to RHEL9 variant

  • hack/build/third-party/pip3-install-dir/: Updated certifi and urllib3 wheels
  • CVE Status

    | CVE | Package | Old Version | New Version | Status |
    |-----|---------|-------------|-------------|--------|
    | MIG-2062 | certifi | 2024.7.4 | 2026.10.23 | ✅ Fixed (vendored wheel) |
    | MIG-2063 | pyasn1 | 0.5.1 | 0.6.3 | ✅ Fixed (base image) |
    | MIG-2060 | pyasn1 | 0.5.1 | 0.6.3 | ✅ Fixed (base image) |
    | MIG-2059 | pyasn1 | 0.5.1 | 0.6.3 | ✅ Fixed (base image) |
    | MIG-2058 | pyasn1 | 0.5.1 | 0.6.3 | ✅ Fixed (base image) |
    | MIG-2053 | urllib3 | 1.26.19 | 2.8.0 | ✅ Fixed (vendored wheel) |
    | MIG-2052 | urllib3 | 1.26.19 | 2.8.0 | ✅ Fixed (vendored wheel) |

    Testing


  • ✅ Base image verified: ose-ansible-rhel9-operator:v4.17 has Python 3.9.18

  • ✅ Package versions verified: pyasn1 0.6.3 already in base image

  • ✅ Wheels downloaded from PyPI and vendored following existing pattern

  • ✅ Minimal changes: Base image + 2 vendored wheel updates
  • Context


  • Credit to Dylan for pointing to the RHEL9 variant

  • RHEL9 image source: https://github.com/openshift/ansible-operator-plugins

  • Related OCPBUGS: OCPBUGS-135343

  • Follows existing pattern of vendoring wheels (not runtime pip install)
  • Jira


    Resolves: MIG-2062, MIG-2063, MIG-2060, MIG-2059, MIG-2058, MIG-2053, MIG-2052

    Diff: 234 lines (+175 / -59) across 2 files Reviewer: awels Review duration: 4261m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 234 lines diff across 2 files
    0.37
    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%
    60%
    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.327
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #983"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 37.1% (MEDIUM) · Higher = larger blast radius
    37.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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 14.7% · Safe to merge
    14.7%