Security & Data Handling
DiscoTrace enforces workspace-level isolation, SHA-256 hashed API keys, strict non-escalation guards (403 forbidden_for_api_key), and atomic credit reservations across every REST, MCP, and portal surface.
API key security model
Section titled “API key security model”- Hashed at rest: Plaintext API keys (
dt_live_...anddt_test_...) are shown exactly once at creation and stored exclusively as SHA-256 hashes in D1 alongside a non-secret display prefix. - Single-workspace binding: Every API key is permanently locked to one workspace. Requests cannot read or mutate studies, drafts, traces, or jobs belonging to any other workspace.
- Strict non-escalation allowlist: API keys are permitted only on
/api/v1/*and/mcp. Any attempt to call session-only routes — including team management, share-link creation, billing actions, or minting/revoking other API keys — is rejected withHTTP 403 forbidden_for_api_key. - Granular scopes & expiry: Keys support least-privilege
read,write, andrunscopes, optional expiration (30,90, or365days), instant revocation in Portal → API & MCP, and dedicateddt_test_dry-run keys that cannot deduct live credits.
Credit & spend protection
Section titled “Credit & spend protection”- Deterministic pre-flight quoting: The exact same credit estimator runs before a job is queued and when billing completes; retries and provider errors are absorbed out of margin so
billed_creditsnever exceedsquoted_credits. - Per-key
auto_approve_creditscaps: Any live run whose quote exceeds the key’s threshold automatically pauses inawaiting_approvaluntil a signed-in workspace owner approves it in the portal. - Atomic pending credit reservations: Concurrent API or portal job queues cannot overdraft a workspace’s available balance; credits are reserved atomically before queueing and rolled back atomically if a deduction step fails.
- 24-hour
Idempotency-Keyprotection: RetriedPOST /studiesandPOST /jobsrequests with the sameIdempotency-Keyreplay safely without duplicate runs or double charges.
Portal authentication & sharing
Section titled “Portal authentication & sharing”- Passwordless magic links: Interactive portal sign-in uses single-use, 15-minute magic links that set an
HttpOnly; Secure; SameSite=Laxsession cookie (dt_session). - Role-based workspace access: Team members hold
owner,editor, orviewerroles. Onlyownerandeditorroles can mint or revoke workspace API keys. - Labeled capability links: Share links can be scoped to a specific study or workspace, labeled for stakeholders, and revoked individually without rotating other links.
Data handling & confidentiality
Section titled “Data handling & confidentiality”- Publicly observable buyer runs: Live Discovery sessions query public AI search surfaces with unbranded buyer questions and never expose private internal documents unless you explicitly supply a draft page for a private lab Experiment.
- Private workspaces stay private: Client studies, saved session traces, coded reservations, and Content Center drafts live in private R2 storage behind authenticated Worker routes and are never published to
discotrace.comwithout explicit written approval. - No hidden bot cloaking: DiscoTrace does not install edge proxies or serve bot-only hidden content on client domains.
- Questions or security reports: Email
hello@discotrace.com. See also our Privacy Policy and Terms of Service.