Fix hash server passwords leaking in logs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | exceptions: Add option to hide frame arguments in exceptionsbitbake/ | +11 | 0 replies | |
| 2/2 | hashserv: Do not print passwords in exceptionsbitbake/ bitbake/ bitbake/ +1 more | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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