fix(awooop): 移除 tenants public api 內部控制鍵
All checks were successful
Code Review / ai-code-review (push) Successful in 15s
CD Pipeline / tests (push) Successful in 1m31s
CD Pipeline / build-and-deploy (push) Successful in 4m40s
CD Pipeline / post-deploy-checks (push) Successful in 1m39s

This commit is contained in:
Your Name
2026-06-15 04:42:27 +08:00
parent 179606580f
commit 93fd0f9a71
3 changed files with 24 additions and 17 deletions

View File

@@ -11858,13 +11858,22 @@ def validate(root: Path) -> None:
for text in [
"source_scope_id",
"source_namespace_redacted",
"只讀資產台帳;不修改租戶、路由、主機或專案庫。",
"公開回應只顯示產品代號、範圍代號與繁中管控狀態",
"執行期閘門維持關閉",
]:
assert_text_contains("platform_operator_service.source_namespace_redaction", platform_operator_service, text)
for text in [
"repo_owner_namespace_redacted=true",
"raw_repository_namespace_visible=false",
"public_api_raw_repo_namespace_allowed=false",
"public_product_identity_redacted=true",
"read_only_inventory_only=true",
"runtime_execution_authorized=false",
"action_buttons_allowed=false",
"public_api_raw_project_slug_allowed=false",
]:
assert_text_contains("platform_operator_service.source_namespace_redaction", platform_operator_service, text)
assert_text_not_contains("platform_operator_service.raw_boundary_key_leak", platform_operator_service, text)
for text in ["source_scope_id", "source_namespace_redacted"]:
assert_text_contains("tenants_api_contract.source_namespace_redaction", tenants_api_contract, text)
tenant_global_assets_messages_zh = json.dumps(