Backant Backant ← Backant documentation

Security Architecture, Threat Model & Disclosure Policy

Concrete technical documentation of how Backant protects credentials, isolates customer environments, encrypts secrets, and transparently tracks pre-GA security boundaries.

1. Infrastructure & Encryption

Control Current Implementation
Transport Security Automatic HTTPS/TLS via Caddy edge proxy with Strict-Transport-Security (1-year HSTS with includeSubDomains; preload), X-Content-Type-Options: nosniff, and Referrer-Policy: strict-origin-when-cross-origin.
Secrets & Account Vault Project environment secrets and BYOP API keys are encrypted at rest with AES-256 using per-environment encryption keys. Supports Tier-1 Host-side header injection ($secret:KEY via declarative secretBindings over HTTPS with strict host matching and redirect stripping) as well as explicit least-privilege ctx.secrets scoping in static AST config.ts manifests.
Host Egress, Query & Quota Guards Central outbound Egress Guard (ipaddr.js canonical unicast validation, multi-record fail-closed DNS pinning with preserved TLS SNI, cross-origin credential stripping, and dual 25 MB wire + decompressed anti-bomb stream caps), unified ModelQueryPolicy (11 CRUD methods, PCRE2+RE2 ReDoS-safe regex subset, bounded limits, and AbortSignal/maxTimeMS cancellation), and pre-operation DB/HTTP/Job quotas with active + bounded admission queue leases.
CLI & Desktop Auth OAuth 2.1 + PKCE (S256) browser consent flow. Credentials are stored in macOS Keychain (or OS credential store) and isolated across Cloud, Staging, and Local targets with per-project account pinning (.bestudio/targets.json).
Application Auth Isolation End-user application auth (/{serverId}/{env}/auth/*) uses a strictly separate JWT/session domain from platform developer accounts. Supports TOTP MFA, recovery codes, OAuth (Google/GitHub), and organization-scoped RBAC.
Database & Queue Isolation Separate MongoDB 7 databases and separate Redis/BullMQ instances for staging vs. production. All customer records and R2 asset keys (tenants/.../assets/...) are scoped by serverId and env.
PDF Sidecar Isolation Built-in HTML → PDF rendering (ctx.services.pdf.render) runs in a stateless Gotenberg container on a backend-only internal Docker network with no host port, JS disabled, public https:// assets only, and strict size/time caps (2 MB HTML, 25 MB PDF, 30s).

2. Current Runtime Threat Model (Transparent Pre-GA Boundaries)

Honest Disclosure: Customer Action handlers currently execute inside a Node.js vm2 sandbox within the backend runtime. Because vm2 is not a kernel or hardware boundary against adversarial untrusted code, Backant Cloud Studio currently operates as an Invite-Only Early Access platform intended for trusted workspace code.

3. Data Ownership, Retention & Deletion

4. Vulnerability Disclosure Policy (VDP)

If you discover a security vulnerability in Backant Cloud, backant-cli, @backant-app/auth-sdk, @backant-app/live-sdk, or Backant Desktop, please report it privately rather than opening a public issue:

We commit to acknowledging good-faith security reports within 48 hours, keeping reporters updated during remediation, and not taking legal action against researchers who follow responsible disclosure and avoid accessing or modifying other users' data.