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

Feature request: Automatically generate new passwords if an entry doesn't exist #3

Open
nogweii opened this issue Feb 21, 2019 · 3 comments

Comments

@nogweii
Copy link

nogweii commented Feb 21, 2019

A new option to create a random password and an associated entry if it doesn't exist. Much like the password lookup plugin in core ansible.

@c0sco
Copy link
Owner

c0sco commented Jun 16, 2019

Thanks for the idea. I think having some functionality around using the bw generate command would be interesting. One thing I wonder about is how to specify the parameters to the generate command. I think we could specify some sane defaults, but in the case where someone needed to override them (changing the length, char set, etc.), I'm not sure how that would look. Any ideas or PRs are most certainly welcome.

@MegaphoneJon
Copy link

The pass lookup module supports this feature. It does a pretty good job of specifying length, char set, etc.: https://docs.ansible.com/ansible/latest/plugins/lookup/passwordstore.html.

Note that the char set support isn't as flexible as pass or bw allows, which is perhaps acceptable for improved UX. However, I wrote an alternate implementation to specify char set (ansible/ansible#44541), which would allow using bw generate as flexibly as the CLI itself does. I think both approaches have merit.

@danielo515
Copy link

I think that just providing a function to store a generated password may be enough? Then you generate it with whathever method you want (ansible built-in password generator, openssh, /dev/random) and save it to bitwarden?

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

No branches or pull requests

4 participants