Installation
Quick start
- Development mode
- Production mode
- JSON policy
For development and testing, use
DstackTdxPolicy::dev() which accepts more TCB statuses but still verifies the TEE:API reference
atls_connect(tcp, hostname, policy, session)
High-level function to establish an attested TLS connection:tls_stream: Atokio_rustls::client::TlsStreamfor sending/receiving datareport: Attestation report containing TEE measurements and TCB status
AtlsVerifier trait
For custom TLS handling, use theAtlsVerifier trait directly:
Policy types
Policy::DstackTdx(DstackTdxPolicy)
Intel TDX verification policy for Dstack deployments:Report types
Report::Tdx(TdxReport)
Attestation report for Intel TDX:Error handling
Policy configuration
By default, all runtime fields are required for production policies. Missing fields will cause a configuration error unlessdisable_runtime_verification is set to true.
Platform support
- Native (Linux, macOS, Windows): Full support with tokio async I/O
- WASM: Browser support via futures async I/O (see Browser/WASM)