-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
passwordstore: Make compatible with shims #4780
passwordstore: Make compatible with shims #4780
Conversation
@grembo: Greetings! Thanks for taking the time to open this pullrequest. In order for the community to handle your pullrequest effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this pullrequest with this template: |
You are modifying the integration tests btw, not the unit tests :-) |
Fortunately you'll squash those commits :) |
True, but the squashing will keep all commit messages :) |
Well, you could edit them, otherwise the commit will be overly verbose. |
I never do. If you want to resulting commit message to be different, you need to rebase and edit the messages yourself (or squash commits which should result in only one line). |
I can (and will) do that - I just remember from last time that you prefer to squash yourself. |
b5ac8e6
to
88309b7
Compare
This allows using the passwordstore plugin with scripts that wrap other password managers. Also adds an explicit configuration (`backend` in `ini` and `passwordstore_backend` in `vars`) to set the backend to `pass` (the default) or `gopass`, which allows using gopass as the backend without the need of a wrapper script. Please be aware that gopass support is currently limited, but will work for basic operations. Includes integrations tests. Resolves ansible-collections#4766
88309b7
to
263ba86
Compare
@felixfontein Squashed it |
See https://github.com/ansible-collections/community.general/blob/main/CONTRIBUTING.md#open-pull-requests, it explains why we prefer authors not to squash their commits. It also says "if not needed". Fixing individual commit messages because of errors in them is a valid reason to modify them (and also it's different from squashing everything). |
So I probably oversquashed this one. It's not too bad though, as code based review comments were fairly minimal and almost all of the relevant discussion leading to it happened in #4766 anyway. Next time ¯_(ツ)_/¯ |
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.
Besides two little improvements for the tests, looks good!
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #4846 🤖 @patchback |
* passwordstore: Make compatible with shims, add backend config This allows using the passwordstore plugin with scripts that wrap other password managers. Also adds an explicit configuration (`backend` in `ini` and `passwordstore_backend` in `vars`) to set the backend to `pass` (the default) or `gopass`, which allows using gopass as the backend without the need of a wrapper script. Please be aware that gopass support is currently limited, but will work for basic operations. Includes integrations tests. Resolves #4766 * Apply suggestions from code review (cherry picked from commit 006f3bf)
@grembo thanks for contributing this! |
* passwordstore: Make compatible with shims, add backend config This allows using the passwordstore plugin with scripts that wrap other password managers. Also adds an explicit configuration (`backend` in `ini` and `passwordstore_backend` in `vars`) to set the backend to `pass` (the default) or `gopass`, which allows using gopass as the backend without the need of a wrapper script. Please be aware that gopass support is currently limited, but will work for basic operations. Includes integrations tests. Resolves #4766 * Apply suggestions from code review (cherry picked from commit 006f3bf) Co-authored-by: grembo <[email protected]>
SUMMARY
This allows using it with scripts wrapping other password managers
like gopass. Also adds an explicit way of configuring the backend to be
used (pass and gopass).
Includes integrations tests.
Resolves #4766
ISSUE TYPE
COMPONENT NAME
passwordstore
plugins/lookup/passwordstore
ADDITIONAL INFORMATION
See #4779 for an alternative implementation of addressing #4766.