SECURITY
Security posture
How the platform and the Code Smith desktop IDE are built to be safe: the controls below describe what is actually implemented and enforced, not aspirations.
Data minimization
by design - the metering pipeline was built to prove it never needed your code
Fail closed
entitlements, isolation, and agent tools all deny by default
Server-verified
every price, limit, and claim is re-derived server-side
Authentication & sessions
- ▸Passwords hashed with bcrypt (cost 12) - never stored or logged in plaintext
- ▸Opaque session tokens: SHA-256 hashed at rest, httpOnly + Secure + SameSite cookies
- ▸Account lockout after repeated failures; uniform error responses that leak nothing
- ▸Two-factor authentication (TOTP) with enroll/enable/disable lifecycle
- ▸Full session revocation on password reset or account-state change
- ▸Per-session device listing in your dashboard - revoke any session yourself
Application & installation identity
- ▸Code Smith never stores your password - token grant only
- ▸Short-lived JWT access tokens (15 min) + rotating refresh tokens (reused = revoked)
- ▸Every installation gets a revocable identity - inspect, rotate, or kill any device remotely
- ▸Revocation takes effect on the next authenticated call - no propagation window
- ▸Installation limits per plan prevent credential-sharing abuse
Code Smith desktop security
- ▸Sandboxed renderer processes: contextIsolation, sandbox:true, nodeIntegration:false
- ▸Strict Content Security Policy - no eval, no remote script injection
- ▸Provider API keys encrypted via OS credential store (safeStorage), never on our servers
- ▸Agent tools execute inside a path-sandboxed, approval-gated model with command blocklists
- ▸Mutating agent actions park on explicit approval - every run logged to a local audit ledger
- ▸Symlink-aware filesystem containment and workspace-scoped file operations
Tenant isolation
- ▸Organization boundaries enforced in every scoped query - not a UI filter
- ▸Membership + role verified server-side before any org data is returned
- ▸Usage, billing, entitlements, and audit records partitioned by tenant at the data layer
- ▸Zero-trust posture: cross-tenant access fails closed by construction
- ▸Isolation covered by automated tests in the contract suite
Billing & metering integrity
- ▸Stripe Checkout/Portal - card data never touches our servers
- ▸Webhook signatures verified; events idempotent and replay-safe
- ▸Pricing resolved server-side from versioned rules - client-reported amounts ignored
- ▸Integer micro-unit arithmetic end-to-end; no floating-point money
- ▸Usage ingest is idempotent by requestId - duplicates can't double-bill
- ▸Plan allowlists enforced at ingest: off-plan models/providers are rejected, not mispriced
Encryption & data protection
- ▸TLS 1.3 in transit via Cloudflare edge; HSTS and modern cipher suites
- ▸Secrets and tokens stored hashed; safeStorage-encrypted provider keys on the desktop
- ▸Usage records carry measurements - token counts and timing, never code or prompt contents
- ▸Sensitive config fields are write-only over every interface
- ▸Encrypted cloud credentials in DevOps features via per-key storage
Availability & integrity
- ▸Automated backups with SHA-256 integrity sidecars and restore drills
- ▸Signed/dated audit trail for every state-changing admin and org action
- ▸Rate limiting on sensitive routes - signin, registration, token, usage ingest
- ▸Versioned pricing rules - live rules are never edited, only superseded
- ▸Support-channel attachments scanned and access-scoped
Detection & response
- ▸Full audit ledger: auth events, admin actions, usage rejections, org changes
- ▸Failed-auth and abuse signals logged with uniform external responses
- ▸Incident-manager workflows inside the product for operational response
- ▸Public security.txt vulnerability-disclosure contact with 72-hour acknowledgment SLA
- ▸Dependency audit in the build pipeline; security advisories tracked and patched
The desktop-side controls above ship inside the product - see Security & Compliance in Code Smith for the in-IDE surface: vulnerability scanning, secret detection, and the audit log viewer.
Responsible disclosure: see /.well-known/security.txt. Enterprise customers may request the security questionnaire and audit summaries via the support channel. Legal commitments live in our DPA and SLA.