From 83cbec8276fcae4c51416c7a2f104e20bfaf89b0 Mon Sep 17 00:00:00 2001 From: Gerhard Scheikl Date: Tue, 2 Jun 2026 10:30:55 +0200 Subject: [PATCH] supabase updates --- dev/supabase/docker-compose.yml | 60 +++++++++++++++++++++++---------- supabase/docker-compose.yml | 58 +++++++++++++++++++++---------- 2 files changed, 82 insertions(+), 36 deletions(-) diff --git a/dev/supabase/docker-compose.yml b/dev/supabase/docker-compose.yml index 6a2cfb3..0612dd2 100644 --- a/dev/supabase/docker-compose.yml +++ b/dev/supabase/docker-compose.yml @@ -9,7 +9,7 @@ name: supabase-dev services: studio: container_name: supabase-dev-studio - image: supabase/studio:20240923-2e3e90c + image: supabase/studio:2026.04.27-sha-5f60601 restart: unless-stopped healthcheck: test: @@ -48,10 +48,10 @@ services: kong-dev: container_name: supabase-dev-kong - image: kong:2.8.1 + image: kong/kong:3.9.1 restart: unless-stopped # https://unix.stackexchange.com/a/294837 - entrypoint: bash -c 'eval "echo \"$$(cat ~/temp.yml)\"" > ~/kong.yml && /docker-entrypoint.sh kong docker-start' + entrypoint: /home/kong/kong-entrypoint.sh # SECURITY (R2/F2/I3): host ports unpublished. Kong is reached only via Caddy # over the internal docker network (api.linumiq.net -> supabase-kong:8000). depends_on: @@ -59,7 +59,7 @@ services: condition: service_healthy environment: KONG_DATABASE: "off" - KONG_DECLARATIVE_CONFIG: /home/kong/kong.yml + KONG_DECLARATIVE_CONFIG: /usr/local/kong/kong.yml # https://github.com/supabase/cli/issues/14 KONG_DNS_ORDER: LAST,A,CNAME KONG_PLUGINS: request-transformer,cors,key-auth,acl,basic-auth,request-termination @@ -72,10 +72,13 @@ services: volumes: # https://github.com/supabase/supabase/issues/12661 - ./volumes/api/kong.yml:/home/kong/temp.yml:ro + - ./volumes/api/kong-entrypoint.sh:/home/kong/kong-entrypoint.sh:ro auth: container_name: supabase-dev-auth - image: supabase/gotrue:v2.158.1 + image: supabase/gotrue:v2.186.0 + volumes: + - ./volumes/gotrue/email-templates:/etc/gotrue-templates:ro depends_on: db: # Disable this if you are using an external Postgres database @@ -130,9 +133,21 @@ services: GOTRUE_MAILER_URLPATHS_CONFIRMATION: ${MAILER_URLPATHS_CONFIRMATION} GOTRUE_MAILER_URLPATHS_RECOVERY: ${MAILER_URLPATHS_RECOVERY} GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE: ${MAILER_URLPATHS_EMAIL_CHANGE} + GOTRUE_MAILER_TEMPLATES_CONFIRMATION: ${MAILER_TEMPLATES_CONFIRMATION} GOTRUE_EXTERNAL_PHONE_ENABLED: ${ENABLE_PHONE_SIGNUP} GOTRUE_SMS_AUTOCONFIRM: ${ENABLE_PHONE_AUTOCONFIRM} + + # --- MFA (TOTP + WebAuthn) — DEV only --- + GOTRUE_MFA_MAX_ENROLLED_FACTORS: ${GOTRUE_MFA_MAX_ENROLLED_FACTORS} + GOTRUE_MFA_TOTP_ENROLL_ENABLED: ${GOTRUE_MFA_TOTP_ENROLL_ENABLED} + GOTRUE_MFA_TOTP_VERIFY_ENABLED: ${GOTRUE_MFA_TOTP_VERIFY_ENABLED} + GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED: ${GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED} + GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED: ${GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED} + GOTRUE_MFA_PHONE_ENROLL_ENABLED: ${GOTRUE_MFA_PHONE_ENROLL_ENABLED} + GOTRUE_MFA_PHONE_VERIFY_ENABLED: ${GOTRUE_MFA_PHONE_VERIFY_ENABLED} + GOTRUE_MFA_WEB_AUTHN_RP_ID: ${GOTRUE_MFA_WEB_AUTHN_RP_ID} + GOTRUE_MFA_WEB_AUTHN_RP_ORIGINS: ${GOTRUE_MFA_WEB_AUTHN_RP_ORIGINS} # Uncomment to enable custom access token hook. Please see: https://supabase.com/docs/guides/auth/auth-hooks for full list of hooks and additional details about custom_access_token_hook # GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: "true" @@ -159,7 +174,7 @@ services: rest: container_name: supabase-dev-rest - image: postgrest/postgrest:v12.2.0 + image: postgrest/postgrest:v14.8 depends_on: db: # Disable this if you are using an external Postgres database @@ -180,7 +195,7 @@ services: realtime: # This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain container_name: realtime-dev.supabase-dev-realtime - image: supabase/realtime:v2.30.34 + image: supabase/realtime:v2.76.5 depends_on: db: # Disable this if you are using an external Postgres database @@ -214,7 +229,8 @@ services: DB_AFTER_CONNECT_QUERY: 'SET search_path TO _realtime' DB_ENC_KEY: supabaserealtime API_JWT_SECRET: ${JWT_SECRET} - SECRET_KEY_BASE: UpNVntn3cDxHJpq99YMc1T1AQgQpc8kfYTuRgBiYa15BLrx8etQoXz3gZv1/u2oq + METRICS_JWT_SECRET: ${JWT_SECRET} + SECRET_KEY_BASE: ${SECRET_KEY_BASE} ERL_AFLAGS: -proto_dist inet_tcp DNS_NODES: "''" RLIMIT_NOFILE: "10000" @@ -224,7 +240,7 @@ services: # To use S3 backed storage: docker compose -f docker-compose.yml -f docker-compose.s3.yml up storage: container_name: supabase-dev-storage - image: supabase/storage-api:v1.10.1 + image: supabase/storage-api:v1.48.26 depends_on: db: # Disable this if you are using an external Postgres database @@ -251,6 +267,7 @@ services: ANON_KEY: ${ANON_KEY} SERVICE_KEY: ${SERVICE_ROLE_KEY} POSTGREST_URL: http://rest:3000 + AUTH_JWT_SECRET: ${JWT_SECRET} PGRST_JWT_SECRET: ${JWT_SECRET} DATABASE_URL: postgres://supabase_storage_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} FILE_SIZE_LIMIT: 52428800 @@ -267,7 +284,7 @@ services: imgproxy: container_name: supabase-dev-imgproxy - image: darthsim/imgproxy:v3.8.0 + image: darthsim/imgproxy:v3.30.1 healthcheck: test: [ "CMD", "imgproxy", "health" ] timeout: 5s @@ -277,13 +294,13 @@ services: IMGPROXY_BIND: ":5001" IMGPROXY_LOCAL_FILESYSTEM_ROOT: / IMGPROXY_USE_ETAG: "true" - IMGPROXY_ENABLE_WEBP_DETECTION: ${IMGPROXY_ENABLE_WEBP_DETECTION} + IMGPROXY_AUTO_WEBP: ${IMGPROXY_AUTO_WEBP} volumes: - ./volumes/storage:/var/lib/storage:z meta: container_name: supabase-dev-meta - image: supabase/postgres-meta:v0.83.2 + image: supabase/postgres-meta:v0.96.3 depends_on: db: # Disable this if you are using an external Postgres database @@ -298,10 +315,11 @@ services: PG_META_DB_NAME: ${POSTGRES_DB} PG_META_DB_USER: supabase_admin PG_META_DB_PASSWORD: ${POSTGRES_PASSWORD} + CRYPTO_KEY: ${PG_META_CRYPTO_KEY} functions-dev: container_name: supabase-dev-edge-functions - image: supabase/edge-runtime:v1.58.3 + image: supabase/edge-runtime:v1.71.2 restart: unless-stopped depends_on: analytics: @@ -311,6 +329,8 @@ services: SUPABASE_URL: http://kong:8000 SUPABASE_ANON_KEY: ${ANON_KEY} SUPABASE_SERVICE_ROLE_KEY: ${SERVICE_ROLE_KEY} + SUPABASE_PUBLISHABLE_KEYS: "{\"default\":\"${SUPABASE_PUBLISHABLE_KEY:-}\"}" + SUPABASE_SECRET_KEYS: "{\"default\":\"${SUPABASE_SECRET_KEY:-}\"}" SUPABASE_DB_URL: postgresql://postgres:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} # TODO: Allow configuring VERIFY_JWT per function. This PR might help: https://github.com/supabase/cli/pull/786 VERIFY_JWT: "${FUNCTIONS_VERIFY_JWT}" @@ -326,7 +346,7 @@ services: analytics: container_name: supabase-dev-analytics - image: supabase/logflare:1.4.0 + image: supabase/logflare:1.36.1 healthcheck: test: [ "CMD", "curl", "http://localhost:4000/health" ] timeout: 5s @@ -353,6 +373,8 @@ services: DB_SCHEMA: _analytics LOGFLARE_API_KEY: ${LOGFLARE_API_KEY} LOGFLARE_SINGLE_TENANT: true + LOGFLARE_PUBLIC_ACCESS_TOKEN: ${LOGFLARE_PUBLIC_ACCESS_TOKEN} + LOGFLARE_PRIVATE_ACCESS_TOKEN: ${LOGFLARE_PRIVATE_ACCESS_TOKEN} LOGFLARE_SUPABASE_MODE: true LOGFLARE_MIN_CLUSTER_SIZE: 1 @@ -368,7 +390,7 @@ services: # Comment out everything below this point if you are using an external Postgres database db: container_name: supabase-dev-db - image: supabase/postgres:15.1.1.78 + image: supabase/postgres:15.8.1.085 healthcheck: test: pg_isready -U postgres -h localhost interval: 5s @@ -450,7 +472,7 @@ services: vector: container_name: supabase-dev-vector - image: timberio/vector:0.28.1-alpine + image: timberio/vector:0.53.0-alpine healthcheck: test: [ @@ -472,12 +494,13 @@ services: - ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro environment: LOGFLARE_API_KEY: ${LOGFLARE_API_KEY} + LOGFLARE_PUBLIC_ACCESS_TOKEN: ${LOGFLARE_PUBLIC_ACCESS_TOKEN} command: [ "--config", "etc/vector/vector.yml" ] # Update the DATABASE_URL if you are using an external Postgres database supavisor: container_name: supabase-dev-pooler - image: supabase/supavisor:1.1.56 + image: supabase/supavisor:2.7.4 healthcheck: test: curl -sSfL --head -o /dev/null "http://127.0.0.1:4000/api/health" interval: 10s @@ -500,7 +523,7 @@ services: - POSTGRES_PORT=${POSTGRES_PORT} - POSTGRES_DB=${POSTGRES_DB} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - - DATABASE_URL=ecto://postgres:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/_supabase + - DATABASE_URL=ecto://supabase_admin:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/_supabase - CLUSTER_POSTGRES=true # SECURITY (R3): replaced predictable upstream-default supavisor secrets. - SECRET_KEY_BASE=${SUPAVISOR_SECRET_KEY_BASE} @@ -513,5 +536,6 @@ services: - POOLER_DEFAULT_POOL_SIZE=${POOLER_DEFAULT_POOL_SIZE} - POOLER_MAX_CLIENT_CONN=${POOLER_MAX_CLIENT_CONN} - POOLER_POOL_MODE=transaction + - DB_POOL_SIZE=${POOLER_DB_POOL_SIZE} volumes: - ./volumes/pooler/pooler.exs:/etc/pooler/pooler.exs:ro diff --git a/supabase/docker-compose.yml b/supabase/docker-compose.yml index cfcbf10..c540ad8 100644 --- a/supabase/docker-compose.yml +++ b/supabase/docker-compose.yml @@ -9,7 +9,7 @@ name: supabase services: studio: container_name: supabase-studio - image: supabase/studio:20240923-2e3e90c + image: supabase/studio:2026.04.27-sha-5f60601 restart: unless-stopped healthcheck: test: @@ -48,10 +48,10 @@ services: kong: container_name: supabase-kong - image: kong:2.8.1 + image: kong/kong:3.9.1 restart: unless-stopped # https://unix.stackexchange.com/a/294837 - entrypoint: bash -c 'eval "echo \"$$(cat ~/temp.yml)\"" > ~/kong.yml && /docker-entrypoint.sh kong docker-start' + entrypoint: /home/kong/kong-entrypoint.sh # SECURITY (R2/F2/I3): host ports unpublished. Kong is reached only via Caddy # over the internal docker network (api.linumiq.net -> supabase-kong:8000). depends_on: @@ -59,7 +59,7 @@ services: condition: service_healthy environment: KONG_DATABASE: "off" - KONG_DECLARATIVE_CONFIG: /home/kong/kong.yml + KONG_DECLARATIVE_CONFIG: /usr/local/kong/kong.yml # https://github.com/supabase/cli/issues/14 KONG_DNS_ORDER: LAST,A,CNAME KONG_PLUGINS: request-transformer,cors,key-auth,acl,basic-auth,request-termination @@ -72,10 +72,11 @@ services: volumes: # https://github.com/supabase/supabase/issues/12661 - ./volumes/api/kong.yml:/home/kong/temp.yml:ro + - ./volumes/api/kong-entrypoint.sh:/home/kong/kong-entrypoint.sh:ro auth: container_name: supabase-auth - image: supabase/gotrue:v2.158.1 + image: supabase/gotrue:v2.186.0 depends_on: db: # Disable this if you are using an external Postgres database @@ -130,9 +131,21 @@ services: GOTRUE_MAILER_URLPATHS_CONFIRMATION: ${MAILER_URLPATHS_CONFIRMATION} GOTRUE_MAILER_URLPATHS_RECOVERY: ${MAILER_URLPATHS_RECOVERY} GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE: ${MAILER_URLPATHS_EMAIL_CHANGE} + GOTRUE_MAILER_TEMPLATES_CONFIRMATION: ${MAILER_TEMPLATES_CONFIRMATION} GOTRUE_EXTERNAL_PHONE_ENABLED: ${ENABLE_PHONE_SIGNUP} GOTRUE_SMS_AUTOCONFIRM: ${ENABLE_PHONE_AUTOCONFIRM} + + # --- MFA (TOTP + WebAuthn) — PROD --- + GOTRUE_MFA_MAX_ENROLLED_FACTORS: ${GOTRUE_MFA_MAX_ENROLLED_FACTORS} + GOTRUE_MFA_TOTP_ENROLL_ENABLED: ${GOTRUE_MFA_TOTP_ENROLL_ENABLED} + GOTRUE_MFA_TOTP_VERIFY_ENABLED: ${GOTRUE_MFA_TOTP_VERIFY_ENABLED} + GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED: ${GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED} + GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED: ${GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED} + GOTRUE_MFA_PHONE_ENROLL_ENABLED: ${GOTRUE_MFA_PHONE_ENROLL_ENABLED} + GOTRUE_MFA_PHONE_VERIFY_ENABLED: ${GOTRUE_MFA_PHONE_VERIFY_ENABLED} + GOTRUE_MFA_WEB_AUTHN_RP_ID: ${GOTRUE_MFA_WEB_AUTHN_RP_ID} + GOTRUE_MFA_WEB_AUTHN_RP_ORIGINS: ${GOTRUE_MFA_WEB_AUTHN_RP_ORIGINS} # Uncomment to enable custom access token hook. Please see: https://supabase.com/docs/guides/auth/auth-hooks for full list of hooks and additional details about custom_access_token_hook # GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: "true" @@ -159,7 +172,7 @@ services: rest: container_name: supabase-rest - image: postgrest/postgrest:v12.2.0 + image: postgrest/postgrest:v14.8 depends_on: db: # Disable this if you are using an external Postgres database @@ -180,7 +193,7 @@ services: realtime: # This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain container_name: realtime-dev.supabase-realtime - image: supabase/realtime:v2.30.34 + image: supabase/realtime:v2.76.5 depends_on: db: # Disable this if you are using an external Postgres database @@ -214,7 +227,8 @@ services: DB_AFTER_CONNECT_QUERY: 'SET search_path TO _realtime' DB_ENC_KEY: supabaserealtime API_JWT_SECRET: ${JWT_SECRET} - SECRET_KEY_BASE: UpNVntn3cDxHJpq99YMc1T1AQgQpc8kfYTuRgBiYa15BLrx8etQoXz3gZv1/u2oq + METRICS_JWT_SECRET: ${JWT_SECRET} + SECRET_KEY_BASE: ${SECRET_KEY_BASE} ERL_AFLAGS: -proto_dist inet_tcp DNS_NODES: "''" RLIMIT_NOFILE: "10000" @@ -224,7 +238,7 @@ services: # To use S3 backed storage: docker compose -f docker-compose.yml -f docker-compose.s3.yml up storage: container_name: supabase-storage - image: supabase/storage-api:v1.10.1 + image: supabase/storage-api:v1.48.26 depends_on: db: # Disable this if you are using an external Postgres database @@ -251,6 +265,7 @@ services: ANON_KEY: ${ANON_KEY} SERVICE_KEY: ${SERVICE_ROLE_KEY} POSTGREST_URL: http://rest:3000 + AUTH_JWT_SECRET: ${JWT_SECRET} PGRST_JWT_SECRET: ${JWT_SECRET} DATABASE_URL: postgres://supabase_storage_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} FILE_SIZE_LIMIT: 52428800 @@ -267,7 +282,7 @@ services: imgproxy: container_name: supabase-imgproxy - image: darthsim/imgproxy:v3.8.0 + image: darthsim/imgproxy:v3.30.1 healthcheck: test: [ "CMD", "imgproxy", "health" ] timeout: 5s @@ -277,13 +292,13 @@ services: IMGPROXY_BIND: ":5001" IMGPROXY_LOCAL_FILESYSTEM_ROOT: / IMGPROXY_USE_ETAG: "true" - IMGPROXY_ENABLE_WEBP_DETECTION: ${IMGPROXY_ENABLE_WEBP_DETECTION} + IMGPROXY_AUTO_WEBP: ${IMGPROXY_AUTO_WEBP} volumes: - ./volumes/storage:/var/lib/storage:z meta: container_name: supabase-meta - image: supabase/postgres-meta:v0.83.2 + image: supabase/postgres-meta:v0.96.3 depends_on: db: # Disable this if you are using an external Postgres database @@ -298,10 +313,11 @@ services: PG_META_DB_NAME: ${POSTGRES_DB} PG_META_DB_USER: supabase_admin PG_META_DB_PASSWORD: ${POSTGRES_PASSWORD} + CRYPTO_KEY: ${PG_META_CRYPTO_KEY} functions: container_name: supabase-edge-functions - image: supabase/edge-runtime:v1.58.3 + image: supabase/edge-runtime:v1.71.2 restart: unless-stopped depends_on: analytics: @@ -311,6 +327,8 @@ services: SUPABASE_URL: http://kong:8000 SUPABASE_ANON_KEY: ${ANON_KEY} SUPABASE_SERVICE_ROLE_KEY: ${SERVICE_ROLE_KEY} + SUPABASE_PUBLISHABLE_KEYS: "{\"default\":\"${SUPABASE_PUBLISHABLE_KEY:-}\"}" + SUPABASE_SECRET_KEYS: "{\"default\":\"${SUPABASE_SECRET_KEY:-}\"}" SUPABASE_DB_URL: postgresql://postgres:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} # TODO: Allow configuring VERIFY_JWT per function. This PR might help: https://github.com/supabase/cli/pull/786 VERIFY_JWT: "${FUNCTIONS_VERIFY_JWT}" @@ -326,7 +344,7 @@ services: analytics: container_name: supabase-analytics - image: supabase/logflare:1.4.0 + image: supabase/logflare:1.36.1 healthcheck: test: [ "CMD", "curl", "http://localhost:4000/health" ] timeout: 5s @@ -353,6 +371,8 @@ services: DB_SCHEMA: _analytics LOGFLARE_API_KEY: ${LOGFLARE_API_KEY} LOGFLARE_SINGLE_TENANT: true + LOGFLARE_PUBLIC_ACCESS_TOKEN: ${LOGFLARE_PUBLIC_ACCESS_TOKEN} + LOGFLARE_PRIVATE_ACCESS_TOKEN: ${LOGFLARE_PRIVATE_ACCESS_TOKEN} LOGFLARE_SUPABASE_MODE: true LOGFLARE_MIN_CLUSTER_SIZE: 1 @@ -368,7 +388,7 @@ services: # Comment out everything below this point if you are using an external Postgres database db: container_name: supabase-db - image: supabase/postgres:15.1.1.78 + image: supabase/postgres:15.8.1.085 healthcheck: test: pg_isready -U postgres -h localhost interval: 5s @@ -450,7 +470,7 @@ services: vector: container_name: supabase-vector - image: timberio/vector:0.28.1-alpine + image: timberio/vector:0.53.0-alpine healthcheck: test: [ @@ -472,12 +492,13 @@ services: - ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro environment: LOGFLARE_API_KEY: ${LOGFLARE_API_KEY} + LOGFLARE_PUBLIC_ACCESS_TOKEN: ${LOGFLARE_PUBLIC_ACCESS_TOKEN} command: [ "--config", "etc/vector/vector.yml" ] # Update the DATABASE_URL if you are using an external Postgres database supavisor: container_name: supabase-pooler - image: supabase/supavisor:1.1.56 + image: supabase/supavisor:2.7.4 healthcheck: test: curl -sSfL --head -o /dev/null "http://127.0.0.1:4000/api/health" interval: 10s @@ -500,7 +521,7 @@ services: - POSTGRES_PORT=${POSTGRES_PORT} - POSTGRES_DB=${POSTGRES_DB} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - - DATABASE_URL=ecto://postgres:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/_supabase + - DATABASE_URL=ecto://supabase_admin:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/_supabase - CLUSTER_POSTGRES=true # SECURITY (R3): replaced predictable upstream-default supavisor secrets. - SECRET_KEY_BASE=${SUPAVISOR_SECRET_KEY_BASE} @@ -513,5 +534,6 @@ services: - POOLER_DEFAULT_POOL_SIZE=${POOLER_DEFAULT_POOL_SIZE} - POOLER_MAX_CLIENT_CONN=${POOLER_MAX_CLIENT_CONN} - POOLER_POOL_MODE=transaction + - DB_POOL_SIZE=${POOLER_DB_POOL_SIZE} volumes: - ./volumes/pooler/pooler.exs:/etc/pooler/pooler.exs:ro