Document admin model catalog visibility bug
This commit is contained in:
@@ -2505,3 +2505,18 @@
|
||||
- 相关记录:BUG-134、BUG-138、BUG-139
|
||||
- 复发自:无
|
||||
- 修复版本:本地候选提交(未 push / deploy)
|
||||
|
||||
## BUG-147 | staging 模型供应商保存成功但列表为空
|
||||
|
||||
- 状态:resolved(local candidate,staging migration/deploy 待验证)
|
||||
- 首次发现:2026-08-08
|
||||
- 最近更新:2026-08-08
|
||||
- 现象:POST 保存成功但 GET providers 为空。
|
||||
- 触发:self-hosted `admin_runtime` 直查五张 model 表:`model_providers`、`model_configs`、`model_config_versions`、`model_publish_events`、`model_connection_test_evidence`。
|
||||
- 根因:表启用 RLS 且有 SELECT grant,但缺少 `admin_runtime` SELECT policy;`SECURITY DEFINER` 写成功、读被静默过滤。
|
||||
- 修复:`20260808020000` migration 为 `model_providers`、`model_configs`、`model_config_versions`、`model_publish_events`、`model_connection_test_evidence` 增加仅 SELECT policy。
|
||||
- 验证:focused 7/7;full frontend 1071/1071;lint 0 errors、3 warnings;build 通过;`git diff --check` 通过。
|
||||
- 防复发:模型管理数据库回归测试同时覆盖 `admin_runtime` 对五张 model 表的直接读取,迁移需保持 SELECT grant 与 SELECT policy 成对存在。
|
||||
- 相关记录:BUG-124、BUG-135、BUG-145、BUG-146
|
||||
- 复发自:无
|
||||
- 修复版本:待本次 staging SHA
|
||||
|
||||
Reference in New Issue
Block a user