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.