← Back to Pull requests

feat(attestation): preserve launch anchors and authenticate bootstrap #662

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

Attestation consumers now preserve each image tuple and its authorized launch
key together. Kubeconfig bootstrap obtains fresh, operator-authenticated
evidence over the credential service's RA-TLS endpoint before requesting a
credential. Existing images can use an explicit legacy --attest-url.

This foundation also makes coverage baseline checks reliable for the stack.

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.

Validation

  • Baseline validation: full Linux Go suite passed at 91.30% coverage; focused race tests and Linux Go lint passed.

  • Follow-up validation: full Helm chart, NRI and shared policy-loader suites passed; installer/render-values policy tests and Linux-target lint passed.
  • Original review feedback

  • Policy naming, JSON source clarity and helper flags: explicit --image-policy-file and --image-policy-json inputs distinguish complete JSON policies from legacy newline digest files. The old --measurements-config and --measurements-config-json flags are removed; callers must use the canonical image-policy flags.

  • Repeated loading logic: policy-source selection and legacy input loading share helpers, including NRI pull and inventory verification; attestation-go retains parsing and verification ownership.

  • Named result instead of tuple: MeasuredIdentity carries the operator binding result and attestation-go image identity; #663 updates the launch consumer.

  • Evidence dependency and clock dependency: evidence generation and clock access use single-method interfaces.

  • Nonce module: shared nonce/challenge extraction remains follow-up work, as the reviewer explicitly requested.
  • Gemini review follow-up

  • Bounded HTTP errors: non-OK attestation responses read only a 1 KiB prefix plus a truncation probe; successful evidence keeps its 8 MiB limit.

  • Launch digest indexing: the earlier typed-identity refactor removed this access from the loader; the remaining caller in #663 now explicitly rejects missing identities and empty digest lists.
  • Review follow-up

  • Endpoint verifiers use PinVerifier injection with a stateless LocalVerifier; CLI tests share one testutil.VerifierStub.

  • The MRTD-only verdict check is part of pinned-policy validation.

  • Direct Helm installs fail when the enabled NRI installer would receive a weaker CDS policy: anchored or nonuniform policies are rejected, and supported policies must match the installer's flat digest/register inputs. Measured-node deployments with the installer disabled retain complete-policy support.
  • Diff: 431 lines (+323 / -108) across 5 files Reviewer: joaosa Review duration: 5786m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 431 lines diff across 5 files
    0.68
    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.363
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #662"
    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: 68.3% (HIGH) · Higher = larger blast radius
    68.3%
    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.0% · Safe to merge
    27.0%