Français
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.
Les descriptions et les sorties sont en anglais, comme la CLI.
Usage
text
alta verify <chart folder | archive | index.json> [--attestation <file>] [--key <public key file> | --repo <name>] [--json]Arguments
| Nom | Description | |
|---|---|---|
path | requis | A chart folder, an archive of alta package, or an index.json (then its index.json.sig is checked). |
Options
| Nom | Type | Défaut | Description |
|---|---|---|---|
--attestation | string | Défaut: <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. |
Codes de sortie
| Nom | Description |
|---|---|
0 | ok |
1 | problèmes trouvés |
2 | mauvais usage |
3 | pas dans cette version |
Exemples
Check a chart against its publisher's key
Terminal
sh
alta verify reading-log --key quiet-lab.pubContacte l'adresse du dépôt (les seules commandes qui utilisent le réseau) : affiche ce qu'elle a récupéré et vérifié.
Against the keys of a repository added here
Terminal
sh
alta verify reading-log-0.2.0.alta.tar --repo communityContacte l'adresse du dépôt (les seules commandes qui utilisent le réseau) : affiche ce qu'elle a récupéré et vérifié.