Ntfy native alerter does not work w/token #409

Open
opened 2025-10-31 15:11:05 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @undaunt on GitHub (Jun 3, 2025).

I tested a token both directly in the URL and with a variable within Komodo UI on http://ntfy, as well as directly in the URL with my https FQDN, and both did not work.

Upon replacing it with http://user:pass@ntfy, the test worked.

The failures were 401s.

ERROR: Failed to send alert to ntfy Alerter ntfy

TRACE:
	1: Failed to send message to ntfy | 401 Unauthorized | {"code":40101,"http":401,"error":"unauthorized","link":"https://ntfy.sh/docs/publish/#authentication"}

CC @binwiederhier

Edit: It also does not work with a password that is replaced with a Komodo variable/secret, though I suppose https://komo.do/docs/variables does not list alerters as supported.

Originally created by @undaunt on GitHub (Jun 3, 2025). I tested a token both directly in the URL and with a variable within Komodo UI on http://ntfy, as well as directly in the URL with my https FQDN, and both did not work. Upon replacing it with http://user:pass@ntfy, the test worked. The failures were 401s. ``` ERROR: Failed to send alert to ntfy Alerter ntfy TRACE: 1: Failed to send message to ntfy | 401 Unauthorized | {"code":40101,"http":401,"error":"unauthorized","link":"https://ntfy.sh/docs/publish/#authentication"} ``` CC @binwiederhier Edit: It also does not work with a password that is replaced with a Komodo variable/secret, though I suppose https://komo.do/docs/variables does not list alerters as supported.
GiteaMirror added the enhancement label 2025-10-31 15:11:05 -05:00
Author
Owner

@mbecker20 commented on GitHub (Jun 7, 2025):

The variable interpolation does work for other alert variants, but not ntfy, which was added by community PR and does not include the interpolation step.

@mbecker20 commented on GitHub (Jun 7, 2025): The variable interpolation does work for other alert variants, but not ntfy, which was added by community PR and does not include the interpolation step.
Author
Owner

@mbecker20 commented on GitHub (Jun 7, 2025):

as well as directly in the URL with my https FQDN

Upon replacing it with http://user:pass@ntfy/, the test worked.

What is the difference between these two?

@mbecker20 commented on GitHub (Jun 7, 2025): > as well as directly in the URL with my https FQDN > Upon replacing it with http://user:pass@ntfy/, the test worked. What is the difference between these two?
Author
Owner

@TehNomad commented on GitHub (Sep 30, 2025):

I got it to work by entering the Ntfy URL wtih an auth query parameter, which is documented here. I just set it up in Komodo with an access token and tested it.

@TehNomad commented on GitHub (Sep 30, 2025): I got it to work by entering the Ntfy URL wtih an auth query parameter, which is [documented here](https://docs.ntfy.sh/publish/#query-param). I just set it up in Komodo with an access token and tested it.
Author
Owner

@DMJoh commented on GitHub (Oct 10, 2025):

More to @TehNomad explained,

Komodo only provides an endpoint field, you need to encode your token and pass it via the auth query parameter.

Run the below command to get the base64 encoded auth string. If your token is tk_abc123xyz456def789,

echo -n "Bearer tk_abc123xyz456def789" | base64 -w0 | tr -d '='

This will output something like:

QmVhcmVyIHRrX2FiYzEyM3h5ejQ1NmRlZjc4OQ

In Komodo's ntfy endpoint field, use:

https://your-ntfy-server.com/your-topic?auth=QmVhcmVyIHRrX2FiYzEyM3h5ejQ1NmRlZjc4OQ
@DMJoh commented on GitHub (Oct 10, 2025): More to @TehNomad explained, Komodo only provides an endpoint field, you need to encode your token and pass it via the `auth` query parameter. Run the below command to get the base64 encoded auth string. If your token is `tk_abc123xyz456def789`, ```bash echo -n "Bearer tk_abc123xyz456def789" | base64 -w0 | tr -d '=' ``` This will output something like: ``` QmVhcmVyIHRrX2FiYzEyM3h5ejQ1NmRlZjc4OQ ``` In Komodo's ntfy endpoint field, use: ```bash https://your-ntfy-server.com/your-topic?auth=QmVhcmVyIHRrX2FiYzEyM3h5ejQ1NmRlZjc4OQ ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#409