metomi / rose

:rose: Rose is a toolkit for writing, editing and running application configurations.
https://metomi.github.io/rose/
GNU General Public License v3.0
55 stars 50 forks source link

rosie: Support recent versions of gpg-agent #2786

Closed dpmatthews closed 3 months ago

dpmatthews commented 3 months ago

rosie currently uses the environment variable GPG_AGENT_INFO to determine the gpg-agent socket. This works with 2.0 but not 2.1+: https://dev.gnupg.org/source/gnupg/browse/master/NEWS

dpmatthews commented 3 months ago

Actually this may be sufficient to allow the existing code to work with 2.1+: GPG_AGENT_INFO=$(gpgconf --list-dirs | sed -n 's/agent-socket:\(.*\)/\1/p') Given that we already rely on custom scripts to set this up, this seems a reasonable solution.

Needs further testing and updated instructions.

dpmatthews commented 3 months ago

Tested with gpg-agent 2.2 & 2.3. Updated mosrs-setup-gpg-agent attachment on SRS. No changes required to Rose.