refactor(b1b-c5): 白名单清单归业务层 —— 平台层零端点字面量
- 删掉 platform::auth 的 WHITE_URL / EXTRA_WHITE_URL 两个 const - AuthState 增字段 public_paths: Arc<Vec<&'static str>>(清单由业务层注入) - 清单真源移到 tdc::support::public_paths:4 条活路径(3 业务 + /api/health), 并剪掉上游 gateway.white-url 里本仓**无对应路由**的 9 条死路径 (Gateway×2 / P2P×5 / Portal / Topology)⇒ 记 D17(spec 写「7 条」与实际「9 条」有出入) - platform::auth 的 is_white_url 改成「清单由调用方给」,机制不变(Ant 匹配) - 单测:平台层 white_url_matching_is_manifest_driven(机制)+ 业务层 the_manifest_holds_exactly_the_live_endpoints / dead_upstream_paths_are_not_in_the_manifest - 边界账本清空 B1b 责任条目(CP1/CP4 全部归零)⇒ 账本只剩 2 条永久豁免
This commit is contained in:
1 parent
42cb97cabc
commit
df7ce37ba9
8 files changed
+113
-40
No files matched your search
@@ -12,7 +12,5 @@
|
||||
#
|
||||
# 文件字段按**路径后缀**匹配 ⇒ 搬家(src/auth.rs → src/platform/auth.rs)不会让条目失效。
|
||||
|
||||
CP1 auth.rs /api/ssw/tdc/ C5:白名单清单待归业务层 src/tdc/support/public_paths.rs(并剪掉 7 条死路径) B1b
|
||||
CP2 session.rs Identity 假阳性:SessionKind::Identity 是**会话口径**,不是业务实体 tdc_identity 永久
|
||||
CP2 auth.rs SessionKind::Identity 假阳性:Principal::Session 分支里的会话种类,不是业务实体 永久
|
||||
CP4 auth.rs /api/ C5:白名单清单待归业务层(含 /api/oauth/Login 与 /api/health 两条) B1b
|
||||
Reference in new issue
Block a user