← Back to Pull requests

Enable native Go FIPS and re-migrate to ubi-micro base image #3158

Closed
unknown closed this pull request without merging on Dec 02, 2026 23:32 UTC
View on GitHub
unknown unknown commented on Dec 02, 2026 18:20 UTC
Author

Summary

Transition Kueue operator and operand builds from the OpenSSL-based FIPS shim to Go's native FIPS module, and re-migrate runtime base images from ubi-minimal-pqc to ubi-micro.

The native Go FIPS provider removes the OpenSSL runtime dependency that forced the previous ubi-micro revert, producing fully static binaries that run on minimal base images without crypto-policies or OpenSSL RPMs.

Changes

Phase 1 — Build Infrastructure (native Go FIPS)

  • Makefile: Added -tags no_openssl to disable the OpenSSL FIPS backend; added CGO_ENABLED=0 and GOFIPS140=certified as exported build environment variables

  • upstream/kueue/build.sh: Propagated CGO_ENABLED=0 GOFIPS140=certified into operand build environment and added updated build tags to the make command
  • Phase 2 — Base Image Migration

  • Dockerfile + Dockerfile.kueue: Changed runtime base from ubi9/ubi-minimal-pqc → ubi9/ubi-micro (static binary needs no OpenSSL or C library)

  • Added TODO comments for Go 1.26+ toolchain upgrade (blocked on rhel9/go-toolset availability)
  • Documentation

  • AGENTS.md: Updated build flags and environment documentation
  • Blocked

  • Go 1.26+ builder image upgrade — requires updated rhel9/go-toolset with Go 1.26+. Builder image is left at current version with a TODO comment.
  • Testing

  • go version -m should show GOFIPS140 and GOEXPERIMENT=strictfipsruntime

  • fips-check-image-scan should pass (no OpenSSL linkage)

  • Downstream e2e suite on FIPS-enabled cluster
  • References

  • Epic: OCPKUEUE-1016

  • Story: OCPKUEUE-1017

  • Feature: OCPSTRAT-4110

  • ai-helpers native-fips skill
  • ---
    AI-generated. Review for accuracy.

    @kannon92 requested from Slack

    Chai persona: OpenShift Node

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

    Summary by CodeRabbit

    Build and Runtime
    Updated builds to use certified Go FIPS settings and disable CGO.
    Switched the final container images to UBI Micro.
    Documentation
    Updated build documentation to include the certified Go FIPS environment.
    Documented the planned Go toolset upgrade.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 309 lines (+231 / -78) across 3 files Reviewer: kannon92 Review duration: 311m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 309 lines diff across 3 files
    0.63
    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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #3158"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 63.4% (MEDIUM) · Higher = larger blast radius
    63.4%
    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: 25.1% · Safe to merge
    25.1%