Error on anatomicjc.passbolt lookup ansible

Hello,

I already write an issue on the github but i don’t know where it’s better to post ?
I have this error on my playbook when I use the lookup ansible anatomicjc.passbolt :

TASK [Passbolt lookup plugin / fetch one] ********************************************************************************************************************
fatal: [server -> localhost]: FAILED! => 
  msg: 'An unhandled exception occurred while running the lookup plugin ''anatomicjc.passbolt.passbolt''. Error was a <class ''json.decoder.JSONDecodeError''>, original message: Expecting value: line 1 column 1 (char 0). Expecting value: line 1 column 1 (char 0)'

Here is my code :

- hosts: all
  gather_facts: false
  environment:
    PASSBOLT_BASE_URL: "http://vault.test.fr"
    PASSBOLT_VERIFY: false
    PASSBOLT_CREATE_NEW_RESOURCE: true
    PASSBOLT_PRIVATE_KEY: "mygpgkey"
    PASSBOLT_PASSPHRASE: "foobar"

  tasks:
    - name: "Passbolt lookup plugin / fetch one"
      delegate_to: localhost
      become: false
      ansible.builtin.debug:
        var: item
      loop:
        - "{{ lookup('anatomicjc.passbolt.passbolt', 'Test') }}"
      changed_when: true

    - name: "Passbolt lookup plugin / fetch one"
      delegate_to: localhost
      become: false
      ansible.builtin.debug:
        var: lookup(anatomicjc.passbolt.passbolt, 'test2', paswword='test1324*')
      changed_when: true

I don’t know where is my mistake ? I think i configure everything like it needs to be.

Plugin version :
anatomicjc.passbolt 0.0.14
passbolt 1.24
py-passbolt 0.0.18

I have a Self Signed Certificate but i don’t think it’s coming from this.

Regards,

I change my playbook to use the ansible-vault, i think the problem comes from the last newline of the gpg key after the sed command.

Now I have this error :

fatal: [server -> localhost]: FAILED! => 
  msg: 'An unhandled exception occurred while running the lookup plugin ''anatomicjc.passbolt.passbolt''. Error was a <class ''ValueError''>, original message: Expected: ASCII-armored PGP data. Expected: ASCII-armored PGP data'

i don’t know what is the problem :confused:

I can confirm that my creds are good, i can use the passbolt CLI :

passbolt configure --serverAddress http://vault.test.fr --userPassword 'PASSWORD' --userPrivateKeyFile passbolt_private.asc

passbolt list resource                                                                                                               
ID                                   | FolderParentID | Name | Username | URI              
b7209b02-d545-4045-91ef-5e268401b168 |                | Test | Test     | http://example.fr

passbolt get resource --id b7209b02-d545-4045-91ef-5e268401b168
FolderParentID: 
Name: Test
Username: Test
URI: http://example.fr
Password: Test1234*
Description: test

Hi @RomyxBaps :wave:,

Regarding the PASSBOLT_PRIVATE_KEY variable, did you put your gpg key in oneline format ?

sed -z 's/\n/\\n/g' your_private_key.asc

Reference: Ansible Galaxy

Hello @AnatomicJC ,

Thank you for your reply !
Yes i did the command for my private_key that i get from the WebUI on my user profile.

Here is the debug of the PASSBOLT_PASSPHRASE and PASSBOLT_PRIVATE_KEY :

TASK [DEBUG ENV PASSPHRASE] **************************************************************************************************************************************************************************************************************************************************************************************************
changed: [server -> localhost] => 
  ansible_env.PASSBOLT_PASSPHRASE: Test1234*

TASK [DEBUG ENV PRIVATEKEY] **************************************************************************************************************************************************************************************************************************************************************************************************
changed: [server -> localhost] => 
  ansible_env.PASSBOLT_PRIVATE_KEY: '-----BEGIN PGP PRIVATE KEY BLOCK-----\n\nxcTGBGaRnUIBDADz47BGZak6YWdJonVg/8VXpL4nGwDeTneEjP2YndRCvwVm\nE/msqrnvvf8G+NvBTeS8EfFXg7924lqlcP4w7ZnxPAnPZftZmZCqjGcSEFkH\nG5m7m4biJq.....
CqV9re0EKWdLkovgfiMnw9bjhxUzIUjsiMslAb+2+b\nuo6pyC0rmLetUH4wJW8fyFc2/tqx/UNq9xrcmG8rCUhm8koO5/bIjA2cw1LV\n1cT4GElesiJvQRMjIbKx/oDvPhWatJJEFBOqZu7E0Q==\n=mC+7\n-----END
    PGP PRIVATE KEY BLOCK-----\n'

