fix(publicenv): redact internal work context terms
All checks were successful
Code Review / ai-code-review (push) Successful in 12s
CD Pipeline / tests (push) Successful in 1m26s
CD Pipeline / build-and-deploy (push) Successful in 4m49s
CD Pipeline / post-deploy-checks (push) Successful in 1m40s

This commit is contained in:
Your Name
2026-06-13 05:40:57 +08:00
parent c30e95d220
commit e49c526ee7
2 changed files with 21 additions and 1 deletions

View File

@@ -33,6 +33,15 @@ def test_redact_public_lan_topology_recurses_json_values() -> None:
assert redacted["nested"][0]["endpoint"] == "host:observability-a/signoz"
def test_redact_public_lan_text_replaces_internal_work_context_terms() -> None:
redacted = redact_public_lan_text("不得顯示工作視窗對話、批准!繼續 或 source_thread_id")
assert "工作視窗" not in redacted
assert "批准!" not in redacted
assert "source_thread_id" not in redacted
assert "內部協作環境" in redacted
def test_public_monitoring_tool_payload_drops_internal_probe_url() -> None:
payload = public_monitoring_tool_payload(
{