feat(settings): 服务配置四项化并保存时真校验
- 生产/测试 WeKnora 地址、租户 ID、知识库 ID 由静态 env 收敛为版本化 UI 设置,保留修订号与操作人审计 - 新增 serviceverify:保存前真调目标端点探测,端点无效才拒绝;网络抖动或无凭据仅告警 - 迁移 000042(生产 WeKnora 端点)/000043(服务目标);补齐设置候选与校验契约用例
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ALTER TABLE ui_setting_revisions DROP COLUMN IF EXISTS production_weknora_base_url;
|
||||
@@ -0,0 +1,6 @@
|
||||
-- The production WeKnora endpoint is operator configuration, so it belongs in
|
||||
-- the versioned web settings (admin-only, audited, atomic activation) instead of
|
||||
-- only in container env. Empty means "not configured": the console then says so
|
||||
-- honestly instead of inventing an address. Credentials are never stored here —
|
||||
-- they stay file references.
|
||||
ALTER TABLE ui_setting_revisions ADD COLUMN IF NOT EXISTS production_weknora_base_url TEXT NOT NULL DEFAULT '';
|
||||
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE ui_setting_revisions DROP COLUMN IF EXISTS test_weknora_base_url;
|
||||
ALTER TABLE ui_setting_revisions DROP COLUMN IF EXISTS production_tenant_id;
|
||||
ALTER TABLE ui_setting_revisions DROP COLUMN IF EXISTS production_knowledge_base_id;
|
||||
@@ -0,0 +1,6 @@
|
||||
-- 服务配置界面收敛为四项:生产地址、测试地址、生产 ID(租户)、知识库 ID。
|
||||
-- 与生产地址同一规格:空 = 未配置;只有管理员能改;走版本化修订 + 审计 + 原子切换。
|
||||
-- ID 只做格式校验并如实展示,凭据仍然是文件引用,绝不进这一行。
|
||||
ALTER TABLE ui_setting_revisions ADD COLUMN IF NOT EXISTS test_weknora_base_url TEXT NOT NULL DEFAULT '';
|
||||
ALTER TABLE ui_setting_revisions ADD COLUMN IF NOT EXISTS production_tenant_id TEXT NOT NULL DEFAULT '';
|
||||
ALTER TABLE ui_setting_revisions ADD COLUMN IF NOT EXISTS production_knowledge_base_id TEXT NOT NULL DEFAULT '';
|
||||
Reference in New Issue
Block a user