← Back to Pull requests

feat(node-image): bake core Kubernetes workloads and pinned images #664

Closed
unknown closed this pull request without merging on Sep 22, 2026 15:11 UTC
View on GitHub
unknown unknown commented on Sep 18, 2026 11:40 UTC
Author

Bake the complete CDS, router/certificate helpers, RA-TLS mesh and operator
workloads into the measured node image. The embedded chart renders at build
time to /var/lib/rancher/rke2/server/manifests/c8s-integration.yaml; pinned
OCI archives under RKE2's image directory let every core container start with
imagePullPolicy: Never.

The host retains attestation, signed-launch verification/staging, RKE2/containerd,
NRI admission and attested credential release. Boot preparation merges the
measured chart seed into NRI's system floor before RKE2 starts, avoiding a CDS
bootstrap dependency. Core Pods mount only public launch inputs read-only:
peer listeners accept the authorized role keys, while CDS clients require the
server's full image/key policy. Signed TLS hostnames are read from fixed files.
The private launch directory and enrollment tokens are never mounted into Pods.

This removes the parallel systemd implementations of CDS, mesh, get-cert and
nginx, the runtime ConfigMap, and text-based YAML splitting. CDS and router
remain singletons. The docs describe role placement, token exposure, Pod/VM
restart behavior and image upgrades. Initial manifests and image content are
measured; live Kubernetes API changes remain within the existing trusted
cluster-admin boundary. Mixed-image rolling upgrades and HA remain unsupported.

Stack

#662 → #663 → #664 → #552

Land the complete stack together before publishing or deploying the new node
images: guest boot and hardware launchers share the signed launch contract.
Published C8S_REF images must contain the new SAN-file flags; C8S_BINARY
overrides only the host binary and embedded chart.

Validation

  • Native CLI/rendering and complete Helm chart tests passed, including TDX/SNP renders.

  • Linux tests for certificate handling, CDS, launch staging, node preparation,

  • NRI admission and the Linux node-services command passed.
  • Linux-targeted Go lint: 0 issues; shellcheck and actionlint passed.

  • 62 systemd boot checks and 13 image-invariant regression assertions passed.

  • Offline ORAS archive tests passed, preserving full multi-platform digests,

  • canonical image names and deterministic bytes. A local containerd 2.3.5
    import/manifest/rootfs probe also passed for both fixture platforms.
  • TDX/SNP image builds and their reproducibility comparison passed in CI,

  • along with Build & Test, coverage, integration and cluster integration.
  • TDX/SNP hardware cold boot and full RKE2 unpack were not run locally.
  • The 14 human review comments are addressed by the workload migration,
    structured rendering, simplified host bootstrap and revised lifecycle docs.

    CI still reports the advisory mutation timeout; the Meat waiter propagates
    that canceled workflow status. The functional checks above passed.

    Diff: 348 lines (+261 / -87) across 4 files Reviewer: joaosa Review duration: 5970m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.71 · 348 lines diff across 4 files
    0.71
    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.350
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.071
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #664"
    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: 70.6% (HIGH) · Higher = larger blast radius
    70.6%
    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: 27.9% · Safe to merge
    27.9%