Skip to content

Commit

Permalink
Prevent GPG-agent autostart on RPi-s
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsputman committed Nov 29, 2023
1 parent 0b7b852 commit 80dbf8f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .bashrc.d/41-gpg-rpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Don't autostart the GPG agent on RPi-devices – the agent is forwarded from the
# local machine

gpg() {
command gpg --no-autostart "$@"
}
13 changes: 13 additions & 0 deletions install/parts.d/23-gnupg-rpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# Mask all GPG agent related units – the RPi-devices use a socket forwarded from
# the local machine. Unintentionally starting gpg-agent messes with this setup;
# there's a script in "📂 .bashrc.d" which aims to prevent regular gpg
# invocations from starting an agent too.

systemctl --user mask \
gpg-agent.service \
gpg-agent.socket \
gpg-agent-ssh.socket \
gpg-agent-extra.socket \
gpg-agent-browser.socket

0 comments on commit 80dbf8f

Please sign in to comment.