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

Add support to Bitwarden Lookup for filtering results by collection id #5849

Open
1 task done
psalkowski opened this issue Jan 17, 2023 · 2 comments
Open
1 task done
Labels
feature This issue/PR relates to a feature request lookup lookup plugin plugins plugin (any type)

Comments

@psalkowski
Copy link
Contributor

Summary

Bitwarden allow to use collections for storing data. In some cases, to simplify CI/CD process with ansible, users may setup collections per environment (like dev, staging, production). They will use the same names for vault items, but stores in different collections. At the end, in CI/CD you can setup one ENV variable that mention the collection id and pass it to ansible. Otherwise, you will have to have unique vault item names.

Of course collection id should be optional.

Issue Type

Feature Idea

Component Name

lookup/bitwarden

Additional Information

- name: "Get 'password' from Bitwarden record named 'a_test' from collection "
  ansible.builtin.debug:
    msg: >-
      {{ lookup('community.general.bitwarden', 'a_test', field='password', collectionId='bafba515-af11-47e6-abe3-af1200cd18b2') }}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @lungj
click here for bot help

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request lookup lookup plugin plugins plugin (any type) labels Jan 17, 2023
felixfontein pushed a commit that referenced this issue Jan 28, 2023
…5849) (#5851)

* Add support to Bitwarden Lookup for filtering results by collection id (#5849)

* Debug

* Add support to Bitwarden Lookup for filtering results by collection id (#5849)

* Update comments

* Fix blank line issue

* Fix unit tests for bitwarden lookup plugin. Add changelog fragment file.

* Change collectionId to collection_id parameter on bitwarden plugin

* Fix collection id parameter name when used in bw cli
patchback bot pushed a commit that referenced this issue Jan 28, 2023
…5849) (#5851)

* Add support to Bitwarden Lookup for filtering results by collection id (#5849)

* Debug

* Add support to Bitwarden Lookup for filtering results by collection id (#5849)

* Update comments

* Fix blank line issue

* Fix unit tests for bitwarden lookup plugin. Add changelog fragment file.

* Change collectionId to collection_id parameter on bitwarden plugin

* Fix collection id parameter name when used in bw cli

(cherry picked from commit 7b8b73f)
felixfontein pushed a commit that referenced this issue Jan 28, 2023
…p for filtering results by collection (#5849) (#5904)

Add support to Bitwarden Lookup for filtering results by collection (#5849) (#5851)

* Add support to Bitwarden Lookup for filtering results by collection id (#5849)

* Debug

* Add support to Bitwarden Lookup for filtering results by collection id (#5849)

* Update comments

* Fix blank line issue

* Fix unit tests for bitwarden lookup plugin. Add changelog fragment file.

* Change collectionId to collection_id parameter on bitwarden plugin

* Fix collection id parameter name when used in bw cli

(cherry picked from commit 7b8b73f)

Co-authored-by: Piotr <skc.peter@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request lookup lookup plugin plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

2 participants