← Back to Pull requests

podvm: bind initdata only on TDX and Azure #3482

Closed
unknown closed this pull request without merging on Dec 01, 2026 09:15 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 05:36 UTC
Author

Part of #2604.

Since #3352, AA always gets -t. On SNP outside Azure the host doesn't set HOSTDATA and there's no runtime measurement register, so AA can neither check nor record initdata: it exits and systemd restarts it in a loop. This follows the plan in #2604, using a platform.env as @mkulke suggested.

  • process-user-data detect-platform detects TDX with the same checks as AA (configfs-tsm provider, then /dev/tdx_guest) and the CSP, and writes CSP and INITDATA_BINDING=yes|no to /run/peerpod/platform.env.

  • The image loads the TEE guest drivers via modules-load.d, so they're loaded before detection.

  • AA's unit passes -t only when INITDATA_BINDING=yes, i.e. on TDX and Azure where binding is known to work. Elsewhere initdata stays unbound; on SNP outside Azure this avoids the crash loop.
  • Tested with unit tests and a pod VM image on GCP TDX and SEV-SNP (Ubuntu 26.04) with AA from the pinned guest-components: on TDX the initdata is recorded in RTMR3, on SNP AA starts without -t (with -t it exits).

    A possible follow-up, not needed for any provider today: check HOSTDATA instead of the CSP, so SNP keeps -t if a provider starts setting it.

    cc @Xynnn007, thanks for the guest-components side that made this possible.

    Diff: 157 lines (+117 / -40) across 1 files Reviewer: david-long1 Review duration: 16058m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.33) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 157 lines diff across 1 files
    0.33
    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%
    56%
    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.303
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3482"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 33.3% (LOW) · Higher = larger blast radius
    33.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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.4% · Safe to merge
    14.4%