Skip to main content

Module attestation

Module attestation 

Source
Expand description

Device attestation for provenance (issue #453, Rust side of #393).

Each signed event’s provenance block carries a device_attestation entry from an AttestationProvider:

  • With a TPM signer, Attestor (feature http) keeps a current TPM2 quote registered with PhyCloud: it fetches a nonce (POST /api/v1/attestation/nonce), has the TPM quote its PCRs over it with the attestation key, submits the quote (POST /api/v1/attestation/quotes), and events reference the result: {"mode": "tpm", "quote_id": "...", "quote_status": "verified"}. Quotes are refreshed once per interval, not per event.
  • Without a TPM, SoftwareAttestation marks the block {"mode": "software", "warning": "no hardware root of trust"}, so a software agent is never mistaken for an attested one.

The blocks are identical to the Python SDK’s.

Structs§

Attestor
Keeps a current TPM quote registered with PhyCloud.
SoftwareAttestation
AttestationProvider for agents without a TPM.

Traits§

AttestationProvider
Supplies the device_attestation block for the next event.

Functions§

software_attestation
The attestation block of an agent without a TPM.