I have a working passbolt instance (community edition), it’s working without issues for everyone with both the browser extension and the android app.
I’m trying to retrieve a password for a service via python (3.13), using python_gnupg and requests (via passbolt-python-api package).
I can login with my key, I can retrieve a list of resources, but when I try to decrypt the “metadata” attributes for the resources I hit a snag: I retrieve a list of 450 resources from the API, and trying to decrypt them with my private key leads to only 73 of them being correctly decrypted, for the other 377 resources the gnupg decrypt call results in no output.
Dumping some of them in a text file (one at a time, of course) and trying to manually decrypt them with gpg from command line gives this error:
gpg: encrypted with ECDH key, ID 5D63FC2A359597CE
gpg: public key decryption failed: No secret key
gpg: decryption failed: No secret key
I will add that doing the same (dump metadata in a file, decrypt with gpg) for a resource that my script does decrypt, correctly yelds the metadata JSON object, so I don’t think that my code is doing anything funky, but I don’t know where else to look.
Thanks to @gyaresu for pointing me here.
My initial goal was simply to retrieve a password via its name, which is now encrypted in the metadata object.