# Attestation

> What hardware-backed attestation on Atra OS proves, why Atra OS is installed onto servers instead of from an image, and how it ties into atracode audit.

> Preview: the commands, tools and API shapes on this page may change before launch.

Source: https://atracode.com/docs/attestation

Attestation is a node's signed report of what it is running. On Atra OS, that report names the build by its RAVEN hash and names the node it runs on, and it is backed by the server's hardware root of trust where one is available.

It answers a question you otherwise have to take on trust: the program on this server, right now, is the one you verified.

## What it proves

An attestation from an Atra OS node ties together three things:

- **The node:** which registered server produced the report, identified by the name and identity it recorded when it was [provisioned](/docs/provisioning).
- **The build:** the RAVEN hash of each build the node is running.
- **The host:** that the report came from Atra OS on that server, rooted in the server's hardware where the hardware supports it.

Because a RAVEN hash names behavior, the build hash in an attestation is the same hash `atracode compile` printed when your source was verified. You don't compare opaque file checksums that change with every rebuild. If the hashes match, the node is running the behavior you verified. If someone changes the binary on the server, or a compromised tool altered the build, the hash no longer matches. [RAVEN](/docs/raven) explains how the hash is made.

## What it does not prove

Attestation speaks for what runs on the node. It does not say the program is correct for your purpose; that is what verification against the native toolchain and your own tests are for. It also can't vouch for anything outside the build, such as the inputs a caller sends it.

Where a server has no hardware root of trust, the node still reports what it runs, but that report rests on the Atra OS install alone.

## Why Atra OS is installed, not imaged

There is no Atra OS ISO or disk image. Atra OS is installed onto your server through cloud-init or a host integration, and this is what makes hardware-backed attestation possible.

A downloaded image is the same file for everyone. It can't hold anything specific to your server, and whoever handled the image along the way could have changed it. Installing onto the server lets the install bind the node to that server's own hardware root of trust and to your account at the moment it registers. From then on, the node's reports can be checked against the identity it recorded at registration.

## How it connects to audit

`atracode audit <dir>` compares built artifacts against the verified RAVEN hashes of their source. On its own, that tells you a build on your machine matches your source.

Attestation carries that check out to the server. The node reports the RAVEN hash of what it is running, and you can compare it with the hash of the source you verified, the same comparison audit makes locally. Together they cover the path from source to running program:

1. You compile and verify the source, which gives you its RAVEN hash.
2. `atracode audit` confirms the built artifacts match that hash.
3. The node's attestation confirms the same hash is what's running on it.

> **Note:** The way audit reads attestations from your nodes, and the output it prints, will be documented with the CLI at launch.

## Next steps

- [Atra OS](/docs/atra-os): the host and how it is installed
- [Provisioning](/docs/provisioning): register a node and deploy to it
- [RAVEN](/docs/raven): how behavior hashes are made
- [Verification](/docs/verification): how source is checked against the native toolchain
