Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid logging secrets in Engine debug logs #646

Merged
merged 3 commits into from Oct 14, 2022

Conversation

mz-pdm
Copy link
Member

@mz-pdm mz-pdm commented Sep 8, 2022

This fixes issue #641. See also oVirt/vdsm-jsonrpc-java#24.

Copy link
Collaborator

@ljelinkova ljelinkova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like how you and Shmuel approached this. Looks good!

This class allows wrapping values that shouldn’t be exposed in logs.
Its toString method returns just a placeholder and the real value must
be retrieved using getValue method.

This is useful for wrapping values such as TPM data, secure boot
NVRAM data, or passwords passed in cloud init, in order to prevent
them from exposing in DEBUG logs.  See the followup patches for
particular examples.
The password is currently replaced in meta data but it occurs in user
data.  Let’s replace it there too.
Copy link
Member

@smelamud smelamud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thanks, Milan!

@ljelinkova ljelinkova merged commit 4000755 into oVirt:master Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants