community.general
community.general copied to clipboard
bitwarden - add support to create/edit fields
SUMMARY
Currently, the bitwarden
lookup does only read from Bitwarden. This PR adds functionality to the lookup to generate or set fields, to be able to completely work within ansible only.
This functionality is inspired by the passwordstore
lookup, which has a create=
field to add passwords not yet existing. Advantage is that all secrets not yet existing are generated on the fly where you just need a random secret.
As I found during my personal migration from passwordstore to bitwarden lookup, the most common fields were username
, password
, uris
and generic custom fields (to store api_key
, for example). Since Bitwarden items can have a big, complicated structure, I focused only on the few obvious fields to use for deployment in this PR, to keep it light and to not work in vain if the feature is to be unwanted.
This is my first PR, I depend on someone telling me what's missing or what I got wrong from reading the developer guidelines.
I will update the changelog fragment with the PR-number after opening this, but what do I put in the DOCUMENTATION
for my 2 newly added options in regards to version_added
?
ISSUE TYPE
- Feature Pull Request
COMPONENT NAME
bitwarden