Skip to content

Security

Security you can read.

How the platform isolates generated code, protects secrets, and handles accounts. This page describes what is implemented in the codebase today; it is not a certification and we do not hold any third-party attestations yet.

Stated first

No third-party certifications yet

Codexa has not completed SOC 2, ISO 27001, HIPAA, PCI DSS or any other third-party audit, and has not had a third-party penetration test. This page describes the controls in the code so you can assess them yourself.

Ask for our security questionnaire answers

01Request path

Where a request goes,
and where code runs.

The web app, the database, storage and each project’s sandbox are separate pieces. Generated code only ever runs in the sandbox, behind a preview proxy on its own origin.

Diagram of the request path as implemented. The app and its API run in a Cloudflare Worker; each project gets a ProjectSandbox Durable Object that starts its own Container on demand. Previews are served from a separate origin. Secrets are encrypted with encryptSecret before they are stored in D1. Select a box to read the section that explains it.

02Controls

Six controls,
and where they live.

Each one names the part of the codebase that implements it, so a reviewer can read the code rather than take our word.

  • One container per project

    On Cloudflare each project gets its own ProjectSandbox Durable Object and Container, started on demand and stopped after 30 minutes without requests. Commands run as an unprivileged user.

    worker/sandbox.ts

  • Encrypted secrets

    Environment variables and integration credentials are encrypted with AES-256-GCM under an operator-held key before storage, and never returned to the browser.

    src/lib/crypto.ts · encryptSecret

  • Hashed session tokens

    Sessions are httpOnly, SameSite cookies. The database stores an HMAC-SHA-256 of the token, so a database read alone cannot be replayed as a session.

    src/lib/auth/session.ts

  • Hashed passwords

    Passwords are hashed with scrypt and never stored or logged in plain text. Verification and reset links are single-use and expire.

    src/lib/auth

  • Rate limits and quotas

    Sign-in, sign-up, password reset, AI runs and public forms are rate limited in D1, shared by every Worker instance. Plan limits are enforced on the server.

    src/lib/rate-limit.ts

  • Audit log

    Sign-ins, role changes, invitations, integrations, deployments and admin actions are recorded with the acting user, workspace and time.

    audit_logs table

Sandboxing and runtime isolation

Projects run in a separate runner service, never inside the web application. On Cloudflare, each project gets its own ProjectSandbox Durable Object, which starts that project's own Container on demand and stops it after 30 minutes without requests; inside it, the runner executes commands as an unprivileged user. Self-hosted runners use the namespace driver instead: an unprivileged Linux user in its own user, PID and mount namespaces, with cgroup memory and process limits and a wall-clock timeout.

Only allowlisted commands (install, build, test, type-check, start) can be executed; there is no arbitrary shell endpoint. Operators can choose Docker or E2B drivers. Previews are served through a host-based proxy on a separate origin, so a running project is never on the same origin as the Codexa application.

Secrets and encryption

Project environment variables and workspace integration credentials are encrypted with an operator-held key before storage, by encryptSecret, and decrypted only on the server when injected into a sandbox or used to call a provider. The UI shows masked values and the API never returns plaintext secrets.

Transport encryption (TLS) is the responsibility of the operator's deployment; the application sets secure cookie attributes when served over HTTPS.

Accounts and sessions

  • Passwords are hashed with a modern password hashing function; plaintext passwords are never stored or logged.
  • Email verification and password reset use single-use, expiring tokens.
  • Sessions are httpOnly, SameSite cookies named __Host-codexa_session (the __Host- prefix stops other subdomains from setting it); the stored session token is a hash, so a database read alone cannot be used to hijack a session.
  • GitHub sign-in is available only when the operator configures OAuth; the OAuth state is checked on callback.
  • Workspace roles (owner, admin, editor, viewer) are enforced on the server for every API route.

Rate limiting and abuse controls

Login, signup, password reset, AI generation, and public forms are rate limited per IP or per workspace using a fixed-window limiter stored in the database (Cloudflare D1), shared by every Worker instance. Usage limits (AI requests and tokens, runtime minutes, deployments, storage) are enforced server-side per workspace. Abuse reports can be filed through support and are handled in the staff admin area.

Audit logs

Sign-ins, role changes, invitations, integration changes, deployments, and administrative actions are recorded with the acting user, workspace, and timestamp. Enterprise customers can request an export.

Responsible disclosure

If you find a vulnerability, please report it through the vulnerability reporting form or email security@codexa.app. We do not run a paid bounty programme at this time. See the responsible disclosure policy for scope and what to expect.

Shared responsibility

Codexa secures the platform. You are responsible for the code you deploy, the data you put into it, the secrets you add, and for assessing whether a deployment meets your regulatory obligations. We make no compliance claims on your behalf.

Questions about security?

We answer security questionnaires for Team and Enterprise customers.

Or email sales@codexa.app