From b68a99091d454d293bca55bb32c4ff1bf33427d7 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 12 Apr 2023 14:07:39 -0500 Subject: [PATCH] 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. --- .vault-secret.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vault-secret.sh b/.vault-secret.sh index e6d90b1..c357b5e 100755 --- a/.vault-secret.sh +++ b/.vault-secret.sh @@ -1,2 +1,3 @@ #!/bin/sh -exec gpg --quiet --batch --decrypt "${0%.sh}.gpg" + +rbw get --folder Pyrocufflink 'Ansible Vault Key' | base64 -d