8000 Overview · Mooka-Mooka/quilla · GitHub
[go: up one dir, main page]

Skip to content

Security: Mooka-Mooka/quilla

Security

docs/security.md

Security and local-demo boundaries

Quilla is intended to run on localhost with fictional data. It has not been audited or certified for real insurance, regulated records or public hosting.

Implemented protections

  • Better Auth email/password sessions, HTTP-only cookies and server-resolved roles.
  • Every application read/write scoped to the authenticated workspace and customer ownership where applicable.
  • Owner-only brand/template publication, staff-only internal notes and activation.
  • SQL parameters, composite foreign keys, immutable history and atomic acceptance.
  • Schema validation for templates and input; no executable template expressions.
  • Private attachment download after case authorization, forced attachment disposition and nosniff.
  • Bounded uploads and basic file-signature checks. These are not antivirus scanning or comprehensive content validation.
  • Separate local auth and business databases. Generated local secret and ignored .data/ folder.
  • Optional AI receives only the explicitly submitted document and base template after consent; no tools or automatic publication.

Before any public deployment

Replace the known demo accounts and simulated payment adapter, configure real origin/secret/session settings, email verification and recovery, external storage/scanning, durable database migrations/backups, rate/size limits at the edge, observability and appropriate operational review. Reassess tenant provisioning, authorization, privacy and legal requirements for the chosen business. None of those deployment capabilities is claimed by this demo.

Keep the server stopped during pnpm db:reset. Reset is intentionally destructive to local fictional records. Use synthetic records only.

Local proof endpoint

POST /api/proof runs five fixed scenarios with temporary databases and real temporary auth sessions. It uses the same actor resolver and command dispatcher as the application, an independent read connection for observations, and an injected local payment failure. It never imports the ordinary database or auth singleton. Negative controls live only in tests.

The route checks an exact loopback Host/Origin pair; the actual network boundary is the launcher's loopback-only bind. Origin can be spoofed by non-browser clients and is not authentication. Do not expose this unauthenticated CPU/file-creating endpoint on a public interface. A production adapter must disable it or add explicit owner authorization and deployment-level limits.

One run per process is permitted. The 60-second deadline is cooperative, not a hard interruption of synchronous work. Normal completion and handled errors close the handles and remove only that run's temporary directory. Abrupt termination can leave quilla-proof-* directories in the OS temporary folder; no shared-directory sweeper runs. A never-resolving dependency could retain the busy flag until restart. These are local harness limitations, not claims about production recovery.

There aren't any published security advisories

0