add --no-tty option to gpg#669
Conversation
|
The tty is normally used for the interactive parts (like prompts). However, here only recv-keys is needed and even only for custom apt repos. From what I can see there are no side effects at all. In https://github.com/gpg/gnupg/blob/6a4443c8425fd548020553b22d5a16ffad98371f/g10/keyserver.c#L1081 I see only logging stuff, which actually need no tty, which is only part of the interactive stuff here: https://github.com/gpg/gnupg/blob/6a4443c8425fd548020553b22d5a16ffad98371f/g10/keyserver.c#L733. All that verbose logging of gpg still seems to work fine. or an error case: don't look any different. |
OddBloke
left a comment
There was a problem hiding this comment.
Excellent, thank you for the detailed explanation! I'm going to push a commit to your branch to alphabetise .github-cla-signers, then this can land.
Proposed Commit Message
Make sure the gpg works even if VM provides no /dev/tty (e.g. debian cloud init)
LP:#1813396
Additional Context
fixes https://bugs.launchpad.net/cloud-init/+bug/1813396
Test Steps
on a VM without a terminal mounted as /dev/tty define an external keyserver such used for docker
Checklist: