Repository navigation
Conversation
…irect Live NEAR AI quotes since 2026-11-04 carry measurements the policies lack: model CVMs (os_image_hash 91fd5d69...) RTMR1 4ae60980... and RTMR2 bd67ab75...; the nearcloud gateway (os_image_hash 8db40cb2...) MRTD 7fe60787..., RTMR0 d090162b..., RTMR1 4ae60980... and RTMR2 764489f2.... Add them, with regression tests.
SummaryThe six values are the ones NEAR AI serves today. I checked them against attestation reports captured on 2026-11-14:
The change is not ready to merge, for three reasons. Each new value comes only from live quotes, while the allowlist is a trust anchor. The change contradicts a documented rule for these registers. And it breaks an existing test. Findings1.
|
Problem
NEAR AI's live quotes carry TDX measurements that
internal/provider/nearcloud/policy.goandinternal/provider/neardirect/policy.godo not allow, so the boot-config factors cannot pass for NEAR AI today. Read from a fresh/v1/attestation/reporton 2026-11-14 (all quotesUpToDateunder@phala/dcap-qvl), and first seen 2026-11-04:91fd5d69…4ae609807c765916…bd67ab7554dc27ab…df4d77c8…,bc122d14…8db40cb2…7fe60787222bd394…d090162bff4b1d1d…4ae609807c765916…764489f277a85401…Change
nearcloud.DefaultMeasurementPolicyandneardirect.DefaultMeasurementPolicy: add the model RTMR1 and RTMR2 above.nearcloud.DefaultGatewayMeasurementPolicy: add the gateway MRTD, RTMR0, RTMR1 and RTMR2 above.policy_test.gofiles that fail on main and pass with this change.Effect
teep verify nearcloudandneardirectaccept NEAR AI's current OS images. The earlier values stay allowed; nothing else changes. These are observed values: I did not trace91fd5d69…/8db40cb2…to a dstack release, so the comments name the os_image_hash and the date seen.To verify
Point of discussion
Should the gateway RTMR0 (
d090162b…) be accepted as a second hardware config, the way the model policy keeps two RTMR0 values? I added it next to the existing one.Checklist
make checkpasses.gofmt,go vetand the two packages' tests pass;golangci-lintwas not available on this machine.make integrationandmake reportspass. Not run: noNEARAI_API_KEYon this machine.Found while porting teep's nearcloud policy to a browser verifier in https://github.com/amiller/abalone (
web/near-policy.mjs).