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

Auto generate passwords #234

Open
naxhh opened this issue Aug 17, 2015 · 4 comments
Open

Auto generate passwords #234

naxhh opened this issue Aug 17, 2015 · 4 comments

Comments

@naxhh
Copy link
Contributor

naxhh commented Aug 17, 2015

I think we should use some library to generate better passwords.

Default ones are ok, but we should encourage more strong non-predictible passwords...

This is an enhancement and with low priority. But PR's are welcome. As always

@naxhh
Copy link
Contributor Author

naxhh commented Dec 7, 2015

This is a nice to have feature.
A quick google search shows to libraries to consider:
https://github.com/ircmaxell/PHP-PasswordLib
https://github.com/hackzilla/password-generator

The task is simple. Generate on phansible random passwords where we are already hard-coding dummy things.
I'll like this to be a interface of a PasswordGenerator that has a public generate method.
And from there inject a specific adapter of one of our implementations.

We can start with any lib and from there choose a better one or just stop there.

@debo
Copy link
Member

debo commented Feb 16, 2016

@naxhh what password would you like to generate exactly? Is this just for auto-suggestion during setup or actual provisioning? Let's not forget that this for local development. Could you please elaborte further about the actual use case?

@naxhh
Copy link
Contributor Author

naxhh commented Feb 17, 2016

Yep. Ansible is for dev in first instance. But I don't feel ok letting passwords like: 123 as defaults.
Major reason is that people tend to keep those when the project works on Dev and move on to Prod.

It's for phansible UI only. Should not be related with roles. Roles can have a default one or whatever. But phansible should generate a random string. Nothing too complicated neither.

Anyway, this is just an idea, can be rejected anytime

@debo
Copy link
Member

debo commented Feb 17, 2016

Nah, I don't want to reject something related to security, I simply wanted to understand better the context and the requirement.

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

No branches or pull requests

2 participants