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

Filter by username #9

Open
markusressel opened this issue Sep 10, 2020 · 3 comments
Open

Filter by username #9

markusressel opened this issue Sep 10, 2020 · 3 comments
Assignees

Comments

@markusressel
Copy link

markusressel commented Sep 10, 2020

Hi there, really great module!

On some sites I have stored passwords in Bitwarden for multiple users (f.ex. root as well as markus).
Is there a way to add some kind of filter to the lookup call in a template, to specify this?
If not, would it be possible to add something like this, or can I do this using other ansible magic in a simple way?

Thx!

@c0sco
Copy link
Owner

c0sco commented Sep 17, 2020

What's been working for me is making sure each entry name is unique in bw. For example, SiteA (root) for the entry with the root username and SiteA (matt) for the entry with the matt username. Not the most glamorous way to do it, but it works, and doesn't break functionality elsewhere (like in browser extensions). Either way you have to specify which username you want at some point, whether it's in the name of the entry or through some sort of search command 🤷

@c0sco c0sco self-assigned this Sep 17, 2020
@markusressel
Copy link
Author

@c0sco thx for the response.
I thought about including the username in the title, and that is probably how I will do it, but it requires two bitwarden entity fields to be synchronized manually (the name and the username field). I know, it is not that big of a hassle, but it is error prone and, well, redundant. Including some kind of filtering logic to this module could be of value imho (maybe also in other situations).

@c0sco
Copy link
Owner

c0sco commented Sep 17, 2020

Makes sense! Unfortunately I don't have much time these days to contribute to this project, but we can definitely keep this issue open in case someone else is able to come up with a good solution.

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

2 participants