fix(publicenv): redact public host aliases
This commit is contained in:
@@ -9,6 +9,8 @@ def test_redact_public_lan_text_replaces_internal_endpoints_with_aliases() -> No
|
||||
"image=192.168.0.110:5000/library/api "
|
||||
"scanner=http://192.168.0.112:8080/health "
|
||||
"ollama=`192.168.0.188:11434` "
|
||||
"local=192.168.0.111 "
|
||||
"dev=192.168.0.168 "
|
||||
"unknown=192.168.0.222:1234"
|
||||
)
|
||||
|
||||
@@ -18,6 +20,8 @@ def test_redact_public_lan_text_replaces_internal_endpoints_with_aliases() -> No
|
||||
assert "host:public-gateway/registry/library/api" in redacted
|
||||
assert "scanner=host:kali-readonly/scanner/health" in redacted
|
||||
assert "ollama=`host:observability-a/ollama`" in redacted
|
||||
assert "local=host:dev-a" in redacted
|
||||
assert "dev=host:dev-b" in redacted
|
||||
assert "unknown=host:internal-node" in redacted
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user