thrukadmin.passwd file shows bytestring on Bionic

Bug #1942630 reported by Drew Freiberger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Thruk Master Charm
Fix Released
Medium
Diko Parvanov

Bug Description

When installing thruk-master on a bionic system, the thrukadmin password ends up having the byte-string wrapper and \n encoded as part of the actual password.

ubuntu@juju-91feaf-2:~$ sudo more /var/lib/thruk/thrukadmin.passwd
b'JG2CrQzRZB9Csw3U\n'
ubuntu@juju-91feaf-2:~$

When logging into the web interface, you then must include the b' and \n' parts of this password to login.

This variable should be decoded properly in the code when python3 is the default python version.

Related branches

Revision history for this message
Drew Freiberger (afreiberger) wrote :

also happens on fresh trusty deployments.

Diko Parvanov (dparv)
Changed in charm-thruk-master:
assignee: nobody → Diko Parvanov (dparv)
Revision history for this message
Diko Parvanov (dparv) wrote :

+ also happens on xenial

Changed in charm-thruk-master:
status: New → Confirmed
Revision history for this message
Diko Parvanov (dparv) wrote :

Seems like the password generation was broken, not the actual writing to the file. Changed the pwgen binary with native python libraries to generate the password. Proposed fix.

Changed in charm-thruk-master:
importance: Undecided → High
importance: High → Medium
Diko Parvanov (dparv)
Changed in charm-thruk-master:
status: Confirmed → Fix Committed
Celia Wang (ziyiwang)
Changed in charm-thruk-master:
status: Fix Committed → Fix Released
milestone: none → 21.10
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.