Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
docs(api): mark SetupApi as unauthenticated by design (#32224)
Byron.wange9db50f78186
diff --git a/api/controllers/console/setup.py b/api/controllers/console/setup.pyindex e1ea0072326..e099fe0f324 100644--- a/api/controllers/console/setup.py+++ b/api/controllers/console/setup.py@@ -42,7 +42,15 @@ class SetupResponse(BaseModel):tags=["console"],)def get_setup_status_api() -> SetupStatusResponse:- """Get system setup status."""+ """Get system setup status.++ NOTE: This endpoint is unauthenticated by design.++ During first-time bootstrap there is no admin account yet, so frontend initialization must be+ able to query setup progress before any login flow exists.++ Only bootstrap-safe status information should be returned by this endpoint.+ """if dify_config.EDITION == "SELF_HOSTED":setup_status = get_setup_status()if setup_status and not isinstance(setup_status, bool):@@ -61,7 +69,12 @@ def get_setup_status_api() -> SetupStatusResponse:)@only_edition_self_hosteddef setup_system(payload: SetupRequestPayload) -> SetupResponse:- """Initialize system setup with admin account."""+ """Initialize system setup with admin account.++ NOTE: This endpoint is unauthenticated by design for first-time bootstrap.+ Access is restricted by deployment mode (`SELF_HOSTED`), one-time setup guards,+ and init-password validation rather than user session authentication.+ """if get_setup_status():raise AlreadySetupError()