Authorizations, scope, and windows
The signed scope grant that gates every action: what it carries, how you issue and revoke it, and why default-deny lives at one choke-point.
Authorization in Assay is ownership, not paperwork. You run it on infrastructure you own and point it at assets you own, so you are already authorized. Assay never requires, requests, or verifies an external permission document, and could not verify one if you supplied it. The one gate the engine enforces is the signed grant below.
The grant
A grant is you declaring, for one engagement, which of your own targets may be touched. It is signed with Ed25519 and carries:
- Scope: the exact targets, CIDRs, or asset ids that may be tested. A deny rule beats any include. Anything outside is refused.
- Allowed safety classes:
passiveand/oractive-safeby default;active-intrusiveneeds the two-person rule and a licensed build. - A time window: a start and expiry; outside the window is refused.
- Rate ceilings: how fast and how parallel testing may go, which you can only ever make stricter.
- Requester and approver identity, and an expiry. Issue, amend, and revoke are all hash-chain audited.
Issue, amend, revoke
cbctl assay auth grant --scope domain=acme.example.com --scope cidr=203.0.113.0/24 \
--class passive --class active-safe \
--not-before 2026-08-01T09:00:00Z --not-after 2026-08-08T17:00:00Z \
--max-rate 30/m --max-concurrency 4
cbctl assay auth list # what is authorized right now
cbctl assay auth grant --grant-id <id> ... # amend: tighten or extend an existing grant
cbctl assay auth revoke <grant-id> --reason "<why>" # immediate; in-flight work stopsThe same surface is on the API (POST /v1/grants, GET /v1/grants, POST /v1/grants/{id}/revoke) and in the console. The tenant and requester come from your credential, never a flag.
Default-deny at one choke-point
Every action funnels through a single engine choke-point, and the absence of a valid, in-scope, in-window grant is a refusal plus an audit entry: not a warning, not a soft block. This is never bypassable and never sold: the enforcement is free-tier and stays there. The grant bounds your own testing; it never establishes a right to test that ownership does not already give you.