[Performance]Add a controllable MCP Server DB Pool permission authentication system (#53)
* 0.5.1 Version * fix 0.5.1 schema async bug * fix security bug * fix security bug * Add complete Token, JWT, OAuth authentication system * Add complete Token, JWT, OAuth authentication system * Add complete Token, JWT, OAuth authentication system * Add complete Token, JWT, OAuth authentication system * Add a controllable MCP Server DB Pool permission authentication system, connect it with the Doris permission system, and provide it to enterprise-level applications concurrently with the multi-Worker mode.
This commit is contained in:
@@ -270,8 +270,13 @@ async def initialize_worker():
|
||||
await _worker_security_manager.initialize()
|
||||
logger.info(f"Worker {os.getpid()} security manager initialization completed")
|
||||
|
||||
# Create connection manager
|
||||
_worker_connection_manager = DorisConnectionManager(config, _worker_security_manager)
|
||||
# Create connection manager with token manager for token-bound DB config
|
||||
token_manager = _worker_security_manager.auth_provider.token_manager if hasattr(_worker_security_manager, 'auth_provider') and hasattr(_worker_security_manager.auth_provider, 'token_manager') else None
|
||||
_worker_connection_manager = DorisConnectionManager(config, _worker_security_manager, token_manager)
|
||||
|
||||
# Set connection manager reference in security manager for database validation
|
||||
_worker_security_manager.connection_manager = _worker_connection_manager
|
||||
|
||||
await _worker_connection_manager.initialize()
|
||||
|
||||
# Create MCP server
|
||||
|
||||
Reference in New Issue
Block a user