Skip to content

Conversation

@kimdre
Copy link

@kimdre kimdre commented Mar 14, 2023

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
Copy link

@vienleidl vienleidl left a comment

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

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