Self-hosted Supabase stack (Postgres 17 + GoTrue + PostgREST + Realtime +
Storage + Kong) plus a Go admin CLI/API (github.com/samay-app/samay). The Go
layer never touches Postgres — it uses PostgREST via Kong with the
service_role key.
make init→make start— dev/testing (local Docker stack,543xx);make tunnelto expose it.make init ENV=staging|prod— reconcile the env vault profile (Reuse/Re-generate) + clone its VM; thenmake start ENV=staging|prod.make start ENV=staging|prod·make deploy— prod/staging VM + vault (Admin-only, vault passphrase).make test·make test db(pgTAP) ·make test api(curl) ·make check·make secrets|migrate|hooks.make build-cli|build-linux|build-api|build-loadtest·make loadtest [smoke].
The testing feed comes from the single supabase/.env (one .env per
project; supabase/.env.example is the committed template, bootstrapped by
make init). The only testing-time vault fetches are opt-in on the
CLI/shell, honored by start and reset:
FCM=true→tools/<fetch-fcm-secret>.sh(the push worker's FCM key).RC=true→tools/<fetch-rc-secret>.sh(RevenueCat server secrets;RC_ENVselectstesting(default) orstaging).
There is no other edge case. make start ENV=staging|prod is vault-gated
(everything from the vault); testing is not.
<private-ops-repo>/SELFHOSTING.md (compose stack) · BACKEND.md (Go surface) ·
DATABASE.md (schema) · BACKEND-SERVER-VM.md (VM) · DEPLOYMENT-PLACEHOLDER.md.
Samay is released under the GNU Affero General Public License, version 3
(AGPL-3.0). The full text is in LICENSE; third-party components and
disclosures are listed in NOTICE. AGPL-3.0 requires that anyone who
runs a modified version of this software as a network service offers its
corresponding source to the users of that service.