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.
- Pre-GA Sandbox Hardening: Host-side egress, query, quota, and static AST config hardening (Phase 1) is live; migrating customer handler execution from in-process
vm2to a dedicated untrusted isolate runner container +gVisorkernel boundary (Phases 2–5) is the active milestone before open public GA, where all data access, authorization, resource enforcement, and external service operations remain controlled by the trusted platform host. - macOS Binary Signing: Preview macOS DMG builds are not yet notarized with an Apple Developer ID (tracked as a pre-GA milestone; see Roadmap).
- Independent Audits & Certifications: Backant does not yet hold SOC 2 Type II or ISO 27001 certification and has not yet published a third-party penetration test report. These are explicitly tracked on the pre-GA / GA readiness roadmap rather than implied.
3. Data Ownership, Retention & Deletion
- Definitions vs. Live Data: Snapshot rollbacks restore project definitions (schemas, routes, actions, flows, jobs, auth config) without silently mutating or deleting live
modelDatarecords, application users, or R2 assets. - Deletion: Deleting assets via
auth.storage.delete()orbackant storageremoves both the Cloudflare R2 object and its metadata record. Deleting a server environment removes its scoped records and configuration. - Portability: Definitions live as plain TypeScript/JSON (
schemaVersion: 2) in your Git repo. Contract v2 constrains runtime APIs to standard Express/Zod/MongoDB/BullMQ/S3 primitives so standalone export requires no proprietary runtime emulator.
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:
- GitHub Security Advisories (preferred): Report a vulnerability on GitHub
- Email: security@backant.app
- Machine-readable policy: https://backant.app/.well-known/security.txt
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.