Publish curated Unraid-AppOps-Gateway source from a506550ef83ef2d81651e37c98a89f7ee330c730

This commit is contained in:
Public Source Publisher committed 2026-10-03 13:35:10 +00:00
1 parent 2facb8de34
commit 767e66921e
68 files changed
+15924 -313

No files matched your search

+9
View File
@@ -53,6 +53,15 @@ def require_service_request(request: Request, service: str) -> str:
enabled, expected = settings.mcp_enabled, settings.mcp_token
elif service == "n8n":
enabled, expected = settings.n8n_enabled, settings.n8n_token
elif service == "mcp_runner_statistics":
expected = settings.read_runner_statistics_token()
if not expected:
raise HTTPException(404, "runner statistics MCP integration is disabled")
if not token_is_strong(expected):
raise HTTPException(503, "runner statistics MCP authentication is not safely configured")
if settings.mcp_token and hmac.compare_digest(expected, settings.mcp_token):
raise HTTPException(503, "runner statistics MCP token must be separate from the governed MCP token")
enabled = True
elif service == "voice":
enabled, expected = True, settings.voice_token or os.getenv("APP_OPS_VOICE_TOKEN")
else: