Skip to content

alta verify ​

Recomputes the tree digest, checks it is the one an attestation signed and who signed it (offline); prints the chart's risk level; exit 1 if not verified.

Usage ​

text
alta verify <chart folder | archive | index.json> [--attestation <file>] [--key <public key file> | --repo <name>] [--json]

Arguments ​

NameDescription
pathrequiredA chart folder, an archive of alta package, or an index.json (then its index.json.sig is checked).

Options ​

NameTypeDefaultDescription
--attestationstringDefault: <id>-<version>.publish.intoto.json next to it, or hereThe attestation file (a DSSE envelope).
--keystringA file holding the Ed25519 public key to trust (32 bytes in base64, or a PEM "PUBLIC KEY").
--repostringTrust the keys a repository added here gives: its publishers' keys (a revoked key is refused) and the key given to alta repo add.
--jsonflagPrint the result (alta.verify/1) as JSON.

Exit codes ​

NameDescription
0ok
1problems found
2bad usage
3not in this version

Examples ​

Check a chart against its publisher's key

Terminal
sh
alta verify reading-log --key quiet-lab.pub

Reaches the repository's address (the only commands that use the network): it prints what it fetched and checked.

Against the keys of a repository added here

Terminal
sh
alta verify reading-log-0.2.0.alta.tar --repo community

Reaches the repository's address (the only commands that use the network): it prints what it fetched and checked.

Alta OS is open source (MIT).