← Back to team overview

debcrafters-packages team mailing list archive

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

 

Noble 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-noble-2025-06-16-gupsdqg.tar.xz

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

cat /tmp/sosreport-test-noble-2025-06-16-gupsdqg-private_map
... File Contents ...
    "username_map": {
        "bryan": "obfuscateduser0"
    }

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

grep -r "obfuscateduser0" sosreport-test-noble-2025-06-16-gupsdqg/
sosreport-test-noble-2025-06-16-gupsdqg/sos_commands/login/lastlog:obfuscateduser0            pts/1    44.40.28.56                               Mon Jun 16 21:15:53 +0000 2025
sosreport-test-noble-2025-06-16-gupsdqg/sos_commands/login/lslogins: 1000 obfuscateduser0               0        0        0      21:15
sosreport-test-noble-2025-06-16-gupsdqg/sos_commands/login/lastlog_-u_1000-60000:obfuscateduser0            pts/1    44.40.28.56                               Mon Jun 16 21:15:53 +0000 2025
sosreport-test-noble-2025-06-16-gupsdqg/sos_commands/login/last_-F:obfuscateduser0    pts/1        44.40.28.56      Mon Jun 16 21:15:53 2025 - Mon Jun 16 21:16:03 2025  (00:00)

-- 
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