English
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
| Name | Description | |
|---|---|---|
path | required | A chart folder, an archive of alta package, or an index.json (then its index.json.sig is checked). |
Options
| Name | Type | Default | Description |
|---|---|---|---|
--attestation | string | Default: <id>-<version>.publish.intoto.json next to it, or here | The attestation file (a DSSE envelope). |
--key | string | A file holding the Ed25519 public key to trust (32 bytes in base64, or a PEM "PUBLIC KEY"). | |
--repo | string | Trust the keys a repository added here gives: its publishers' keys (a revoked key is refused) and the key given to alta repo add. | |
--json | flag | Print the result (alta.verify/1) as JSON. |
Exit codes
| Name | Description |
|---|---|
0 | ok |
1 | problems found |
2 | bad usage |
3 | not in this version |
Examples
Check a chart against its publisher's key
Terminal
sh
alta verify reading-log --key quiet-lab.pubReaches 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 communityReaches the repository's address (the only commands that use the network): it prints what it fetched and checked.