Skip to content

Rust SDK Changelog

[Unreleased]

Changed

  • License metadata moves from extensions (_license_status, _quarantine, …) to the signed Provenance.license block (status, tenant_id, plan, quarantine, …); LicenseMetadata serialises with those names (#249).
  • UDM_VERSION is "0.0.5", matching the Python SDK (#249).
  • Provenance signatures now cover the whole event as sent (canonical JSON without the provenance block) instead of a field list, so capture time and domain payloads are signed (#388).
  • Signatures are lowercase hex instead of base64, matching the Python SDK.
  • The signature also covers the provenance block (key_id, algorithm, signed_at and any other members); only provenance.signature is left out (#389).
  • License metadata is added before signing, so the signature covers it.

Added

  • Device attestation (#453): Signer::quote / attestation_key_der / public_key_der hooks; core::attestation (Attestor keeps a PhyCloud-registered TPM quote per interval, SoftwareAttestation otherwise) and Provenance.device_attestation, signed with the event; agent setting provenance.attestation (enabled, interval_secs, pcrs); core::enrollment (enroll_device, rotate_device_key, register_attestation_key). phytrace-tpm creates a restricted attestation key (TpmConfig::ak_handle) and quotes with TpmSigner::quote_pcrs.
  • ProvenanceSigner::signature_for_value / verify_value for checking events in JSON form, and core::canonical with the shared canonical JSON encoder.
  • Signed provenance.sequence_num and provenance.boot_epoch (random per start), from the new core::sequence::SequenceCounter. Set provenance.sequence_path (or PHYTRACE_SEQUENCE_PATH) to keep sequence numbers increasing across restarts (#390).
  • core::signer::Signer trait with HmacSigner; ProvenanceSigner::with_signer, PhyTraceAgent::from_config_with_signer and with_transport_and_signer accept any back end. Events record the signer class as provenance.signer. The new phytrace-tpm crate provides TpmSigner (ES256 with a non-exportable TPM 2.0 key) (#391).
  • Signer::boot_counter and provenance.boot_counter. phytrace-tpm's TpmSigner increments a TPM NV counter (TpmConfig::counter_index) once per open and reports it there (#436).

Removed

  • provenance.signed_fields. Setting it is now a configuration error rather than being partly ignored.

[0.1.0] - 2026-02-16

Added

  • Initial release
  • UDM models for all 23 domains (serde-based)
  • UdmEvent builder with fluent API
  • ValidationEngine for schema validation
  • ProvenanceTagger with HMAC-SHA256 signing
  • HTTP transport via reqwest (behind http feature flag)
  • File-based edge buffer for offline operation
  • Exponential backoff retry with circuit breaker
  • Batching and gzip compression
  • PhyTraceAgent for production deployments
  • YAML configuration support
  • 4 runnable examples