docs
WEBCAT
Make the static UI verifiable and bind it to the canary.
WEBCAT verifies that the static HTML/JS/CSS a reader runs matches a signed manifest. Serinus commits the manifest hash inside the canary’s ui block.
Rules
- Static SPA only; no server-rendered HTML.
- External JS/CSS from the same origin; no inline scripts, no
eval, no nonces. - Strict CSP; no
unsafe-inline. - Every servable HTML/JS/CSS file is listed by SHA-256.
- The browser verifier is rebuilt from source before signing.
Pipeline
cd web
npm ci --ignore-scripts
npm run build:verify
WEBCAT_CLI_VERSION=… WEBCAT_POLICY=… WEBCAT_SIGNER=… \
./scripts/gen_manifest.sh
Publish /.well-known/webcat/ and enroll at https://enroll.webcat.tech. Re-sign at least monthly and on every release. Use a dedicated WEBCAT key, separate from the Serinus root.
Canary binding
After enrollment, the next statement’s ui block should contain the manifest hash, version, enrollment hash, dist hash, and CID. That lets a reader tie “the code I am running” to “the canary I am reading”.