TASK [Passbolt lookup plugin / fetch one] ************************************************************************************************************************************************************************************************************************************************************************************
fatal: [server -> localhost]: FAILED! => 
  msg: 'An unhandled exception occurred while running the lookup plugin ''anatomicjc.passbolt.passbolt''. Error was a <class ''ValueError''>, original message: Expected: ASCII-armored PGP data. Expected: ASCII-armored PGP data'

PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************************************************************
server  : ok=9    changed=8    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

Maybe it’s not good on the gpgkey ?

Do you really have the five dots and the return line for PGP PRIVATE KEY BLOCK-----\n' ?

In my example playbook, I replaced the first task with this one to display ada_private_key_vault content:

    - name: "Password from ansible vault"
      debug:
        var: ada_private_key_vault

Here is the output:

TASK [Password from ansible vault] *****************************************************************************************************************************************************************************************************************************************************
Thursday 08 August 2024  12:27:40 +0000 (0:00:00.021)       0:00:00.021 *******
ok: [local1] => {
    "ada_private_key_vault": "-----BEGIN PGP PRIVATE KEY BLOCK-----\n\nlQdFBGHLRi0BEACtdd6YW7N1d8KuC1Yq6Wy7OOtiWuejRVbfpbRlvohpe2wINH1L\nFCktNc2sJDxpO4xWTxm8qAdjdtAswThpG4gF2UMs/mvgj9fNxp0wvGDVJaIwnpVZ\nVh6Q5THbleCz4fAnx9r5X9c11lpfmSEe3unfylT3JOJPQ+delLXyr8ZSY+qVM6vT\n3t+UH8pofedIst54sGh9ExD4FSCkspH7QVaAg233TLjP9z7DkXn2ab2rwAYImuGL\npi0uMMJsYn23STJ6qidcYC2SPbpaZca+xQijbqFtDHJQCt49Y18NEJLYhLsREg9c\nS7uDd+cI3hhmrzmYy8AroU5CzFnOblUVcoYNwQNd7YFHCc0ZsUfTl54z4RknhwI1\nhQ33g712tC2MENqZJcI4JDkrzKpzmvWYMHFyYjGIzHES57SeKiWv3lzeZcDm4Ro/\nWeO+UUsCxbiCOmAIkkrkZyheT2HQuVOeC6moR6QzOk69Q6FTgGZtnwdg6UNkp7vy\nJdE9Qpe8p4K/fDojHOqS44ts5s9k0UL6N0zBaQKHdy3QVym2tgDb1zbYrf/YcGiK\nSdV1MQcS6hDYhQ+85QnQavnHx7rr0cmO0dQrofPzB82OEhhJftZbkEAFhFZpqbys\nG8AZfV5i8oP6uVPPujuM9Caft0eYNqi8DjF0mTKrE3AvWHu5hvin4ArniQARAQAB\n/gcDAp0JGTDDX8ZF8FsNDdPHb7E+M7nBneqh1G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aYn8/gSWPu2j5uIoNRcs8ccGakFeF\na4j0+e/ibnclRHH/Ig2c427XGvCScD+krMOeGg8DRAVa2eckLDKmymY+lRkHeqnx\n0xfbCa5eVFCUslk6LLA29Q3lCwwidM+/Wqh0M52YArkyG5OLqRimEdzJF28qsNNK\n0mc79RR1c7eFLvkLMNyaJK6Q9kVe9ta6pWCPe/7vVy741Sci971N2I6xMofZDYqB\n2t8G2+MnLCkY5Zw+dgX7sCh1DLsSUbyN3Ux09tuv1LXkWZX2njjQ528Cd2JgdfuY\nv04k4WsQApMcVvv2Ja5Wo/+EjvSjuw==\n=4tPN\n-----END PGP PRIVATE KEY BLOCK-----\n"

there is only one line.

I forgot the link to the example playbook: lab-passbolt-ansible-poc/playbooks/example-playbook.yml at main · passbolt/lab-passbolt-ansible-poc · GitHub

I dont have the five dots it’s to avoid to display a lot of line.
BUT i really have the return line for PGP PRIVATE KEY BLOCK-----\n'.
I don’t really know why because i test it multiple times with every time a re-download of the passbolt_private.asc from my user in passbotl’s webui.

It is not a problem, you can try to put the END PGP PRIVATE KEY BLOCK on the same line:

Same error…
Here is all my private key (no worries it’s a lab) from a file after the command sed :

-----BEGIN PGP PRIVATE KEY BLOCK-----\nxcTGBGaRnUIBDADz47BGZak6YWdJonVg/8VXpL4nGwDeTneEjP2YndRCvwVm\nE/msqrnvvf8G+NvBTeS8EfFXg7924lqlcP4w7ZnxPAnPZftZmZCqjGcSEFkH\nG5m7m4biJqqz3HI4WCBX8ouW9YkZ1g7gRfnTPxbiqpg7DiwNDxVEAkfhR8pN\n85j0lpZknJz3A38J24A/htkksPE6yQWwEHG9VIOTWn4j+twd2hdJHg7BHM4D\nWCIheWdThQxj0G/hB96ltn7Q1BAa3vkbOEUiMkgoPjqom0KSvlcw31gBZXtu\nwt/5F/3XDAV21dLqeRMtnNVTfkWpBFqtsTRTMg81DeJdnHkHA+nrpUwlTq5e\nr7lKjs1fpYQpir//6Q0vytQZvULrku3T3RZCPb8XCipauXJDlqKSB0IC/B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Wh3dRtzjMW90V6TPMyAR0T+OR1tLFWTvfz65zOU\nZvLPoQBIJxZFP6F5frk1cZQqQKJ8waHKflVaWJJsXf3jUr48tmsofqcYzypb\nFQW+LXqi/QOXUfiGqwFc3TMzVyhdB0xFUTsuOWzyJAVfBt+RikNiKD1rUU/5\nFhdwLSnIV6SbsiR1iXJasibxJnGRZL8yJFC1HzJLQ1umoZt9TPIWbWjM+SHG\nhljsS09gnmzvYA0f3ftEwiZ8xpI13HuSgb/I4c3+kE4aErOEXMDxO65bl/hx\ngrY3M2DdR8ir1Og+Q/CqV9re0EKWdLkovgfiMnw9bjhxUzIUjsiMslAb+2+b\nuo6pyC0rmLetUH4wJW8fyFc2/tqx/UNq9xrcmG8rCUhm8koO5/bIjA2cw1LV\n1cT4GElesiJvQRMjIbKx/oDvPhWatJJEFBOqZu7E0Q==\n=mC+7\n-----END PGP PRIVATE KEY BLOCK-----

here is the result from my playbook :

TASK [DEBUG ENV PRIVATEKEY] **********************************************************************************************************************************
changed: [server -> localhost] => 
  ansible_env.PASSBOLT_PRIVATE_KEY: '-----BEGIN PGP PRIVATE KEY BLOCK-----\nxcTGBGaRnUIBDADz47BGZak6YWdJonVg/8VXpL4nGwDeTneEjP2YndRCvwVm\nE/msqrnvvf8G+NvBTeS8EfFXg7924lqlcP4w7ZnxPAnPZftZmZCqjGcSEFkH\nG5m7m4biJqqz3HI4WCBX8ouW9YkZ1g7gRfnTPxbiqpg7DiwNDxVEAkfhR8pN\n85j0lpZknJz3A38J24A/htkksPE6yQWwEHG9VIOTWn4j+twd2hdJHg7BHM4D\nWCIheWdThQxj0G/hB96ltn7Q1BAa3vkbOEUiMkgoPjqom0KSvlcw31gBZXtu\nwt/5F/3XDAV21dLqeRMtnNVTfkWpBFqtsTRTMg81DeJdnHkHA+nrpUwlTq5e\nr7lKjs1fpYQpir//6Q0vytQZvULrku3T3RZCPb8XCipauXJDlqKSB0IC/BXt\nfnADHahT+xwzAJS1T03ukE+WpCHTxpKVz9u9T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\nZvLPoQBIJxZFP6F5frk1cZQqQKJ8waHKflVaWJJsXf3jUr48tmsofqcYzypb\nFQW+LXqi/QOXUfiGqwFc3TMzVyhdB0xFUTsuOWzyJAVfBt+RikNiKD1rUU/5\nFhdwLSnIV6SbsiR1iXJasibxJnGRZL8yJFC1HzJLQ1umoZt9TPIWbWjM+SHG\nhljsS09gnmzvYA0f3ftEwiZ8xpI13HuSgb/I4c3+kE4aErOEXMDxO65bl/hx\ngrY3M2DdR8ir1Og+Q/CqV9re0EKWdLkovgfiMnw9bjhxUzIUjsiMslAb+2+b\nuo6pyC0rmLetUH4wJW8fyFc2/tqx/UNq9xrcmG8rCUhm8koO5/bIjA2cw1LV\n1cT4GElesiJvQRMjIbKx/oDvPhWatJJEFBOqZu7E0Q==\n=mC+7\n-----END
    PGP PRIVATE KEY BLOCK-----'

TASK [Passbolt lookup plugin / fetch one] ********************************************************************************************************************
fatal: [server -> localhost]: FAILED! => 
  msg: 'An unhandled exception occurred while running the lookup plugin ''anatomicjc.passbolt.passbolt''. Error was a <class ''ValueError''>, original message: Expected: ASCII-armored PGP data. Expected: ASCII-armored PGP data'

PLAY RECAP ***************************************************************************************************************************************************
server  : ok=9    changed=8    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0  

Here is my playbook:

# export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
- hosts: all
  gather_facts: no
  environment:
    PASSBOLT_BASE_URL: "http://passbolt"
    #PASSBOLT_GPG_LIBRARY: "gnupg"
    #PASSBOLT_FINGERPRINT: "064DE03152856A227FEFB0AD56BB3FB586945488"
    PASSBOLT_PRIVATE_KEY: "{{ ada_private_key_vault }}"
    PASSBOLT_PASSPHRASE: "{{ ada_passphrase_vault }}"
    PASSBOLT_CREATE_NEW_RESOURCE: "true"
    PASSBOLT_NEW_RESOURCE_PASSWORD_LENGTH: 20
    PASSBOLT_NEW_RESOURCE_PASSWORD_SPECIAL_CHARS: "true"
  vars:
    passbolt: 'anatomicjc.passbolt.passbolt'
    passbolt_inventory: 'anatomicjc.passbolt.passbolt_inventory'
    aws:
      access_key: "{{ lookup(passbolt, 'AWS').password }}"
      secret_key: "{{ lookup(passbolt, 'AWS').description }}"
    # To understand python regex syntax: https://docs.python.org/3/howto/regex.html
    passbolt_check_naming_only_alphanumerics: '^\w*$'
    passbolt_check_naming_alphanumerics_separated_with_spaces: '^\w*\s*\w*$'
  tasks:
    - name: "Password from ansible vault"
      debug:
        var: ada_private_key_vault
    - name: "Passbolt lookup plugin / fetch one"
      delegate_to: localhost
      become: false
      ansible.builtin.debug:
        var: item
      loop:
        - "{{ lookup('anatomicjc.passbolt.passbolt', 'Test') }}"
      changed_when: true

Here is my inventory/group_vars/all/vault.yml:

ansible_vault_protected: !vault |
  $ANSIBLE_VAULT;1.1;AES256
  61363037313764343735346263316433346330613930623265643533613835336361316561376261
  3564396539623162343064636438313030306262306637380a386636313730323139306139326430
  66386565386566666662346162373139366633306537643730346333396261376438643433653064
  6264643035353239360a643736396264323432383965653235343431653837643136353536646462
  65313865396637646464636234373333313632303962323637346236643364353365363333333765
  39363165393166313265666364316363363536356165353332383132306564396533313663643733
  383438626661386263626462356239626233

ada_private_key_vault: "-----BEGIN PGP PRIVATE KEY BLOCK-----\nxcTGBGaRnUIBDADz47BGZak6YWdJonVg/8VXpL4nGwDeTneEjP2YndRCvwVm\nE/msqrnvvf8G+NvBTeS8EfFXg7924lqlcP4w7ZnxPAnPZftZmZCqjGcSEFkH\nG5m7m4biJqqz3HI4WCBX8ouW9YkZ1g7gRfnTPxbiqpg7DiwNDxVEAkfhR8pN\n85j0lpZknJz3A38J24A/htkksPE6yQWwEHG9VIOTWn4j+twd2hdJHg7BHM4D\nWCIheWdThQxj0G/hB96ltn7Q1BAa3vkbOEUiMkgoPjqom0KSvlcw31gBZXtu\nwt/5F/3XDAV21dLqeRMtnNVTfkWpBFqtsTRTMg81DeJdnHkHA+nrpUwlTq5e\nr7lKjs1fpYQpir//6Q0vytQZvULrku3T3RZCPb8XCipauX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efTfMNdVmIfD7Wh3dRtzjMW90V6TPMyAR0T+OR1tLFWTvfz65zOU\nZvLPoQBIJxZFP6F5frk1cZQqQKJ8waHKflVaWJJsXf3jUr48tmsofqcYzypb\nFQW+LXqi/QOXUfiGqwFc3TMzVyhdB0xFUTsuOWzyJAVfBt+RikNiKD1rUU/5\nFhdwLSnIV6SbsiR1iXJasibxJnGRZL8yJFC1HzJLQ1umoZt9TPIWbWjM+SHG\nhljsS09gnmzvYA0f3ftEwiZ8xpI13HuSgb/I4c3+kE4aErOEXMDxO65bl/hx\ngrY3M2DdR8ir1Og+Q/CqV9re0EKWdLkovgfiMnw9bjhxUzIUjsiMslAb+2+b\nuo6pyC0rmLetUH4wJW8fyFc2/tqx/UNq9xrcmG8rCUhm8koO5/bIjA2cw1LV\n1cT4GElesiJvQRMjIbKx/oDvPhWatJJEFBOqZu7E0Q==\n=mC+7\n-----END PGP PRIVATE KEY BLOCK-----"

ada_passphrase_vault: Test1234*

Here is my output :confused:

{'body': None,
 'header': {'action': 'a3c19ad2-8920-5395-86d0-8567cb34f382',
            'code': 400,
            'id': '2b343ebe-3d81-4293-9ced-a200974307fd',
            'message': 'There is no user associated with this key. User not '
                       'found.',
            'servertime': 1723139576,
            'status': 'error',
            'url': '/auth/login.json'}}

I used the docker-compose file from GitHub - passbolt/lab-passbolt-ansible-poc

Hello,
I’ll test that.

Also, is there a specific configuration to do in the file config/passbolt.php for the gpg use case ?

Oh !! It’s working like a charm !
I don’t know why with the sed command it’s nor working… But with the gpg key copy/paste after the command sed inside a var in my playbook it’s ok.

TASK [DEBUG ENV PRIVATEKEY] **********************************************************************************************************************************
changed: [rmx-vault-01.rmx.romyx.fr -> localhost] => 
  ansible_env.PASSBOLT_PRIVATE_KEY: |-
    -----BEGIN PGP PRIVATE KEY BLOCK-----
    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
    dO8CTOSMUAnRcJiof6C0sTEM1xBzOtfuoVq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5/fII2MYy6JvWJ2zjeXa
    zuyhu6+MoquQ/PnRpaCoU7U5wzIwRA4O1+Oss19S9SBjLgt+bnGT1RUVFhik
    c9GRerQpc/8UsrOV5Vu7JVRk1TfPLa9o1/vZi5rV/re999ZGMJQKZwoM7mzs
    nkTAPcA0JF95M0Adp2Jk0iTKICpaaWeDZ7YEst9ab35VlO6znMZjTzq5gfOp
    VSGA0vWayzc5jeTPRvJ27MmtyOWWlxfVCnwc62M50d98RK2y8DJnCxrg/6p3
    E2Xwp6T9MEbnsMj1L874hAr+In3iiYcaLONjLWBNOmmu7q0OwE9/kUbORoM0
    C1pQbtjR/LhV4L//gUZxbzhD8nGeOX9lGEUn94V04iMv3EirgOHL/MJvFwGJ
    Z7uzpO4xM9O8txkWB5UlU16k8BBydld9vori+2CRaXKAoqGcyk7uJXfaMM2B
    yvmwW90awSe8YJWP7WD3xcnr670I78jD9KI5Dzq2591cs4CWQuxmIjfCKNLX
    O4nf9MCrENymyH4XoQf4yyZ/GFQ0OXrLcopAkCou5argPfkAlJz3MqnUFavD
    b76X4b/tyfancznk0zpm4Tp3GRqMaLW2k9PPPQ9ly6EpslqI9csez6hAbUFN
    RzzGBI2oWv1/QZMcDekhFhXMko8jleqOJCx5tGeGWEBojcpd06/mdbd7/Al1
    LHWZGTXKO4q+TVHPYTQQFG7DlzGGP7fjFZdHtsV7999e/GlJ6xoJwNSR8jeQ
    Rl8vU4gQtOqlTr3eFjcF6PVp9jszr1clpoXtzSILaTqiuZ2/iv46640Ws7nH
    STgnOQ0UGe8cubOJV6dKnve6Um3ogY5PJG5XIkI8EnyRTeZQG1XMFAVYWwWS
    4rCRkjL+w5qZNb8k70RTOJF0q+TMkzZxJ09Yxu0Xw/MesW3Do7BuvpZH910h
    M/XJ6QNl5ut2IWrSrHyaCKohGBNC2LO+HTyti8oRlTAIblnn46DEDHl1DZ9K
    GfhOncWc7cfxg3jAgqdAsND9O1ewK6/Xm0HPuLFjMha1eYFwr/VNTjUiWHhb
    L64+j5+zasnf7BiTz6vFf2IBOLS8CkK8/tNlK0LtqgKuVyLsxnoZtI1mo7NV
    j0e4pwKuhN+xxfwz9rezsCs0rRyx3Atw9JBLezYzxJlnJ4gVuqTpUwrfFR6i
    es0baV7hXr0gEZZwXjxiRDdttg1tiPxtnzMXAx7YuHwk3WXx92MOisLA9gQY
    AQgAKgWCZpGdQgmQlfYcq14Rs+kCmwwWIQRal+p+QWuD1PTI+lSV9hyrXhGz
    6QAArRoL+QGhsYPYKgILyVLTyinNeEV73dD0eufk9UHEvuA8ZmBuxoYfkjb2
    Os8BN7D2efTfMNdVmIfD7Wh3dRtzjMW90V6TPMyAR0T+OR1tLFWTvfz65zOU
    ZvLPoQBIJxZFP6F5frk1cZQqQKJ8waHKflVaWJJsXf3jUr48tmsofqcYzypb
    FQW+LXqi/QOXUfiGqwFc3TMzVyhdB0xFUTsuOWzyJAVfBt+RikNiKD1rUU/5
    FhdwLSnIV6SbsiR1iXJasibxJnGRZL8yJFC1HzJLQ1umoZt9TPIWbWjM+SHG
    hljsS09gnmzvYA0f3ftEwiZ8xpI13HuSgb/I4c3+kE4aErOEXMDxO65bl/hx
    grY3M2DdR8ir1Og+Q/CqV9re0EKWdLkovgfiMnw9bjhxUzIUjsiMslAb+2+b
    uo6pyC0rmLetUH4wJW8fyFc2/tqx/UNq9xrcmG8rCUhm8koO5/bIjA2cw1LV
    1cT4GElesiJvQRMjIbKx/oDvPhWatJJEFBOqZu7E0Q==
    =mC+7
    -----END PGP PRIVATE KEY BLOCK-----


TASK [Passbolt lookup plugin / fetch one] ********************************************************************************************************************
changed: [rmx-vault-01.rmx.romyx.fr -> localhost] => 
  lookup('anatomicjc.passbolt.passbolt', 'Test'):
    created: '2024-08-03T13:29:27+00:00'
    deleted: false
    description: test
    folder_parent_id: null
    modified: '2024-08-03T13:29:27+00:00'
    modified_by: e82b8c37-afe7-49f9-8dd6-6a4e11a36d22
    name: Test
    password: Test1234*
    personal: true
    resource_type_id: 669f8c64-242a-59fb-92fc-81f660975fd3
    uri: http://example.fr
    username: Test

TASK [Passbolt lookup plugin create password] ****************************************************************************************************************
changed: [rmx-vault-01.rmx.romyx.fr -> localhost] => 
  lookup(passbolt, 'test2', username='test2', uri='https://example.com', password='test1324*'):
    created: '2024-08-09T17:41:12+00:00'
    deleted: false
    description: Ansible Generated
    folder_parent_id: null
    modified: '2024-08-09T17:41:12+00:00'
    modified_by: e82b8c37-afe7-49f9-8dd6-6a4e11a36d22
    name: test2
    password: test1324*
    personal: true
    resource_type_id: a28a04cd-6f53-518a-967c-9963bf9cec51
    uri: https://example.com
    username: test2

As you can see, the GPG Key is the same as before in the debug but working now :thinking:

I have a question, is it possible to create a password inside a folder, apparently yes but only with de folder id ?
Is it possible to delete a password ? I saw in passbolt.py a line "deleted": resource.get("deleted", ""), in the function _format_result but i tried with lookup(passbolt, 'test3', deleted=True, username='test2mariadb', uri='https://example.com', password='test1324*', folder_parent_id='d5c459af-66fb-428b-985e-71926c50a95d') and it’s nor working :confused:
Also can we use a simple var and not environment variable ?