feat: multi-tenancy, login, per-org SSO and i18n (M2) #46

Merged
Sebi merged 22 commits from feat/m2-tenancy into main 2026-11-21 23:44:17 +00:00
2 changed files with 12 additions and 5 deletions
Showing only changes of commit c615c21af1 - Show all commits

No files matched your search

+5 -5
View File
@@ -4,13 +4,13 @@ services:
timescaledb:
image: timescale/timescaledb:2.30.1-pg16
environment:
POSTGRES_USER: uptime
POSTGRES_PASSWORD: uptime
POSTGRES_DB: uptime
POSTGRES_PASSWORD: postgres
ports: ["5432:5432"]
volumes: [pgdata:/var/lib/postgresql/data]
volumes:
- pgdata:/var/lib/postgresql/data
- ./deploy/dev/postgres-init.sql:/docker-entrypoint-initdb.d/10-uptime.sql:ro
healthcheck:
test: ["CMD", "pg_isready", "-U", "uptime"]
test: ["CMD", "pg_isready", "-U", "uptime", "-d", "uptime"]
interval: 2s
retries: 30
+7
View File
@@ -0,0 +1,7 @@
-- Superusers bypass row-level security even with FORCE, so the application
-- must connect as an ordinary role for tenant isolation to be enforced.
CREATE ROLE uptime LOGIN PASSWORD 'uptime';
CREATE DATABASE uptime OWNER uptime;
\connect uptime
CREATE EXTENSION IF NOT EXISTS timescaledb;
CREATE EXTENSION IF NOT EXISTS citext;