Skip to content

Commit ad1e51d

Browse files
committed
fix: redact additional keys from diagnostic data
1 parent 88f28c9 commit ad1e51d

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

roborock/devices/device.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,23 @@ def diagnostic_data(self) -> dict[str, Any]:
198198

199199
T = TypeVar("T")
200200

201-
REDACT_KEYS = {"duid", "localKey", "mac", "bssid", "sn", "ip"}
201+
REDACT_KEYS = {
202+
# Sensitive identifiers
203+
"duid",
204+
"localKey",
205+
"mac",
206+
"bssid",
207+
"sn",
208+
"ip",
209+
"u",
210+
"s",
211+
"h",
212+
"k",
213+
# Large binary blobs are entirely omitted
214+
"image_content",
215+
"map_data",
216+
"raw_api_response",
217+
}
202218
REDACTED = "**REDACTED**"
203219

204220

0 commit comments

Comments
 (0)