mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-05 16:17:47 +00:00
add pass/krops migration
This commit is contained in:
parent
6fb287d872
commit
241c7f1c07
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue