Skip to content

Security Matrix Reference 🟑 BETA

Use this matrix to find the code that enforces a control, then verify the control on the running service.

Admin guide Β· control map runbook

When to use Before you start Steps Verify Roll back
Auditing a control, reviewing a PR Source checkout, running server Find the consumer, probe the route Control enforced, not only declared Restore prior source or config

When to use

Use this runbook when someone asks "where is this enforced?" and a page title is not an acceptable answer.

Before you start

  • The endpoint checklist covers a single handler; the permissions matrix defines the model; RBAC design explains the structure.
  • Source grep is evidence of code presence, not of enforcement. A guard must have a caller that branches on its result.
  • The running service is the final evidence: a header, a refusal or a rate-limit response.

RBAC tables

Roles, groups and memberships live in the RBAC tables; the resolver derives the effective set. Read the tables before assigning a role.

How a role is resolved

The acting identity comes from the directory service, group membership maps to roles, and permissions are resolved from roles. A client-supplied role value is never authoritative.

Where the checks happen

Layer Mechanism Evidence
API gateway route-level RBAC, default deny generated route reference
Handler org_id / branch_id predicate source grep plus probe
KB search folder permissions and verified owner search as a restricted user
Tool execution session-associated tools tool call probe
Browser botbrowserpolicy budget one-task probe

Rate limits

Defaults are 100 req/s general, 10 req/s auth and 50 req/s API per token, with WebSocket message limits, implemented with governor.

Data-handling rules that are enforced in code

Errors are sanitised with log_and_sanitize, identifiers with sql_guard, and process execution uses SafeCommand. Secrets are read from Vault, never from a file in the repository.

Steps

# 1. Find the consumer of the control; presence alone is not enforcement.
grep -RIn "<control-name>" botserver/src botserver/crates --include='*.rs' | head -30

# 2. Probe the running service for the observable effect (header, refusal,
#    rate-limit response).
curl -sI http://localhost:8080/health

Verify

Check Command / surface Pass condition
Headers curl -sI http://localhost:8080/health all six IMP-09 headers
Rate limit repeated requests to a limited route 429 at the documented limit
Scope cross-tenant probe refused
Errors forced server error generic message, detail only in log
Audit cargo audit no unpatched critical advisory

Roll back

πŸ”΄ Revert the source or configuration change and redeploy with the deploy runbook, then re-run the table.