passbolt / lab-passbolt-ansible-collection

Source repository for https://galaxy.ansible.com/anatomicjc/passbolt
MIT No Attribution
9 stars 10 forks source link

CryptographyDeprecationWarnings in Ansible output #22

Open RobinR1 opened 1 month ago

RobinR1 commented 1 month ago

When the passbolt ansible lookup plugin is used 3 warnings are logged whenever the lookup is performed by Ansible:

 SymmetricKeyAlgorithm.CAST5: algorithms.CAST5,
/usr/local/lib/python3.9/site-packages/pgpy/constants.py:195: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release
  SymmetricKeyAlgorithm.Blowfish: algorithms.Blowfish,
/usr/local/lib/python3.9/site-packages/pgpy/constants.py:192: CryptographyDeprecationWarning: IDEA has been deprecated and will be removed in a future release
  bs = {SymmetricKeyAlgorithm.IDEA: algorithms.IDEA,
/usr/local/lib/python3.9/site-packages/pgpy/constants.py:194: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release

I assume this is due to: https://github.com/SecurityInnovation/PGPy/issues/398 reported 2 years ago, but it doesn't seem that the pgpy project has much activity.. Can we get rid of these warnings in the Passbolt Ansible plugin?