Usage of this package for aws lambda image 3.9

17 views
Skip to first unread message

Niraj Bhatt

unread,
Nov 20, 2023, 11:31:32 PM11/20/23
to python-gnupg
Hi,
I have question regarding usage of this module with aws lambda python 3.9 image.

1. Do we need to install GnuPG explicitly or this comes with python-gnupg ? I believe we need to make sure that it exists?

2. I listed the packages in my aws lambda image 3.9 using working_set from pkg_resources module however it didn't list GnuPG. Just installing python-gnupg still worked though so just confused how it found GnuPG.

3. How to mitigate this issue in all scenario? Where do I put GnuPG agent config in my linux environment?

Recent versions of GnuPG (>= 2.1.x) introduce a number of changes:

  • By default, passphrases cannot be passed via streams to gpg unless the line allow-loopback-pinentry is added to gpg-agent.conf in the home directory used by gpg (this is also where the keyring files are kept). If that file does not exist, you will need to create it with that single line. Note that even with this configuration, some versions of GnuPG 2.1.x won’t work as expected. In our testing, we found, for example, that the 2.1.11 executable shipped with Ubuntu 16.04 didn’t behave helpfully, whereas a GnuPG 2.1.15 executable compiled from source on the same machine worked as expected.


3. Any special license requirements to use this in production?

Vinay Sajip

unread,
Nov 20, 2023, 11:34:03 PM11/20/23
to python-gnupg
1. Yes you do.
2. Maybe it was on the PATH?
3. Refer to GnuPG documentation to figure out where configuration goes.
4. No.
Reply all
Reply to author
Forward
0 new messages