Data handling
Commitment Desk Inbox stores the minimum needed to receive, review, and audit a field record. Use synthetic data in the repository, tests, demos, and screenshots. Never commit real taxpayer, parcel, owner, client, or prospect information.
What is stored
Section titled “What is stored”| Data | Location | Notes |
|---|---|---|
| Tenant, user, API-key metadata | Metadata database | API keys store a prefix and SHA-256 hash, not the raw key |
| Magic-link and session tokens | Metadata database | Only token hashes are stored |
| Towns and parcels | Metadata database | Tenant-scoped reference data |
| Capture envelope | Metadata database | JSON payload plus searchable submitted map/lot, address, and permit number |
| Attachment metadata | Metadata database | Storage key, SHA-256, MIME type, size, scan status, kind |
| Attachment bytes | Object store | Tenant-scoped keys; no execution path |
| Audit events | Metadata database | Append-only through the API; retained on deletion |
| Webhook endpoints | Metadata database | URL, subscribed events, signing secret |
| Webhook deliveries | Metadata database | Payload, attempts, response status, last error |
| Retention settings | Metadata database | Capture and unconsumed-upload ages |
What must not be stored or logged
Section titled “What must not be stored or logged”- Real taxpayer identifiers, owner names, or parcel records in the repository or demo data.
- Raw API keys after creation, raw magic-link tokens, raw session tokens, or webhook secrets in logs.
- Attachment bytes or full capture payloads in application logs.
- Private business planning, prospect identities, pricing, or customer-specific runbooks in this repository. See ADR 0014.
Transport and storage
Section titled “Transport and storage”- Use HTTPS for the API, web app, webhook endpoints, and object storage.
- Hosted deployments terminate TLS at Cloudflare and use R2/D1 encryption at rest.
- Self-host deployments must enable database and bucket encryption, restrict network access, and protect environment secrets.
- Scope object-store credentials to the attachment bucket; do not reuse administrative credentials.
- Keep request and response bodies out of proxy logs where practical.
Retention and deletion
Section titled “Retention and deletion”Retention is configured per tenant. A retention pass soft-deletes terminal captures older than the configured age and removes their evidence objects. Administrators can delete a capture explicitly. Audit events remain so the record of submission and review is not silently rewritten. See retention and deletion.
Backups
Section titled “Backups”Backups contain the same sensitive data as the live service. Encrypt them, restrict access, apply the same retention policy, and test restores. See backup and restore.
Malware scanning
Section titled “Malware scanning”Every upload passes through the scanner port before storage. Configure an HTTP scanner in production. The default no-op scanner is suitable only for synthetic local development. An infected result is rejected and nothing is stored.
Logging and audit
Section titled “Logging and audit”- Audit events capture actor, action, status transition, reason, and timestamp for capture work.
- Operational logs should include tenant and request identifiers, not payload contents.
- Do not log authorization headers, cookies, magic links, or webhook secrets.
Email delivery
Section titled “Email delivery”Magic-link email addresses are account data. The production provider receives the recipient address,
the message, and the single-use link. Cloudflare Email Sending delivers production email: the Worker
uses the keyless send_email binding, and the Node adapter uses a Cloudflare API token scoped to Email
Sending. Keep that token in a secret manager and never log magic-link URLs, raw tokens, API tokens, or
full provider responses.
Organization membership
Section titled “Organization membership”User identities store normalized email and name. Tenant memberships store a role, status, and timestamps for the organization. The membership audit records the tenant, acting user, affected user, action, and role change. Membership lists and audit records are tenant-scoped. Handle email and name as account data in exports and backups.
The synthetic demo uses the same isolation rules as other organizations. Keep demo captures and membership fixtures synthetic.