This repository contains the signed policy catalog consumed by Hush. It is intentionally independent from the Hush application so policy edits can be reviewed and released without shipping new binaries.
- definitions/*.json are authored policies.
- definitions/manifest.json and manifest.json.sig are generated release metadata.
- public-key.xml is the verification key pinned by Hush installations.
- public-key.sha256 records the public-key file fingerprint for release review.
The JSON and detached signature bytes are protected by .gitattributes; do not enable line ending conversion for catalog files.
On the offline signing machine, run the pinned Hush tooling:
powershell ..\Hush\tools\Protect-HushManifest.ps1 -DefinitionsDir .\definitions -PrivateKeyPath .\hush-private.xml.dpapi
Commit the generated manifest and detached signature only after ools/Test-HushCatalog.ps1 passes. Never commit the private key.
Catalog CI checks out Hush at the exact SHA recorded in its workflow and validates schema, guardrails, hashes, metadata, and the detached signature against public-key.xml.