Skip to content

Hide password in userdata parser logs#367

Open
kimdre wants to merge 1 commit into
atmoz:masterfrom
kimdre:patch-1
Open

Hide password in userdata parser logs#367
kimdre wants to merge 1 commit into
atmoz:masterfrom
kimdre:patch-1

Conversation

@kimdre

@kimdre kimdre commented Mar 14, 2023

Copy link
Copy Markdown

Replace password in log output with asterisks
Fixes #362
Improves #363

Results:

Before: [bash] Parsing user data: "user:abc!123:3000:4000:/home/user"
After: [bash] Parsing user data: "user:******:3000:4000:/home/user"

Replace password in log output with asterisks
Fixes atmoz#362

## Results:
Before: `[bash] Parsing user data: "user:abc!123:3000:4000:/user/home"`
After: `[bash] Parsing user data: "user:******:3000:4000:/user/home"`
@kimdre kimdre changed the title Hide password in userdata parser Hide password in userdata parser logs Mar 14, 2023

@vienleidl vienleidl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested already! It works well!

@leeleelou

Copy link
Copy Markdown

Any way we can update this and push it through? The encrypt method is deprecated and removed in Python 3.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User Names and Passwords exposed in Logs

6 participants