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
parent
dd3f12dfa4
commit
6999bd4ac5
|
@ -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
|
|
@ -668,11 +668,6 @@ class Chase:
|
|||
|
||||
def main() -> None:
|
||||
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')
|
||||
token = rbw_get('xactfetch')
|
||||
import_secret = secret_from_file(
|
||||
|
|
Loading…
Reference in New Issue