Add token auth for ntfy hook #811
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'd like to do and why
On a private server, ntfy recommends using authentication with tokens instead of user and password, so I was wondering if it would be possible to add this option?
Moreover, it would be useful if the script could get the default server and token (or username/pwd) from the
client.yml
files:Other notes / implementation ideas
No response
Using authentication tokens with ntfy makes sense to me. I'm not sure about
client.yml
though because borgmatic doesn't use the ntfy client, so it'd be a little weird to use its configuration file. Additionally, that configuration file wouldn't be covered by borgmatic's bootstrapping. Is the idea that you just don't want to maintain the ntfy authentication token in two different places?My motivation for using
client.yml
to avoid writing the token if for limiting the risk of exposing its value. But I just understood that one can create different tokens for a single user, so in this case one can create a token for borgmatic only, and revoke it if compromised. Also you have an excellent point with the bootstrapping.This has been implemented in main (as a new
access_token
option) and will be part of the next release! Thanks for the suggestion.Released in borgmatic 1.8.9!