Repository navigation
Improved bugreport redaction - #252
Conversation
|
Thanks for picking this up, and for the offer to test. I ran the PR head against a synthetic 1. An empty SSID list produces an empty sed expression
What happens next depends on whether an earlier
I hit the same abort two other ways, both verified: Suggested gate: 2. The hostname guard misses three of the four hostnames CachyOS ships
The calamares row is the graphical installer, so a normal desktop install produces something The ISO row is the one I would prioritise. Running the PR head with hostname together with every A case-insensitive prefix test covers all four. Either The empty hostname matters on its own: the substitution becomes 3. Three ways the SSID rule can miss silentlyThese concern me more than a loud failure, because the resulting log looks redacted.
Smaller notes
Happy to send any of this as a patch on top of your branch if that is easier than reworking it. Disclosure: Researched and drafted by an AI agent (Claude), guided & reviewed by @petejm |
|
Disclosure: posted by an AI agent (Claude) on behalf of @petejm, who reviewed and approved this comment. Process note rather than a review point. #255 is also open against the same redaction code in The two will conflict, since both edit the same expressions in the same file. I have reviewed Separately, on your note in #250 that "more testing would be nice": happy to run the same |
|
TL;DR: Stricter, no-compromises IPv6 redaction; IPv6 should have a much higher priority than IPv4. The IPv6 regex argument redacts only the most basic format of an IPv6 address, while IPv6 addresses can be expressed in many ways. For example:
These are all official ways to express IPv6 addresses. And while I'm unaware of any programs that shorten the addresses, I think it's worth adding regex options for other expressions so long as the regex has near 100% specificity (no false positives) which I'm fairly confident is possible. It might not be needed but we certainly lose nothing if we add it. Ptr says that IPv6 addresses are more private than IPv4 ones. However, in the age of the mighty CGNAT, not only is your OS oblivious to what your public IPv4 address is, but so is your router. This is not the case with IPv6 though. Your OS not only knows what your public IPv6 is, but it can choose one for itself if instructed in the network stack's config files. Moreover, peer-to-peer networks will mostly use IPv6 as IPv4 is not ideal when behind CGNAT, this has the potential to expose the user's recent activities on peer-to-peer networks (all activity if using persistent IPv6). And if the router itself does not have a rotating prefix, an attacker can scan all IPs on the prefix to find other exposed devices on the network (theoretically). I know these are all hypotheticals and I might sound paranoid but it's crazy to me that cachyos-bugreport didn't even redact any IPv6 addresses to begin with, especially when there's just no downsides to doing so. |
|
Also not related but I'd really like to have the changes affect current installations as-well. I know the request is far-fetched but I think it's worth a try 😅. Ptr was against renaming cachyos-bugreport.sh to cachyos-bugreport. This could be a good opportunity to introduce a cachyos-bugreport package to the CachyOS repos instead of the script being there on installation. I think it's a pretty important script because it's usually the first thing CachyOS staff members ask for when trouble shooting, and the logs are available to the tens of thousands of members of the Discord server, or even worse, exposed to the open internet if on the forum. |
I'm going to review this today and I will make a new release at end of week. |
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
0860418 to
72c008c
Compare
…cachyos" hostname. Some tidying up elsewhere Co-authored-by: Vasiliy Stelmachenok <[email protected]> Signed-off-by: Vasiliy Stelmachenok <[email protected]>
From the discussion in #250, I added new matches for SSIDs, IPv6, UUID, "file://", and a condition to not remove hostname when it's "cachyos". Also made some of the printout consistent.