Repository navigation
Reports: a value masked by hand is no identifier - #536
Conversation
r-7tb674nu's sender masked CloudCryNum as "#######" in a boot log sent again; Redact took the mask for the value and would have replaced all 59 runs of #s in the log. A value with no letter or digit is left alone.
PR Summary by QodoAvoid redacting hand-masked values in report logs
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Punctuation-only secrets remain public
|
|
On the one finding, punctuation-only secrets remain public: this is deliberate, not a gap. The values these patterns capture have fixed alphabets. Xiongmai's |
Follow-up to #535. Running
openipc reports redact --dry-runin production showed that r-7tb674nu's sender had replaced their boot log with a hand-masked copy,"CloudCryNum" : "#######".Redacttook the mask for the value and would have replaced every#######in the log: 59 lines of banners.A value must now contain a letter or digit before it counts as an identifier. The real values in the same log (the serial in its
SN:line, DevInfo'sDataandKey) are still caught. Covered byTestAValueMaskedByHandIsLeftAlone.The six other reports the dry run found were redacted in production with #535. This one waits for the fix.