Verify Elixir and Erlang deployments
Deploy in one of two ways. Deploy a git checkout and fetch dependencies with Mix, so their sources land in deps/. Or deploy a release built by CI, with an attested manifest. For a checkout, the attester hashes every file and every dependency source, and the verifier compares each dependency with the Hex tarball whose checksum mix.lock pins. For a release, the verifier checks every file against the attested manifest. In both cases each BEAM process is inspected.
| Lockfile | mix.lock |
|---|---|
| Reference | Hex tarball by outer checksum |
| What is verified | Dependency sources in deps/; releases through an attested manifest |
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 Elixir and Erlang guide
The Elixir and Erlang 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
Read the Elixir and Erlang guide