Refactor #19534
Excessive amount of log messages around db field encryption
Description
Foreman logs tremendous amount of messages about db field encryption. Major issues: Every en/decryption is logged at info level:
Successfully decrypted field for XYZ
Every attempt to decrypt unencrypted field is reported via debug (annoying in dev mode):
String does not start with the prefix 'encrypted-' XYZ
We should not log success scenarios at all (maybe into TRACE level if we had one) and we need to decrease amount of logs for the other actions, like the annoying "String does not start" messasges.
Related issues
Associated revisions
refs #19534 - check EncryptValue class variables are defined
bed4594 added class variables to record logging state, but failed to
check it was defined before accessing them, causing exceptions when
decryption failed. Tests added for this new behaviour.
Fixes #19534 - removed excessive encryptor logging
(cherry picked from commit bed45946878572b854e64b54ca63a8b294cb53bf)
refs #19534 - check EncryptValue class variables are defined
bed4594 added class variables to record logging state, but failed to
check it was defined before accessing them, causing exceptions when
decryption failed. Tests added for this new behaviour.
(cherry picked from commit 1da8bd42a95c9e254ea28efbd1b409ac5ab3033e)
History
#1
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Lukas Zapletal
- Pull request https://github.com/theforeman/foreman/pull/4529 added
#2
Updated by Lukas Zapletal almost 6 years ago
- Legacy Backlogs Release (now unused) set to 248
Daniel, I am proposing this for 1.15.1 as this is constantly flooding our logs.
#3
Updated by The Foreman Bot almost 6 years ago
- Pull request https://github.com/theforeman/foreman/pull/4533 added
#4
Updated by Lukas Zapletal almost 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 04d9f6ed80b151763d48855aa6146de0e30e22aa.
#5
Updated by Dominic Cleal almost 6 years ago
- Pull request deleted (
https://github.com/theforeman/foreman/pull/4533)
04d9f6e has the incorrect ticket number, it should have referred to #19558.
#6
Updated by The Foreman Bot almost 6 years ago
- Pull request https://github.com/theforeman/foreman/pull/4548 added
#7
Updated by The Foreman Bot almost 6 years ago
- Pull request https://github.com/theforeman/foreman/pull/4533 added
#8
Updated by Lukas Zapletal almost 6 years ago
- Pull request deleted (
https://github.com/theforeman/foreman/pull/4533)
04d9f6e has the incorrect ticket number, it should have referred to #19558
#9
Updated by Lukas Zapletal almost 6 years ago
- Related to Refactor #19558: Improve orchestration queue logging added
Fixes #19534 - removed excessive encryptor logging