From 70dbc816f25ae7de9544c365ea0e0728aeee1bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 11 Aug 2020 05:46:00 +0100 Subject: [PATCH] README.md: improve documentation on gnupgHome. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index bec32b6..81af100 100644 --- a/README.md +++ b/README.md @@ -649,6 +649,22 @@ fingerprint: E4CA86768F176AEB6C01554153AF8D7F149613B1 ``` In this case you need to make upload the gpg key directory `/tmp/newkey` to your server. +If you uploaded it to `/var/lib/sops` than your sops configuration will look like this: + +```nix +{ + # Make sure that `/var/lib/sops` is owned by root and is not world-readable/writable + sops.gnupgHome = "/var/lib/sops"; + # disable import host ssh keys + sops.sshKeyPaths = []; +} +``` + +However be aware that this will also run gnupg on your server including the +gnupg daemon. Gnupg is in general not great software and might break in +hilarious ways. If you experience problems, you are on your own. If you want a +more stable and predictable solution go with ssh keys or one of the KMS services. + ## Share secrets between different users