1
0
Fork 0

Remove unlock ntfy message

I've moved the bank website credentials to a shared collection in
Bitwarden and made them accessible to an account dedicated to
`xactfetch`.  Using the `pinentry-stub` script, `rbw` can now
auto-unlock the vault, using the password in the file referred to by the
`PINENTRY_PASSWORD_FILE` environment variable.  This means that
`xactfetch` can now run completely automatically, without any input from
me.
master
Dustin 2023-12-02 13:17:26 -06:00
parent dd3f12dfa4
commit 6999bd4ac5
2 changed files with 19 additions and 5 deletions

19
pinentry-stub.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
while IFS=' ' read -r cmd args; do
case "${cmd}" in
GETPIN)
printf 'D %s\n' "$(cat "${PINENTRY_PASSWORD_FILE}")"
;;
SETPROMPT|SETTITLE|SETDESC)
echo OK
;;
BYE)
exit 0
;;
*)
printf 'ERR Unknonw command\n'
;;
esac
done

View File

@ -668,11 +668,6 @@ class Chase:
def main() -> None: def main() -> None:
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.DEBUG)
if not rbw_unlocked():
ntfy(
'xactfetch needs you to unlock the rbw vault',
tags='closed_lock_with_key',
)
log.debug('Getting Firefly III access token from rbw vault') log.debug('Getting Firefly III access token from rbw vault')
token = rbw_get('xactfetch') token = rbw_get('xactfetch')
import_secret = secret_from_file( import_secret = secret_from_file(