Security
Built to be hard to break
The AEGIS agent audits every build, and the same practices protect this site. Here is what we do, in plain language.
What we do
Practices
Clerk authentication
Sessions, sign-in and user management are delegated to Clerk. Protected routes verify the session on the server.
Zod validation
Every request body is parsed against a Zod schema from contracts.ts. Bad input gets a 400, never reaches the database.
CSP and security headers
Content-Security-Policy, frame-ancestors none, no-sniff and strict referrer policy are set on every response.
Dependency scans
The Dependency Dog runs npm audit in CI. High or critical findings fail the build.
CodeRabbit reviews
Each pull request gets an automated review, then the Reviewer agent checks the definition of done.
Secret hygiene
The Secret Sniffer scans for leaked keys. Only public keys are exposed to the browser.
Config
Example headers
Content-Security-Policy: default-src 'self'; frame-ancestors 'none'
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=()Think like an attacker
Threat model in short
Bad input
Mitigated by Zod schemas and parameterised queries through Drizzle.
Stolen access
Mitigated by Clerk sessions, role checks and short-lived tokens.
Vulnerable packages
Mitigated by audits in CI and a small dependency list.
Responsible disclosure
Report an issue
Found something? Open a private security advisory on the repository with steps to reproduce. This is a demo project, so there is no bounty, but reports are welcome and credited.
Links
Related
See the crew work on your own brief
Open the live dashboard, describe a SaaS idea and watch eight agents build it.