StitchFlow holds atelier tenants, patron measurements, orders, and order balances. Treat every tenant boundary and every balance as production-critical.
| Version | Supported |
|---|---|
main (pre-1.0) |
Yes, active development |
| Tags older than the latest release | No |
Do not open a public issue for a suspected vulnerability. Report it privately to the repository
owner (@dmuhoro) through GitHub's private vulnerability reporting. Include:
- the affected table, policy, or file,
- the exact request or SQL that demonstrates the issue,
- the expected versus observed result.
You will receive an acknowledgement within 72 hours. Please do not include live credentials, patron data, or a working exploit against a live atelier in the report.
- Authentication: Supabase Auth. Browser sessions use the publishable key only.
- Authorization: Postgres Row Level Security on every tenant table. Direct
auth.uid()predicates with narrowly scopedSECURITY DEFINERhelpers whosesearch_pathis pinned. - Tenant boundary:
atelier_idon every tenant row. Cross-tenant access is denied by policy and proven by the 12-scenariosupabase/tests/rls_isolation_test.sql(gates 1–7). - Money: balances live in
order_financials. Owners manage them; a patron may read the balance on their own order only; artisans never read the table. - Anonymous surface: public atelier profile and published lookbook are readable. Anonymous
visitors may create a
pending, account-less appointment request only. - Secrets: no service-role key in the browser. See
.env.examplefor the permitted variables.
These are tracked in docs/release-readiness.md. A launch is blocked
while any P0 gate is open, including:
- demo PIN authentication still reachable in a production build,
- unverified Supabase project access,
- unproven deployment authorization.
Run npm run audit before a release. A high or critical advisory blocks the tag unless it is
documented as unreachable with a cited reason.