Skip to content

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.

  • Hashed at rest: Plaintext API keys (dt_live_... and dt_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 with HTTP 403 forbidden_for_api_key.
  • Granular scopes & expiry: Keys support least-privilege read, write, and run scopes, optional expiration (30, 90, or 365 days), instant revocation in Portal → API & MCP, and dedicated dt_test_ dry-run keys that cannot deduct live credits.
  • 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_credits never exceeds quoted_credits.
  • Per-key auto_approve_credits caps: Any live run whose quote exceeds the key’s threshold automatically pauses in awaiting_approval until 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-Key protection: Retried POST /studies and POST /jobs requests with the same Idempotency-Key replay safely without duplicate runs or double charges.
  • Passwordless magic links: Interactive portal sign-in uses single-use, 15-minute magic links that set an HttpOnly; Secure; SameSite=Lax session cookie (dt_session).
  • Role-based workspace access: Team members hold owner, editor, or viewer roles. Only owner and editor roles 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.
  • 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.com without 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.