From 2733f77428a4aa49ec0ab7cea667958e62fc902e Mon Sep 17 00:00:00 2001 From: Chris W Jones Date: Tue, 23 Apr 2024 13:10:47 -0400 Subject: [PATCH] Adds command to update secret keys This updates the documentation to show the command needed to update keys in after adding a new host. Fixes #390 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4aaafb4..5c2abf0 100644 --- a/README.md +++ b/README.md @@ -394,6 +394,11 @@ sops: version: 3.7.1 ``` +If you add a new host to your `.sops.yaml` file, you will need to update the keys for all secrets that are used by the new host. This can be done like so: +``` +$ nix-shell -p sops --run "sops updatekeys secrets/example.yaml" +``` +