← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2102199] Re: username clean doesn't work in 4.8.2

 

Hello, I've conducted verification for this fix on Jammy

Jammy Verification
==================

Generate sos report using affected plugin:
------------------------------------------

sos report -o login

Use the clean component on the generated sos report
---------------------------------------------------

sos clean /tmp/sosreport-test-2025-06-16-bofpmqg.tar.xz

Check that username is obfuscated
---------------------------------

cat /tmp/sosreport-host0-2025-06-16-bofpmqg-private_map

...File Contents...
    "username_map": {
        "bryan": "obfuscateduser0"
    }

tar -xf /tmp/sosreport-host0-2025-06-16-bofpmqg-obfuscated.tar.xz
grep -r "bryan" sosreport-host0-2025-06-16-bofpmqg
Results in no matches which means username does not appear in sos_commands/login/*

grep -r "obfuscateduser0" sosreport-host0-2025-06-16-bofpmqg
sos_commands/login/last_-F:obfuscateduser0    pts/1                         Mon Jun 16 20:45:05 2025 - Mon Jun 16 20:45:06 2025  (00:00)
sos_commands/login/lastlog:obfuscateduser0            pts/1                     Mon Jun 16 20:45:05 +0000 2025
sos_commands/login/lastlog_-u_1000-60000:obfuscateduser0            pts/1                     Mon Jun 16 20:45:05 +0000 2025

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to sos in Ubuntu.
https://bugs.launchpad.net/bugs/2102199

Title:
  username clean doesn't work in 4.8.2

Status in sosreport:
  Fix Released
Status in sos package in Ubuntu:
  Fix Released
Status in sosreport source package in Focal:
  In Progress
Status in sosreport source package in Jammy:
  Fix Committed
Status in sosreport source package in Noble:
  Fix Committed
Status in sosreport source package in Oracular:
  Fix Committed
Status in sos source package in Plucky:
  Fix Released

Bug description:
  [Impact]

  As I was reporting the upstream due to issues found in verification, I
  found it was a regression for Ubuntu platforms.

  The last command output was replaced with last -F, and hence checking
  the username was taken away, and hence clean no longer working.

  [Test Plan]

  * Once the PR is up, will create a new SRU
  * Create a new PPA with the details of the commit
  * Test on multiple distros and ensure that the new package will clean the username
  * Report the results here.

  
  [ Where problems could occur ]

  The update will not clean the username

To manage notifications about this bug go to:
https://bugs.launchpad.net/sosreport/+bug/2102199/+subscriptions