-
Notifications
You must be signed in to change notification settings - Fork 34
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
User creation with password #437
Conversation
Could you use a Rust crate to handle the password hashing instead of shelling out to |
Also we should be defaulting to SHA512 for the algorithm; MD5 is considered insecure these days. |
Or using a function in the openssl crate. |
are we not contradicting to FIDO policy of "password less" logins by providing a way to set password for initial user ? |
An general thought on having the plain text password in .yaml which may raise some eyebrows.We can force user to put the encrypted password in the file as its done with the |
the ssh_key feature already exists, this added feature is for any user who requires password to be set also. |
Thank you all for the comments/ideas, I'm going to try to understand the openssl crate and I'll make the other changes above too. |
7aad656
to
c17a543
Compare
c93c4b9
to
8cdbcbe
Compare
a9943aa
to
5e3af19
Compare
There are some changes made into the Other than that, we are not testing that you can add more than one ssh key per user, but we can add that as a follow-up PR. So, feel free to mark the PR as ready |
Can we ensure an issue is created so that isn't lost. |
Yep, linking the issue here for future reference #507 |
2ed6ae5
to
ee6960f
Compare
252ec71
to
d312892
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good, thank you!
Allows users to create a password for login when onboarding a device. These passwords are optional and should be provided within the 'serviceinfo_api_server.yml' config file. A user's password will be encrypted via SHA-256 if it is not already encrypted when provided to the config. Signed-off-by: djach7 <djachimo@redhat.com>
Signed-off-by: djach7 <djachimo@redhat.com>
This pr attempts to implement the creation of a user and password when onboarding a device, using a username and password provided within the serviceinfo_api_server.yml config.
closes #321
This is a draft, current known issues include: