Verify Rust deployments
A Rust service is one binary. Its hash is what proves what it is, and it can be checked in two ways: the verifier builds the same commit itself and compares the bytes, or CI builds the binary, writes a release manifest and attests it. Build with cargo auditable so the binary also records every crate compiled into it; the verifier compares that list with Cargo.lock at the deployed commit.
| Lockfile | Cargo.lock |
|---|---|
| Reference | A build by the verifier, or an attested release |
| What is verified | The binary, and the crates cargo-auditable recorded in it |
How it works
The lockfile is read at the deployed commit, from the verifier's own clone of the public repository, never from the server. Every package is compared with the reference the lockfile pins, fetched and checked by hash. Besides the packages, the deployed files are compared with the commit, every process of the service is inspected, and every running executable and library is explained by a reference. A reference that cannot be fetched makes the result inconclusive, never passing.
The Rust guide
The Rust guide covers the setup for the project, the attester and the verifier:
- What gets verified
- Requirements
- Attester configuration
- Verifier configuration
- Build and deploy
- Common findings
- Limits