]> git.openstreetmap.org Git - chef.git/commitdiff
Block external access to prometheus admin API
authorTom Hughes <tom@compton.nu>
Thu, 19 Oct 2023 19:47:09 +0000 (20:47 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 19 Oct 2023 19:47:09 +0000 (20:47 +0100)
cookbooks/prometheus/templates/default/apache.erb

index 1dead4474328dd5ffcdf57e03c8af18ae9327aa4..e6290caedeb789ee7296eb2face75c1b4c0e6533 100644 (file)
@@ -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