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

add password option to server.user #1040

Merged
merged 2 commits into from
Nov 26, 2023

Conversation

disser
Copy link
Contributor

@disser disser commented Nov 22, 2023

No description provided.

@@ -417,6 +417,7 @@ class Users(FactBase):
"uid": user_id,
"gid": main_user_group_id,
"lastlog": last_login_time,
"password": encrypted_password,
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @disser !
I am no sure that get encrypted password in the Fact is a good idea.
Do you have a use case for this ?
Maybe just password = True/False should be enough ?
Regards,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The use case is to allow changing the password of an existing account to be idempotent here.

Copy link
Member

@Fizzadar Fizzadar left a comment

Choose a reason for hiding this comment

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

This is a great add @disser, thank you for the PR!

@Fizzadar Fizzadar merged commit 84fca9a into pyinfra-dev:2.x Nov 26, 2023
23 checks passed
@disser disser deleted the set-server.user-password branch November 29, 2023 23:14
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.

3 participants