MAQPNADocs

maqpna audit anchor

Anchor a ledger checkpoint in a Sigstore Rekor transparency log

Observe-o json | yaml

Synopsis#

maqpna audit anchor FILE --key URI --rekor-url URL [--api v1|v2] [--rekor-key PEM|trusted_root.json] [--record]
maqpna audit anchor --gateway URL                  (the gateway anchors its ledger head now)

Flags#

FlagTypeDescriptionDefault
--allow-gateway-mismatchswitchsend the context's login token to a gateway other than the one it was issued for (env MAQPNA_ALLOW_GATEWAY_MISMATCH=1)none
--anchors-filestringanchor file (default FILE.anchors.jsonl)none
--apistringRekor API: v1 | v2 (v2: ES256 or RS256 keys only)v1
--gatewaystringgateway base URL (env MAQPNA_GATEWAY_URL; default: the context's gateway)none
--keystringthe audit-checkpoint signing key (file path, file:///…, pkcs11:… or kms://…; env MAQPNA_EVIDENCE_KEY)none
--oidc-token-filestringfile holding an OIDC access token for the admin API (env MAQPNA_OIDC_TOKEN_FILE); wins over --tokennone
--recordswitchalso append an audit/anchored record to FILE (only while no gateway writes it)none
--rekor-keystringpinned log public key (PEM or Sigstore trusted_root.json; repeatable): the entry is verified before it is storednone
--rekor-urlstringtransparency log URL (e.g. https://rekor.sigstore.dev, or a private Rekor); publishing is opt-innone
--tokenstringstatic admin token (env MAQPNA_ADMIN_TOKEN; dev/break-glass)none

The global flags (--context, -o, --no-color, ...) work with every command.

What happens when you run it#

  • Talks to the gateway: --gateway, else MAQPNA_GATEWAY_URL, else the current context's gateway (maqpna context).
  • Authenticates to the admin API with the token stored by maqpna login, --oidc-token-file, or a static --token (MAQPNA_ADMIN_TOKEN).
  • Prints a table by default; -o json or -o yaml print the data, and --jq EXPR filters the JSON.

Exit codes#

CodeMeaning
0success
1error (the message says what failed, with a hint when there is one)
2usage error: unknown flag, missing argument or bad value; the synopsis is printed
3a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command)