-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add log sanitization for Secret kind in updateResource
- Added a new function `desensitizeLog` to sanitize logs by replacing sensitive data in a Secret with "***". - Modified the `updateResource` function to use `desensitizeLog` when the kind is "Secret". - Added a test case for the `desensitizeLog` function to ensure it works as expected. Signed-off-by: Daniel Hu <tao.hu@merico.dev>
- Loading branch information
1 parent
03911ae
commit 309cad9
Showing
2 changed files
with
61 additions
and
1 deletion.
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
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