SOC 2 Type II Compliance
Collect SOC 2 control evidence from the running deployment and mark untested criteria as open rather than asserting them.
Admin guide · compliance evidence runbook
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| An audit request, a trust questionnaire | Deployment access, dated run record | Collect evidence per criterion | Every criterion has evidence or an open note | Restore any changed setting from snapshot |
When to use
Use this runbook to answer a Trust Services Criteria question with evidence. This page does not certify an audit and does not create a control.
Before you start
- Evidence comes from the source, the containers and the public host. Store it under
/tmp; never put a credential or internal address in a record. - Security rules come from the repository
AGENTS.md; rate limits are 100 / 10 / 50 req/s and headers are the six IMP-09 values. - Access control is directory-backed; RBAC roles and groups are resolved in the RBAC tables.
- Compliance requirements is the broader checklist; security matrix maps controls to code.
Trust Services Criteria evidence
| Category | Evidence source | Status rule |
|---|---|---|
| Security | RBAC tables, headers, cargo audit |
evidenced by command output |
| Availability | health probes, snapshots, SLOs | evidenced by a dated window |
| Processing integrity | rate limits, error sanitisation, tests | evidenced by probe and source |
| Confidentiality | Vault paths, scoped storage keys | evidenced by configuration and probe |
| Privacy | tenant scoping and folder permissions | evidenced by cross-tenant refusal |
Steps
# 1. Snapshot before any change.
sudo incus snapshot create tables pre-audit-$(date +%Y%m%d%H%M%S)
# 2. Collect security and availability evidence.
curl -sI https://docs.generalbots.org/ > /tmp/soc2-headers.txt
curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8080/health
sudo incus list --format csv > /tmp/soc2-inventory.txt
cargo audit > /tmp/soc2-audit.txt
# 3. Check RBAC and tenant scoping with a test identity.
psql -h localhost -U postgres -d botserver -c \
"SELECT user_id, group_name FROM rbac_user_groups WHERE user_id = '<user-id>';"
Verify
| Check | Command / surface | Pass condition |
|---|---|---|
| Headers | /tmp/soc2-headers.txt |
six IMP-09 headers present |
| Health | /health |
200 |
| Inventory | /tmp/soc2-inventory.txt |
expected containers up |
| Audit | /tmp/soc2-audit.txt |
no unpatched critical advisory |
| Access | RBAC query plus probe | least privilege observed |
| Recovery | snapshot list and restore drill | pre-change snapshot exists |
Roll back
🔴 Restore any changed setting from the snapshot, re-run the table, and keep the dated evidence. A failed criterion stays open in the review; it is not closed by a later passing probe without an explanation.