fix: restrict database query allowed tables

This commit is contained in:
wizardchen
2026-01-26 11:00:35 +08:00
committed by lyingbug
parent 1dd76df261
commit 90ebd492ce
2 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ var databaseQueryTool = BaseTool{
## Security Features
- Automatic tenant_id injection: All queries are automatically filtered by the logged-in user's tenant_id
- Read-only queries: Only SELECT statements are allowed
- Safe tables: Only allow queries on authorized tables
- Safe tables: Only allow queries on authorized tables (knowledge_bases, knowledges, chunks)
## Available Tables and Columns