Skip to content

Commit

Permalink
Block external access to prometheus admin API
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Oct 19, 2023
1 parent 9d24f39 commit 0945b46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/prometheus/templates/default/apache.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
SSLCertificateFile /etc/ssl/certs/prometheus.openstreetmap.org.pem
SSLCertificateKeyFile /etc/ssl/private/prometheus.openstreetmap.org.key

Redirect 403 /prometheus/api/v1/admin
ProxyPass /prometheus http://localhost:9090/prometheus
Redirect 403 /alertmanager/api
ProxyPass /alertmanager http://localhost:9093/alertmanager
Expand Down

0 comments on commit 0945b46

Please sign in to comment.