You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/ix-an/main.go
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,8 @@ func verifyCmd(args []string) {
50
50
strictHashes:=fs.Bool("strict-hashes", false, "fail if parameters_hash/output_hash are placeholders or missing")
51
51
strictSig:=fs.Bool("strict-signature", false, "fail if signature is missing/placeholder or public key can't be resolved")
52
52
strictApprovals:=fs.Bool("strict-approvals", false, "fail if any approval is missing a valid signature")
53
-
pubKeyPath:=fs.String("pubkey", "", "optional path to an ed25519 public key (base64url). Overrides key lookup by key_id.")
53
+
pubKeyPath:=fs.String("pubkey", "", "optional exact path to an ed25519 public key file (base64url). Highest-precedence lookup.")
54
+
pubKeyDir:=fs.String("pubkey-dir", "", "optional directory containing <key_id>.pub. If unset, lookup defaults to keys/ then keys/dev/ relative to cwd.")
54
55
strictChain:=fs.Bool("strict-chain", false, "verify parent_receipt_id chain (loads parent receipts from --chain-dir or receipt directory). Implies strict hashes+signature for the leaf.")
55
56
chainDir:=fs.String("chain-dir", "", "directory to search for parent receipts (default: directory containing the receipt)")
schemaPath:=fs.String("schema", "", "path to receipt JSON Schema (default: spec/receipt.schema.json)")
128
-
pubKeyPath:=fs.String("pubkey", "", "optional path to an ed25519 public key (base64url). Overrides key lookup by key_id.")
130
+
pubKeyPath:=fs.String("pubkey", "", "optional exact path to an ed25519 public key file (base64url). Highest-precedence lookup.")
131
+
pubKeyDir:=fs.String("pubkey-dir", "", "optional directory containing <key_id>.pub. If unset, lookup defaults to keys/ then keys/dev/ relative to cwd.")
129
132
strictApprovals:=fs.Bool("strict-approvals", false, "fail if any approval is missing a valid signature")
130
133
strictChain:=fs.Bool("strict-chain", true, "verify parent_receipt_id linkage for all receipts found (default: true)")
schemaPath:=fs.String("schema", "", "path to receipt JSON Schema (default: spec/receipt.schema.json)")
322
-
pubKeyPath:=fs.String("pubkey", "", "optional path to an ed25519 public key (base64url). Overrides key lookup by key_id.")
326
+
pubKeyPath:=fs.String("pubkey", "", "optional exact path to an ed25519 public key file (base64url). Highest-precedence lookup.")
327
+
pubKeyDir:=fs.String("pubkey-dir", "", "optional directory containing <key_id>.pub. If unset, lookup defaults to keys/ then keys/dev/ relative to cwd.")
323
328
strictApprovals:=fs.Bool("strict-approvals", false, "fail if any approval is missing a valid signature (before ingest)")
schemaPath:=fs.String("schema", "", "path to receipt JSON Schema (default: spec/receipt.schema.json)")
370
-
pubKeyPath:=fs.String("pubkey", "", "optional path to an ed25519 public key (base64url). Overrides key lookup by key_id.")
375
+
pubKeyPath:=fs.String("pubkey", "", "optional exact path to an ed25519 public key file (base64url). Highest-precedence lookup.")
376
+
pubKeyDir:=fs.String("pubkey-dir", "", "optional directory containing <key_id>.pub. If unset, lookup defaults to keys/ then keys/dev/ relative to cwd.")
371
377
strictChain:=fs.Bool("strict-chain", true, "verify parent_receipt_id linkage within the log (default: true)")
372
378
strictApprovals:=fs.Bool("strict-approvals", false, "fail if any approval is missing a valid signature")
0 commit comments