vault-secret: Get key from Bitwarden

I don't use GnuPG for anything else anymore, so it's becoming rather
cumbersome to keep setting it up just for the Ansible Vault secret.
Since I use Bitwarden to store the passphrase for my PGP key anyway, it
makes sense to just store the Ansible Vault secret there directly.
step-ssh
Dustin 2023-04-12 14:07:39 -05:00
parent ed42f848b9
commit b68a99091d
1 changed files with 2 additions and 1 deletions

View File

@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
exec gpg --quiet --batch --decrypt "${0%.sh}.gpg"
rbw get --folder Pyrocufflink 'Ansible Vault Key' | base64 -d