You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using bitwarden-sdk 0.1.1 (as installed via pip) and the ansible-galaxy collection bitwarden.secrets 1.0.0 (both the current most recent versions) - functionality is just generally broken.
Performing ANY sort of lookup results in the error:
{"msg": "An unhandled exception occurred while running the lookup plugin 'bitwarden.secrets.lookup'. Error was a <class 'AttributeError'>, original message: 'BitwardenClient' object has no attribute 'access_token_login'. 'BitwardenClient' object has no attribute 'access_token_login'"}
Small example code to test:
- name: Bitwarden Secrets Manager Broken Out Of Box
hosts: localhost
tasks:
- name: Create user
ansible.builtin.user:
name: "testuser"
append: true
create_home: true
skeleton: true
- name: upload public key
ansible.posix.authorized_key:
exclusive: true
key: "{{ lookup('bitwarden.secrets.lookup', 'my-very-secret-id') }}"
user: "testuser"
This is fixable by reverting to bitwarden-sdk 0.1.0
The text was updated successfully, but these errors were encountered:
Running that playbook gives the same error
{"msg": "An unhandled exception occurred while running the lookup plugin 'bitwarden.secrets.lookup'. Error was a <class 'AttributeError'>, original message: 'BitwardenClient' object has no attribute 'access_token_login'. 'BitwardenClient' object has no attribute 'access_token_login'"}
reverting by installing pip install bitwarden-sdk==0.1.0 fixes the error and the secret is returned successfully.
Using bitwarden-sdk 0.1.1 (as installed via pip) and the ansible-galaxy collection bitwarden.secrets 1.0.0 (both the current most recent versions) - functionality is just generally broken.
Performing ANY sort of lookup results in the error:
{"msg": "An unhandled exception occurred while running the lookup plugin 'bitwarden.secrets.lookup'. Error was a <class 'AttributeError'>, original message: 'BitwardenClient' object has no attribute 'access_token_login'. 'BitwardenClient' object has no attribute 'access_token_login'"}
Small example code to test:
This is fixable by reverting to bitwarden-sdk 0.1.0
The text was updated successfully, but these errors were encountered: