-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed clear-text logging of all password-like properties in API/HMC log
Details: * Reworked the @logged_api_call decorator to get optional parameters for specifying properties ot be blanked out in the API logging. This required significant reimplementation of that decorator and the functions it calls. * Fixed the clear-text logging of all password-like properties in the API logging by using this new capability of the @logged_api_call decorator. * Fixed the clear-text logging of all password-like properties in the HMC logging by blanking them out in the Session.post() method. * Added unit test cases for the blanked-out API logging, in the test_logging.py module. * Added unit test cases for the blanked-out API logging, in all test modules for those resources that have blanked-out properties. * Improved the checking in the unit test cases for API logging, to check the function name, args, kwargs and return value in the log messages. Signed-off-by: Andreas Maier <[email protected]>
- Loading branch information
1 parent
f594a77
commit f2d096e
Showing
16 changed files
with
453 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Dev: Enhanced the zhmcclient API logging code so that in the debugger, | ||
zhmcclient API functions now have less logging steps to go through until the | ||
actual API function is reached. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Fixed that some passwords in the zhmcclient API logs and HMC logs are no longer | ||
written in clear text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.