Security here means baseline hygiene the scaffold encodes—not a certification.
Loading diagram…
Input and API
- tRPC procedures use Zod (or shared validators) at boundaries
- Prefer policy checks for authorization—not “security by obscurity” routes
- Keep server-only code out of client bundles via package exports
Secrets and env
.env.examplelists required keys;serverEnvvalidates at boot inpackages/backend-common- Never commit
.envwith production secrets - Rotate
BETTER_AUTH_SECRETif leaked
Transport
- Production: HTTPS everywhere; align
FRONTEND_URLandBETTER_AUTH_URLwith real origins - CORS is configured on the API for the web origin—update when adding staging domains
Dependencies
- Run your package manager’s audit in CI (
bun run ciincludes lint/typecheck; add audit if your team requires it) - Pin catalogs via workspace catalog files when using Bun/pnpm
Agents
Generated repos include agent maps—not extra attack surface, but do not paste production secrets into agent chats. Use .env locally and platform secret stores in deploy hosts.
Reporting
This is a personal/template project. For production apps you ship, follow your own disclosure process.