diff -Nru sosreport-4.5.6/debian/changelog sosreport-4.5.6/debian/changelog --- sosreport-4.5.6/debian/changelog 2023-07-24 04:30:32.000000000 +0000 +++ sosreport-4.5.6/debian/changelog 2023-10-04 03:12:42.000000000 +0000 @@ -1,3 +1,15 @@ +sosreport (4.5.6-0ubuntu1~23.04.2) lunar; urgency=medium + + * d/tests/simple.sh: + - Correct typo in test_mask to print ip address + (LP: #2037873) + + * d/p/0002-obfuscate-netplan-ssid-password.patch: + - Obfuscate SSID password in netplan/XX.yaml files + (LP: #2037872) + + -- Nikhil Kshirsagar Wed, 04 Oct 2023 03:12:42 +0000 + sosreport (4.5.6-0ubuntu1~23.04.1) lunar; urgency=medium * New 4.5.6 upstream. (LP: #2028327) diff -Nru sosreport-4.5.6/debian/patches/0002-obfuscate-netplan-ssid-password.patch sosreport-4.5.6/debian/patches/0002-obfuscate-netplan-ssid-password.patch --- sosreport-4.5.6/debian/patches/0002-obfuscate-netplan-ssid-password.patch 1970-01-01 00:00:00.000000000 +0000 +++ sosreport-4.5.6/debian/patches/0002-obfuscate-netplan-ssid-password.patch 2023-10-04 03:12:08.000000000 +0000 @@ -0,0 +1,24 @@ +Description: Obfuscate passwords in netplan yaml files +Author: Arif Ali +Origin: upstream +Bug: https://github.com/sosreport/sos/issues/3365 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: sosreport-4.5.6/sos/report/plugins/networking.py +=================================================================== +--- sosreport-4.5.6.orig/sos/report/plugins/networking.py ++++ sosreport-4.5.6/sos/report/plugins/networking.py +@@ -299,5 +299,13 @@ class UbuntuNetworking(Networking, Ubunt + self.add_cmd_output("/usr/sbin/traceroute -n %s" % self.trace_host, + priority=100) + ++ def postproc(self): ++ ++ self.do_path_regex_sub( ++ "/etc/netplan", ++ r"(\s+password:).*", ++ r"\1 ******" ++ ) ++ + + # vim: set et ts=4 sw=4 : diff -Nru sosreport-4.5.6/debian/patches/series sosreport-4.5.6/debian/patches/series --- sosreport-4.5.6/debian/patches/series 2023-07-24 04:29:57.000000000 +0000 +++ sosreport-4.5.6/debian/patches/series 2023-10-04 03:09:03.000000000 +0000 @@ -1 +1,2 @@ 0001-debian-change-tmp-dir-location.patch +0002-obfuscate-netplan-ssid-password.patch diff -Nru sosreport-4.5.6/debian/tests/simple.sh sosreport-4.5.6/debian/tests/simple.sh --- sosreport-4.5.6/debian/tests/simple.sh 2022-02-16 04:06:06.000000000 +0000 +++ sosreport-4.5.6/debian/tests/simple.sh 2023-10-04 03:12:38.000000000 +0000 @@ -171,7 +171,7 @@ ip_addr=$(ip route show default | awk '/default/ {print $3}') if [ "$(grep -rI $ip_addr /tmp/sosreport_test/*)" ]; then add_failure "IP address not obfuscated in all places" - echo "$(grep -rI $ip_addr /tmp/sosreport/_test/*)" + echo "$(grep -rI $ip_addr /tmp/sosreport_test/*)" fi update_failures fi