Skip to content

docs(cloud): deploy hooks page: signed requests, body fields, one audit per burst, caps, CI examples - #1790

Merged
nc9 merged 1 commit into
mainfrom
docs/deploy-hooks-4092
Nov 12, 2026
Merged

nc9 merged 1 commit into
mainfrom
docs/deploy-hooks-4092

Conversation

@nc9

@nc9 nc9 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

A docs page for deploy hooks at /cloud/deploy-hooks, in the Cloud nav after Scheduled audits, with a card on the Cloud overview.

It covers only what is live today:

  • Management: the session-only endpoints for create, read, rotate and delete. Owners and admins only; API keys are refused. The maxCredits and level create fields. The key is shown once.
  • Signing: X-Squirrel-Timestamp and X-Squirrel-Signature: sha256=<hex HMAC-SHA256 of "<ts>.<body>">, a 5 minute window, a 4 KB UTF-8 body.
  • Body fields: level, full, rules (at most 50 entries of up to 100 characters) and max_pages. Unknown fields are a 400, and paths is not supported yet.
  • One audit per 10 minute burst, answered as debounced or starting.
  • Caps and budgets: 12 audits a day, and the per-run budget, which shrinks the audit (creditClamp) before it refuses (cap_exceeded, over_budget, insufficient_credits).
  • Every response status, and examples for shell, GitHub Actions and Cloudflare (wrangler-action).

How it was checked: every claim was read against the hook handler and its signing code, then compared with the endpoint live in prod (an unsigned POST answers 401 missing). The shell signing recipe was checked against the server's own verify function with four bodies (quick, empty, rules plus max_pages, and paths): the signature verified in each case, and paths was refused as an unknown field. No test was sent to a real hook.

Left out on purpose: the dashboard settings card (it lands later) and the always-on budget refusal (always_on_budget), which is not switched on yet.

make validate passes, as does the prose gate (dashes, banned phrases, sentence-case headings). Signed off for DCO.

Agent skill: a follow-up could mention deploy hooks in the squirrelscan skill's cloud reference. No change is needed for this PR.

@nc9
nc9 force-pushed the docs/deploy-hooks-4092 branch from af1b56c to 500e014 Compare November 12, 2026 07:50
@nc9
nc9 marked this pull request as ready for review November 12, 2026 08:43
…ields, one audit per burst, caps and responses, CI examples

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the docs/deploy-hooks-4092 branch from 500e014 to b37c26f Compare November 12, 2026 08:43
@nc9
nc9 merged commit 561d0cc into main Nov 12, 2026
16 checks passed
@nc9
nc9 deleted the docs/deploy-hooks-4092 branch November 12, 2026 08:47
@nc9 nc9 mentioned this pull request Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant