From d621307248b60e9563d78e5b8b07a057b24770d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 16 Apr 2023 06:54:29 +0300 Subject: [PATCH] Update README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 72ca553..c4926d9 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,18 @@ Upcoming flakes: $ nix build .#deploy.nodes.hel1-a.profiles.system.path +Managing secrets +---------------- + +Encode a secret on host: + + rage -e -r $(ssh-to-age < /etc/ssh/ssh_host_ed25519_key.pub) -o secret.age /etc/plaintext + +Decode a secret on host (to test things out): + + age -d -i <(sudo ssh-to-age -private-key -i /etc/ssh/ssh_host_ed25519_key) secret.age + +If/when [str4d/rage#379](https://github.com/str4d/rage/issues/379) is fixed, we +can replace the above command to `rage`. + [1]: https://cgit.krebsco.de/krops/about/