Expand description
Bot registries for apps: a signed catalog, a history file and a .zbot package, checked as
the registry’s own browser verifier (zaun-registry-wasm) checks them.
An app pins one key per registry it trusts. verify_catalog picks the pinned key whose
id the catalog names (a hint only; the signature decides) and gives the registry’s report,
plus the verified catalog itself so the app reads package URLs, digests and permissions
from what was verified. Failures are reports, never panics or errors.
Structs§
- Catalog
Check verify_catalog’s answer: the registry’s report and, whenok, the verified catalog.- Catalog
Report - The result of
verifyCatalog. Whenokis false, onlyerrorsis meaningful. Whenokis true butinstallableis false, the catalog has expired: show it with a warning, apply its advisories, yanks and revoked keys, and never install or update from it (errorsthen holdsE-CATALOG-EXPIRED). - Error
Report - One finding:
{code, message, hint, severity}. - History
Check verify_history’s answer: the registry’s report and, whenok, the verified history.- History
Report - The result of
verifyHistory. Whenokis false, onlyerrorsis meaningful. - Identity
- What a package’s header says about itself. Shown as fact only once the signature verifies; otherwise it is only what the file claims.
- Inspection
- The result of
inspectPackage. Fields the file does not yield arenull. - KeyId
Report key_id’s answer.- Seen
Input - What a caller stored for a registry after an earlier success:
{serial, sha3}.
Functions§
- inspect_
package - What a
.zbotfile says, whether its signature verifies and whether it passes the registry’s package checks. - key_id
- The id of a base64url public key: what a bot card’s
source.registry_idis compared with. - verify_
catalog - Verifies
catalog.jsonbytes and the text ofcatalog.json.sigagainst the key ofpinned(base64url public keys) that the catalog names, at Unix timenow(seconds), afterseen(theseenan earlier success returned for that registry, as JSON). - verify_
history - Verifies the catalog as
verify_catalogdoes (no stored serial), thenhistory/<app_id>.jsonagainst the hash the verified catalog lists for it.