Interview Prep/Monitoring & Observability/Observability as Code, Security & Vendor Choices

Which Prometheus flags and APIs are dangerous in production?

AdvancedProductionObservability as Code, Security & Vendor Choices
Answer
  • --web.enable-admin-api: exposes /api/v1/admin/tsdb/delete_series, clean_tombstones and snapshot. Anyone with network access can delete data. Enable only temporarily, behind auth.
  • --web.enable-lifecycle: allows POST /-/reload and POST /-/quit. Fine for the config-reloader sidecar inside the pod, dangerous if the port is reachable.
  • --web.enable-remote-write-receiver: turns Prometheus into a write endpoint anyone can push garbage or high-cardinality data into.
  • honor_labels: true on untrusted targets: lets a target overwrite job and instance.

Combine with --web.config.file auth and NetworkPolicies, and audit the running flags on the /flags page.

All Monitoring & Observability questions

More on Observability as Code, Security & Vendor Choices