fix(diagnostics): hosts join the explicit TO_REDACT list per the audit's G14 citation (t30 G14)
This commit is contained in:
1 parent
782d749b4a
commit
c1a82a2fa5
1 file changed
+6
-2
@@ -22,14 +22,18 @@ from .connection import ShieldConnectionManager
|
||||
_REDACT_KEY_MARKERS = ("pairing", "pin", "secret", "password", "token", "key_material")
|
||||
_REDACTED = "**REDACTED**"
|
||||
|
||||
# G14: the documented explicit redaction field list (host paths stay
|
||||
# readable; pairing/key-shaped fields are masked by async_redact_data).
|
||||
# G14: the documented explicit redaction field list — the audit calls out
|
||||
# config fields like the hosts; pairing/key-shaped fields are masked by
|
||||
# async_redact_data and the marker scan adds a second layer.
|
||||
_TO_REDACT = {
|
||||
"pairing_code",
|
||||
"adb_pairing_code",
|
||||
"protocol_pairing_code",
|
||||
"serial_number",
|
||||
"uuid",
|
||||
"adb_host",
|
||||
"protocol_host",
|
||||
"host",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user