From 1faca179b0e1d994b8b477b48f866e165a6b1a27 Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Fri, 21 Aug 2026 16:20:17 +0800 Subject: [PATCH] chore: delete demo_auth_enabled from config --- .env.example | 2 -- common/src/common/config.py | 4 ---- docker-compose.yml | 1 - 3 files changed, 7 deletions(-) diff --git a/.env.example b/.env.example index 165c225..ea864ab 100644 --- a/.env.example +++ b/.env.example @@ -14,8 +14,6 @@ MYSQL_PASSWORD=change-me MYSQL_DATABASE=model_platform DATABASE_URL=mysql+asyncmy://root:change-me@127.0.0.1:3306/model_platform?charset=utf8mb4 -# Demo login is only intended for this self-hosted development UI. -DEMO_AUTH_ENABLED=true JWT_SECRET=change-this-development-secret # ============================================================================ diff --git a/common/src/common/config.py b/common/src/common/config.py index cf471a2..93cf9ee 100644 --- a/common/src/common/config.py +++ b/common/src/common/config.py @@ -39,10 +39,6 @@ class Settings(BaseSettings): default="dev-only-not-for-production", description="HS256 secret used by backend's jupyter auth_request.", ) - demo_auth_enabled: bool = Field( - default=False, - description="Enable the self-hosted UI's short-lived demo session cookie.", - ) cookie_force_secure: bool = Field( default=False, description=( diff --git a/docker-compose.yml b/docker-compose.yml index 3a46f51..53ff630 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -81,7 +81,6 @@ services: SERVICE_NAME: model-platform-backend SCHEDULE_EVENT_NAMESPACE: ${SCHEDULE_EVENT_NAMESPACE:-model-platform-local} JWT_SECRET: ${JWT_SECRET:?JWT_SECRET is required} - DEMO_AUTH_ENABLED: ${DEMO_AUTH_ENABLED:-false} INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD:-admin12345} RUNTIME_API_URL: http://runtime:8000 # P0-1 fix: shared secret required by /internal/v1/* routes.