Skip to main content

Verify a Running App

enclava status tells you what the platform says about an app. Verification tells you what the hardware says. It works for anyone, on any Enclava app, without an account.

enclava describe https://<app-origin> --policy-skeleton policy.json
enclava verify https://<app-origin> --policy policy.json

describe observes. It fetches a fresh proof bundle from the app and prints what the TEE declares, without judging any of it (output abridged):

Enclava proof bundle v1 — observation, not appraisal

Workload
image sha256:…
signer https://github.com/<org>/<repo>/.github/workflows/<workflow>.yml@refs/heads/main (declared by the descriptor)

Platform
runtime kata-qemu-snp
release <platform-release-version>

AMD SEV-SNP
measurement <launch-measurement>
ark sha256 <amd-root-key-hash>

Observed anchors (recorded, not endorsed)
org keyring sha256 <operator-keyring-hash>
policy signing pubkey <platform-policy-key>

With --policy-skeleton it also writes a draft policy holding every observed value.

verify appraises. It fetches a new proof bundle whose SEV-SNP report is bound to a nonce the CLI generates for that run, so nothing recorded earlier can answer it. It then checks every value against a policy you obtained independently of the app. All checks must pass. Anything else exits non-zero.

Author a policy​

The skeleton is trust-on-first-use: every value in it came from the target. Before you rely on it, replace each group with a value from a source the target does not control.

Value in the policyWhere to get it independently
target.originsThe URL you were given, from your own records.
target.image_digests, sigstore.certificate_identity, sigstore.workflow_ref, sigstore.source_repository, sigstore.provenance_builder_idFor a template app, enclava template list --json publishes the image and its signer. Otherwise the project's repository and its CI: the digest the build printed, and the workflow that signed it. Mind the formats: certificate_identity carries the https://github.com/ prefix; workflow_ref is the bare owner/repo/.github/workflows/<wf>.yml@<ref>; source_repository is owner/repo. Mixing them fails supply_chain.signatures.
amd.trusted_ark_sha256, sigstore.fulcio_roots_der_base64, sigstore.fulcio_intermediates_der_base64, sigstore.rekor_spki_der_base64, sigstore.trusted_fulcio_root_sha256Public constants: AMD's published SEV-SNP root certificate and Sigstore's public trust roots.
amd.allowed_measurements, amd.minimum_tcb, target.attestation_proxy_digests, target.caddy_digests, target.platform_release_versions, trusted_policy_signing_pubkeysPlatform values, which differ per environment and change with each platform release. The signed platform release Enclava publishes for each environment is the reference: environments/<env>/base/platform-release.json in enclava-ops-manifests carries the release version, the policy-signing key and the sidecar image digests; the launch measurement and firmware floor come from the platform operator. The enclava-canary repository shows a complete policy shape, but its pins track its own deployment — copy structure from it, never values.
target.organization_ids, target.application_ids, trusted_org_keyring_sha256The operator, over a channel you already trust: their repository or their docs.

Then verify:

enclava verify https://<app-origin> --policy policy.json

A pass means all of the following held for the challenge the CLI issued:

  • The report is signed by AMD hardware, through a certificate chain that ends in the pinned AMD root key.
  • The TEE booted with the pinned launch measurement, at or above the pinned firmware versions.
  • The TLS key your own connection used is inside that report, so the evidence belongs to the server you are talking to.
  • The image is the pinned digest, and its cosign signature and build provenance come from the pinned signer through the pinned Sigstore roots.
  • The deployment is signed under the pinned organization keyring and runs on the pinned platform release.

What a pass does not prove​

  • That the app's code is correct or honest. Verification pins which code runs. Reading it is still your job.
  • Anything about the app's configuration: which upstreams, keys and settings its operator delivered.
  • That the app will keep running. The infrastructure can stop or restart it.
  • Anything after the moment of verification. Each run appraises one fresh challenge. --save-bundle <file> keeps that run's evidence as a historical record, and enclava verify --bundle <file> --policy … re-appraises that record without contacting the app.

When it fails​

Verification fails closed. A policy that pins a different image digest, for example, fails at supply_chain.image_policy with IMAGE_DIGEST_REJECTED and the other checks still run, so you can see what did and did not match. Read the failing check before concluding anything: a failure at the TLS chain alone usually means the app's certificate comes from Let's Encrypt's staging directory, a platform setting.

For operators​

Publish your app's policy where your users can read it. A file in your repository is enough. Put the enclava verify command next to it, on the page where you describe your service.

Run it on a schedule in CI, with --json for a stable result and a failing job on a non-zero exit. A pin that stops matching should be your finding before it is your users'. When you move to a new image or a new platform release, update the policy deliberately, after looking at what changed.