portal-auth P3(#24 #25):Portal UI+/portal/data/* server-side enforce(不 merge,待總管審) (#52)

This commit was merged in pull request #52.
This commit is contained in:
Leo
2026-07-14 07:19:01 +00:00
parent 1260d8cffb
commit 3577e9255c
13 changed files with 1481 additions and 29 deletions
+7
View File
@@ -29,6 +29,11 @@ id = "test-recipes"
binding = "SESSIONS_KV"
id = "test-sessions-kv"
# portal-auth P3/portal/data/workflows 讀最近執行(stats:{name}:{ts}
[[kv_namespaces]]
binding = "ANALYTICS_KV"
id = "test-analytics-kv"
# credential-store-migration T8/T9 測試用 D1 mockMiniflare 本地 SQLite,非真實 leo21c D1
# schema 由 tests/setup.ts 在測試啟動時建表,不用 migrations_dir——0002_credentials.sql 就一張表,
# 直接 exec 比接 migrations 機制簡單)
@@ -43,3 +48,5 @@ ENCRYPTION_KEY = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd
# 分流台勾掉 route 測試:KBDB 指到假 hostfetchMock 攔截,絕不外連——尤其不打官方 uncle6 fallback
KBDB_BASE_URL = "https://kbdb.test"
CONSOLE_TENANT = "leo"
# portal-auth P3graph 粗閘放行後的轉發目標也指假 host(fetchMock 攔截,絕不外連)
KBDB_GRAPH_URL = "https://graph.test"