- schemas private/audit, set_updated_at, append-only audit.audit_logs, private.log_event - profiles created by auth.users trigger; own-row RLS; column-level UPDATE grant - platform_role enum (owner/admin/moderator/support), profile_roles history table, is_platform_* helpers, grant/revoke RPCs audited; writes only via RPC - config.toml (public schema only, strong passwords, no edge runtime), local seed - 79 pgTAP checks: allowed and denied paths for every policy
119 lines
2.6 KiB
TOML
119 lines
2.6 KiB
TOML
# Supabase CLI configuration (local stack + self-hosted parity).
|
|
# Generated from `supabase init` (CLI 2.120) and trimmed to what the project
|
|
# needs. Full reference: https://supabase.com/docs/guides/local-development/cli/config
|
|
project_id = "faunosteo"
|
|
|
|
[api]
|
|
enabled = true
|
|
port = 54321
|
|
# Only public is exposed through PostgREST. private and audit stay internal
|
|
# (docs/development/BACKEND_ARCHITECTURE.md §3).
|
|
schemas = ["public"]
|
|
extra_search_path = ["public", "extensions"]
|
|
max_rows = 1000
|
|
|
|
[api.tls]
|
|
enabled = false
|
|
|
|
[db]
|
|
port = 54322
|
|
shadow_port = 54320
|
|
health_timeout = "2m"
|
|
# PostgreSQL 17, same major as the PGlite harness in packages/supabase.
|
|
major_version = 17
|
|
|
|
[db.pooler]
|
|
enabled = false
|
|
|
|
[db.migrations]
|
|
enabled = true
|
|
schema_paths = []
|
|
|
|
[db.seed]
|
|
enabled = true
|
|
# Local development data only (dev accounts + first owner). Never run in prod.
|
|
sql_paths = ["./seed.sql"]
|
|
|
|
[realtime]
|
|
# Not used before the cloud-reports step.
|
|
enabled = false
|
|
|
|
[studio]
|
|
enabled = true
|
|
port = 54323
|
|
api_url = "http://127.0.0.1"
|
|
|
|
# Local mail catcher: confirmation and OTP mails land at http://127.0.0.1:54324
|
|
[local_smtp]
|
|
enabled = true
|
|
port = 54324
|
|
|
|
[storage]
|
|
enabled = true
|
|
file_size_limit = "50MiB"
|
|
|
|
[storage.s3_protocol]
|
|
enabled = false
|
|
|
|
[storage.analytics]
|
|
enabled = false
|
|
|
|
[storage.vector]
|
|
enabled = false
|
|
|
|
[auth]
|
|
enabled = true
|
|
# Vite dev server of apps/app
|
|
site_url = "http://127.0.0.1:5173"
|
|
additional_redirect_urls = ["http://127.0.0.1:5173", "http://localhost:5173"]
|
|
jwt_expiry = 3600
|
|
enable_refresh_token_rotation = true
|
|
refresh_token_reuse_interval = 10
|
|
enable_signup = true
|
|
enable_anonymous_sign_ins = false
|
|
enable_manual_linking = false
|
|
# Security baseline (business architecture §30): strong password policy.
|
|
minimum_password_length = 12
|
|
password_requirements = "lower_upper_letters_digits"
|
|
|
|
[auth.rate_limit]
|
|
email_sent = 2
|
|
sms_sent = 30
|
|
anonymous_users = 30
|
|
token_refresh = 150
|
|
sign_in_sign_ups = 30
|
|
token_verifications = 30
|
|
|
|
[auth.email]
|
|
enable_signup = true
|
|
double_confirm_changes = true
|
|
# Email verification is mandatory before professional features (§30).
|
|
enable_confirmations = true
|
|
secure_password_change = true
|
|
max_frequency = "1m0s"
|
|
otp_length = 6
|
|
otp_expiry = 3600
|
|
|
|
[auth.sms]
|
|
# SMS provider deferred (OPEN_QUESTIONS Q7).
|
|
enable_signup = false
|
|
enable_confirmations = false
|
|
|
|
[auth.mfa]
|
|
max_enrolled_factors = 10
|
|
|
|
[auth.mfa.totp]
|
|
# Enrolment opens with the identity step (mandatory for platform staff).
|
|
enroll_enabled = false
|
|
verify_enabled = false
|
|
|
|
[edge_runtime]
|
|
# No Edge Function before the files/webhooks steps; keeps the local stack light.
|
|
enabled = false
|
|
|
|
[analytics]
|
|
enabled = false
|
|
|
|
[experimental.pgdelta]
|
|
enabled = false
|