Skip to content

Fix hash server passwords leaking in logs

Joshua Watt bitbake-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2exceptions: Add option to hide frame arguments in exceptionsbitbake/lib/bb/exceptions.py+11 -130 replies
2/2hashserv: Do not print passwords in exceptionsbitbake/lib/hashserv/__init__.py bitbake/lib/hashserv/client.py bitbake/lib/hashserv/server.py +1 more+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [bitbake-devel][PATCH 0/2] Fix hash server passwords leaking in logs

bitbake prints out function arguments when an exception occurs to aid in debugging. However, several places in the hash equivalence code that pass a password as an argument which means that an exception in one of these code paths would cause the password to be printed out in plain text.

Fix this by implementing a mechanism that allows functions to opt out of having their arguments printed in backtraces and set the flag for the affected hash equivalence code.

Joshua Watt (2):
exceptions: Add option to hide frame arguments in exceptions
hashserv: Do not print passwords in exceptions

 bitbake/lib/bb/exceptions.py       | 24 +++++++++++-------------
 bitbake/lib/hashserv/__init__.py   |  6 ++++++
 bitbake/lib/hashserv/client.py     |  6 ++++++
 bitbake/lib/hashserv/server.py     |  2 ++
 bitbake/lib/hashserv/sqlalchemy.py |  2 ++
 5 files changed, 27 insertions(+), 13 deletions(-)
Signature · 1 line
2.47.1