[GH-ISSUE #1300] feat - Basic Auth /metrics #919

Closed
opened 2026-05-07 00:28:45 +02:00 by BreizhHardware · 1 comment

Originally created by @foucaude on GitHub (Mar 26, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1300

💡 Idea
To make /metrics more secure, it would be interesting to add basic auth.

As I have applications on the public Internet, I'd like /metrics information not to be available to everyone.

Node exporter allows this, as do other applications, so you might as well implement it.

Originally created by @foucaude on GitHub (Mar 26, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1300 :bulb: **Idea** To make /metrics more secure, it would be interesting to add basic auth. As I have applications on the public Internet, I'd like /metrics information not to be available to everyone. Node exporter allows this, as do other applications, so you might as well implement it.
BreizhHardware 2026-05-07 00:28:45 +02:00
Author
Owner

@binwiederhier commented on GitHub (May 25, 2025):

You can achieve this via nginx or any other proxy in front of ntfy, or by simply binding the metrics server to localhost via metrics-listen-http: "localhost:9090". I don't intend to add basic auth support for /metrics

<!-- gh-comment-id:2907926111 --> @binwiederhier commented on GitHub (May 25, 2025): You can achieve this via nginx or any other proxy in front of ntfy, or by simply binding the metrics server to localhost via `metrics-listen-http: "localhost:9090"`. I don't intend to add basic auth support for /metrics
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#919
No description provided.