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
Enhance database URI security and add URL encoding (#6668)
Seayon0b4c26578ee2
diff --git a/api/configs/middleware/__init__.py b/api/configs/middleware/__init__.pyindex a32b70bdc73..07688e9aebf 100644--- a/api/configs/middleware/__init__.py+++ b/api/configs/middleware/__init__.py@@ -1,4 +1,5 @@from typing import Any, Optional+from urllib.parse import quote_plusfrom pydantic import Field, NonNegativeInt, PositiveInt, computed_fieldfrom pydantic_settings import BaseSettings@@ -104,7 +105,7 @@ class DatabaseConfig:).strip("&")db_extras = f"?{db_extras}" if db_extras else ""return (f"{self.SQLALCHEMY_DATABASE_URI_SCHEME}://"- f"{self.DB_USERNAME}:{self.DB_PASSWORD}@{self.DB_HOST}:{self.DB_PORT}/{self.DB_DATABASE}"+ f"{quote_plus(self.DB_USERNAME)}:{quote_plus(self.DB_PASSWORD)}@{self.DB_HOST}:{self.DB_PORT}/{self.DB_DATABASE}"f"{db_extras}")SQLALCHEMY_POOL_SIZE: NonNegativeInt = Field(