1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-03-05 08:07:16 +00:00

add pass/krops migration

This commit is contained in:
Jörg Thalheim 2020-07-18 11:13:46 +01:00
parent 6fb287d872
commit 241c7f1c07
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -300,3 +300,12 @@ fingerprint: E4CA86768F176AEB6C01554153AF8D7F149613B1
```
In this case you need to make upload the gpg key directory `/tmp/newkey` to your server.
## Migrate from pass/krops
If you have used [pass](https://www.passwordstore.org) before i.e. in [krops](https://github.com/krebs/krops) than you can use
the following oneliner to convert all your (plaintext) keys to a yaml structure:
``` console
$ for i in *.gpg; do echo "$(basename $i .gpg): |\n$(pass $(dirname $i)/$(basename $i .gpg)| sed 's/^/ /')"; done
```