-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Bug]: Multi tenat safety in vectordb #594
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
当前 VikingVectorIndexBackend 存在多租户隔离设计缺陷。虽然实现了部分租户感知方法,但大量底层数据操作方法完全暴露且没有任何 account_id 强制过滤
Steps to Reproduce
coding review
Expected Behavior
与 multi-tenant-design.md 的对比
根据设计文档第 5.5 节:
查询过滤策略:
- ROOT:无过滤
- ADMIN:account_id = ctx.account_id
- USER:account_id = ctx.account_id AND owner_space IN (...)
但当前实现完全依赖调用方自觉,底层方法不执行任何过滤。
Actual Behavior
有各类鉴权漏洞
Minimal Reproducible Example
Error Logs
OpenViking Version
0.2.6
Python Version
3.12
Operating System
macOS
Model Backend
None
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done