Prometheus security hardening

Prometheus ships with few access controls enabled by default, so the endpoints, admin APIs, exporters and scrape secrets need deliberate hardening before it holds production metrics. This page covers the decisions, build sequence, checks and handover for that work.

On this page

Why Prometheus security hardening is easy to underestimate

Hardening a Prometheus deployment means securing every HTTP endpoint with TLS and authentication, keeping admin and lifecycle APIs off, and restricting exporters that accept URL targets. Security will usually ask for this review once the Prometheus server, its Alertmanager and exporters are running and before they hold production data, which is the point where a missed listener is cheapest to fix. The hardest part is the inventory: every listener, every scrape path and every exporter that a team has quietly added over time.

Prometheus is pull-based and reachable on many paths. The server exposes its own web UI and API, Alertmanager exposes its own, and each exporter exposes its own endpoint that Prometheus scrapes. Transport security and authentication must be paired deliberately. The Prometheus security model supports TLS and client certificates with TLS 1.2 as the minimum, plus HTTP basic authentication with bcrypt-hashed passwords, but basic authentication without TLS sends credentials in cleartext. Confirm, for each endpoint in your environment, whether both controls are applied together and whether any health check or internal caller still uses plain HTTP.

The gaps are also functional, not only configuration. Prometheus has no built-in single sign-on, and its security model notes there is no built-in CSRF protection on mutating endpoints, so reviewers should check what sits in front of the web UI and API. Confirm whether an authenticating reverse proxy is in place, which identities it accepts, and whether any path bypasses it. Then check the exporters that take targets from URL parameters, such as SNMP and Blackbox, because anyone with HTTP access to them can make them send requests to arbitrary endpoints.

Which parts of a Prometheus deployment need hardening

A Prometheus deployment exposes access through several separate surfaces, and each one needs its own controls. The cards below cover the web UI and API, the admin and lifecycle endpoints, scrape targets, exporters that accept URL targets, secrets in scrape configuration, and the connections to Alertmanager and remote storage. Work through them in order, because a control on one surface does not protect another.

Web UI and HTTP API

The web UI and HTTP API serve queries, rule and target status, and configuration views to anyone who can reach the port. Engineers, dashboards and automation usually connect here. Prometheus supports TLS and client certificate authentication, plus HTTP basic authentication with bcrypt-hashed passwords, but basic authentication without TLS sends credentials in cleartext. Confirm TLS is enforced on every listener, the minimum version is TLS 1.2, and no unauthenticated path is reachable from user networks.

Security model

Admin and lifecycle endpoints

Admin APIs allow destructive operations such as deleting series, and lifecycle endpoints allow reload and shutdown. Both are disabled by default and only turn on when the --web.enable-admin-api or --web.enable-lifecycle flags are set. Check that neither flag appears in service units or container arguments unless a specific automation job needs it, and that any enabled endpoint sits behind authentication and a restricted network path.

Scrape targets over HTTP

Each scrape target serves metrics over HTTP, and those responses can reveal internal hostnames, versions and sometimes sensitive labels. Prometheus pulls from targets found through service discovery or static configuration, so a misdirected discovery rule can add hosts you never meant to scrape. Confirm each job uses TLS or a protected network path where the target supports it, and review discovery filters so only intended endpoints receive scrapes.

Exporters that accept URL targets

Exporters such as SNMP and Blackbox take the target to probe from a URL parameter. The Prometheus security model warns that anyone with HTTP access to these exporters can make them send requests to arbitrary endpoints, which turns the exporter into a proxy into your network. Restrict who can reach the exporter port, allow-list the targets it may probe where the exporter supports it, and run it on a segment separate from user traffic.

Security model

Credentials in scrape configuration

Scrape configuration often holds basic auth passwords, bearer tokens and TLS client keys for targets. Anyone who reads the configuration file or the configuration API can recover those values, so they become a secrets store by accident. Move credential values into files with restricted permissions, reference them by path, and confirm the configuration is not copied into shared repositories, logs or tickets.

Alertmanager and remote storage connections

Prometheus sends alerts to Alertmanager and can write samples to or read samples from remote storage. Each connection carries metric data and may carry credentials, so an unencrypted or unauthenticated link exposes both. Confirm every Alertmanager and remote endpoint uses TLS with verified certificates, that Prometheus authenticates to each one, and that only the intended destinations are listed in configuration.

Which hardening choices to make and what each costs to run

This table compares the main Prometheus hardening decisions, when each fits, and what it costs to operate over time. Read each row as a trade-off: the security gain on one side, the recurring work on the other. The main takeaway is that most choices shift effort from build time into rotation, distribution and troubleshooting, so decide who will carry that work before you commit.

DecisionWhen it fitsOperational cost to run
TLS in Prometheus itself versus at an authenticating reverse proxyUse Prometheus TLS when scrape traffic crosses untrusted segments and you want encryption end to end. Use a proxy when SSO or central policy already sits in front of the UI and API.Prometheus-level TLS means certificate issuance, renewal and reload handling on each instance. A proxy adds a component to patch and monitor, and its config must match Prometheus's own access rules.
Client certificates versus basic authentication with bcrypt-hashed passwordsClient certificates suit machine-to-machine scrapes and API clients with a managed PKI. Basic authentication suits small teams or legacy clients that cannot present a certificate, and only over TLS.Certificates need issuance, distribution, rotation and revocation planning. Basic auth needs password creation, secure delivery to each client and rotation, and it sends credentials on every request, so TLS is mandatory.
Admin API disabled versus enabled for a maintenance windowKeep the admin API disabled by default. Enable it only for a defined task such as deleting series, then disable it again.Enabling it needs a change record, a time window and a reset step afterward. Forgetting to disable it leaves destructive operations reachable, so treat re-disabling as a checklist item.
Lifecycle endpoint versus process restart for reloadsThe lifecycle endpoint fits teams that reload configuration often from automation. A process restart fits environments where the lifecycle endpoint must stay off.Enabling the lifecycle endpoint exposes reload and shutdown controls, so it needs network restriction and authentication. A restart drops in-flight state briefly and needs a rolling plan where Prometheus runs in pairs.
Restricting exporter targets by network policy versus allowlisted target configurationNetwork policy fits when the exporter host can be isolated to a known scraper. Allowlisted targets fit when many scrape jobs share one exporter and must still be limited to approved destinations.Network policy needs firewall or cluster rules kept in step with scrape inventory, which grows over time. Allowlists need review whenever a target is added, and they can block a legitimate new target until the list is updated.
Secrets in files versus inline in scrape configurationFiles fit most setups, with permissions limited to the Prometheus service account and config kept out of shared repositories. Inline values fit only short-lived test configs.File-based secrets need permission audits, a secure path to deliver and rotate them, and a reload after each change. Inline secrets leak into config reviews, backups and support tickets, which raises cleanup work after any incident.
Reduced troubleshooting access after hardeningHardening usually limits who can query the admin API, reload the server or view raw config. Plan this trade-off explicitly for on-call engineers.On-call may need a break-glass path with logged access. Confirm who holds that access, how it is recorded, and how it is removed after the incident.

How requests and credentials cross the trust boundaries

The diagram starts with operators and dashboards, which reach the web UI and API only through an authenticating layer such as a reverse proxy. The Prometheus server then pulls from targets over TLS with client certificate or basic authentication, and sends alerts to Alertmanager. Exporters such as Blackbox and SNMP sit inside the boundary, reachable only from Prometheus, and their target parameters must be constrained. Admin and lifecycle endpoints appear as disabled unless --web.enable-admin-api or --web.enable-lifecycle is set on purpose. Check each arrow against your own configuration and confirm which hops are reachable from a compromised client.

Trust boundaries for operators, scrapes, exporters and alert delivery.

How to harden Prometheus in sequence

This sequence takes a Prometheus deployment from an unknown exposure surface to a documented, reviewable state in which every listener is encrypted and authenticated, administrative endpoints are closed, exporters cannot be turned into request relays, and scrape secrets sit outside the main configuration file. Each step ends with a check so the next step starts from verified ground.

  1. Inventory every listener and connection

    Before changing anything, the platform owner and the security engineer list every port Prometheus serves, every scrape target and its path, every exporter, every Alertmanager endpoint and every remote write or remote read destination. Include the Prometheus web UI, the HTTP API, any Pushgateway and any reverse proxy already in front. Record which connections carry credentials and which are reachable from networks outside the monitoring segment. The output is a written inventory signed off by the owner. It is complete when a network scan from outside the monitoring segment finds no listener that is missing from the list.

  2. Confirm admin and lifecycle APIs stay disabled

    Prometheus disables its admin HTTP APIs by default, and the lifecycle endpoints that reload configuration or trigger shutdown are controlled by separate flags. Confirm in the startup arguments or service unit that neither the admin API flag nor the lifecycle flag is set. Check the running process with its command line, then call the destructive endpoints from an approved test host and confirm they refuse the request. If a team needs temporary enablement for a migration or a restore, record who approved it, the change window, the reason and the step that turns it off again. Confirm the exact flag names against the current Prometheus security documentation for the version in use. The step closes when the running process shows the flags absent and the test calls are refused.

  3. Put TLS on every web endpoint

    Configure TLS on the Prometheus web listener and on any Alertmanager, exporter or Pushgateway endpoint that supports it, with a minimum protocol version of TLS 1.2. Use certificates issued by the organization's internal certificate authority and set file permissions so only the service account can read the private keys. Configure client certificate authentication where the consuming systems can present a certificate. Confirm the exact configuration keys against the current Prometheus documentation for the version in use, because option names differ across releases. The step closes when a TLS scan of each endpoint reports TLS 1.2 or higher, a plain HTTP request to the same port fails, and a client without an approved certificate is rejected where client certificates are required.

  4. Authenticate the HTTP API and hash passwords

    Enable HTTP basic authentication on the web listener and the API for any caller that cannot use client certificates. Store passwords as bcrypt hashes in the web configuration file, never as plain text, and generate each hash with a tool approved by the security team. Use a unique credential per consuming system so access can be revoked without affecting others. Basic authentication sends credentials on every request, so it must only run over the TLS listener from the previous step. The step closes when unauthenticated API calls return an authentication error, a valid credential returns data, and the configuration file contains only hashes.

  5. Restrict exporter target parameters and network reach

    Exporters such as the SNMP and Blackbox exporters accept targets through URL parameters, so anyone who can reach them over HTTP can direct them to request arbitrary endpoints. Limit this in three layers: allow only Prometheus servers to connect to each exporter port, enable authentication on the exporter where its version supports it, and define the permitted target networks in the exporter module configuration or the egress rules of its host. Then have the security engineer test from an unapproved host and from the monitoring segment to confirm the exporter refuses or cannot reach out-of-scope destinations. The step closes when the test log shows allowed targets succeed, out-of-scope targets fail, and the network rules are recorded in the inventory.

  6. Move scrape secrets into protected files

    Scrape configuration often holds bearer tokens, basic authentication passwords, and TLS keys inline in the main file, where they are copied into version control, backups and support bundles. Move each secret into its own file owned by the Prometheus service account, with permissions limited to that account, and reference the file path from the configuration. Keep certificates and keys in the same protected location. Remove the inline values from the main file and from any repository history that holds them, then rotate those credentials because they have been exposed. Confirm the file-reference keys against the current documentation for the version in use. The step closes when a search of the configuration directory and the repository finds no inline secret and the file permissions match the restricted policy.

  7. Add an authenticating proxy if SSO is required

    Prometheus has no built-in single sign-on and no built-in CSRF protection on mutating endpoints, so if the organization requires SSO for the UI, place an authenticating reverse proxy using OIDC or SAML in front of the web interface and API. Bind Prometheus to a loopback or private address so the proxy is the only path to it, and confirm the proxy forwards only approved paths. Keep the TLS and basic authentication from earlier steps in place for scrapes and service calls that bypass the proxy. Decide the design with the identity team and record the choice, since the proxy becomes part of the security boundary. The step closes when a direct request to the Prometheus port from outside the host is refused and a request through the proxy without a valid session is redirected to sign-in.

  8. Validate configuration and reload safely

    Run the Prometheus configuration check tool against the updated files before any reload, and confirm it reports no errors. Apply changes with a controlled restart or, where the lifecycle endpoint is intentionally enabled, a reload from an approved host. Then confirm every target is up, scrapes still succeed over TLS with the new credentials, rules still evaluate, and Alertmanager still receives alerts. Keep the previous configuration available so the team can roll back. The step closes when the check tool passes, the targets page shows the expected state, and a test alert reaches its receiver.

  9. Document the final hardened state

    Write a short record of the final state: the listener inventory, the TLS and authentication settings for each endpoint, the confirmed disabled admin and lifecycle flags, the exporter network rules, where secrets are stored and who can read them, the SSO design if used, and the rotation owner for each credential. Attach the validation results from each step. Schedule a review after each Prometheus upgrade, since flag names and defaults can change across releases. The step closes when the document is approved by the platform owner and security lead and stored where operators can find it.

Which threats each hardening control closes

Each card pairs a threat with the Prometheus control that closes it and the risk that remains after the control is in place. The controls cover the server, the web and API surface, exporters that accept URL targets, and the secrets held in scrape configuration. Read the residual risks as the items that still need a compensating control, such as a reverse proxy or network policy.

Encrypted and client-authenticated server access

Without TLS, anyone on the network path can read metrics, queries and any credentials sent to the server. Prometheus supports TLS and client certificate authentication with TLS 1.2 as the minimum, so the control is to serve every listener over TLS and require client certificates where callers are known. Check that scrapers, Alertmanager and any reverse proxy all validate the server certificate. Residual risk: certificate issuance, rotation and revocation remain operational tasks owned by your team.

Security model

Bcrypt basic authentication over TLS only

Basic authentication sends credentials on every request, so a password sent without encryption is exposed in cleartext. Prometheus stores basic authentication passwords as bcrypt hashes, which protects them at rest in the configuration file, but only when the connection is TLS-protected. The control is to enable basic authentication only on TLS listeners and to keep the hashed password file readable only by the service account. Residual risk: basic authentication has no session model, so a leaked password stays valid until it is rotated.

Admin API disabled for destructive operations

The admin HTTP API can delete series and clean tombstones, which destroys stored history. It is disabled by default, and the control is to leave --web.enable-admin-api unset on production servers and to enable it only for a supervised maintenance window. Confirm with a configuration review that no startup script, container argument or orchestration template adds the flag. Residual risk: anyone who can reach the API on an enabled instance can still remove data, so access control in front of the server is still required.

Lifecycle endpoints restricted to operators

The lifecycle endpoints reload configuration and shut the server down, so an unauthenticated caller could interrupt scraping or force a restart. Enabling --web.enable-lifecycle exposes these endpoints, so the control is to leave the flag off where configuration reloads can be done by restarting the process, or to restrict the endpoints to a management network and an authenticated operator account. Confirm which automation calls reload and whether it reaches the server directly. Residual risk: Prometheus has no built-in CSRF protection on mutating endpoints, so a browser session with access to the UI could still trigger a request unless a proxy blocks cross-site calls.

Exporter targets constrained to an allowlist

Exporters such as SNMP and Blackbox take their target from a URL parameter, so anyone with HTTP access to them can make the exporter send requests to arbitrary endpoints. This is a server-side request risk: the exporter can reach internal services that the caller cannot. The control is to run these exporters on a loopback or private interface, let only the Prometheus server reach them, and set scrape jobs to fixed target lists rather than accepting targets from callers. Residual risk: an exporter with network reach into internal ranges still acts as a pivot if its host is compromised, so restrict its egress.

Security model

Secrets in scrape configuration protected at rest and in view

Scrape configuration can hold basic authentication passwords, bearer tokens and TLS keys, and these values can appear in the web UI status pages and in logs when configuration is reloaded or errors are printed. The control is to keep secret files owned by the service account with restrictive permissions, reference them by file path where the configuration supports it, and review what the UI and log output expose. Check that the configuration directory is not served by any proxy or backup job that copies it elsewhere. Residual risk: any process running as the service account can read these files, so the host itself remains part of the trust boundary.

How hardening changes by deployment model

A single Prometheus server concentrates everything in one process and one host: the web UI and API, the scrape configuration, the rule files and the time series database. Exposure is simple to reason about because there is one listener to protect, but the same host usually also runs the exporters or reaches them over the network, so a single compromised component can reach the rest. Local storage is single-node and not replicated, so the data directory is a single point of loss and a target for anyone with host access.

  • Listener exposure: Bind the web listener to the interface that needs it and place TLS and authentication in front of every endpoint, including /metrics on the server itself.
  • Admin and lifecycle APIs: Keep --web.enable-admin-api and --web.enable-lifecycle off unless a named runbook needs them, and restrict any reload path to the configuration management account.
  • Certificates: Issue one server certificate and a separate client certificate per scraper or operator, with a documented renewal owner.
  • Data directory: Set file ownership so only the Prometheus service account can read the TSDB, and back it up on a schedule with a restore test.
  • Secrets: Keep scrape credentials out of the main configuration file where practical, and restrict read access to the configuration on disk.

Confirm the exact flags and their defaults for your Prometheus release against the security model before writing the systemd unit or container arguments.

What drives hardening effort and how to keep it down

This table compares the factors that change how much work a Prometheus hardening project takes, how each factor affects cost or duration, and which parts are one-time or recurring. Read each row as a lever: the most useful next step is usually to shrink the number of unique configurations through templates, a target inventory and existing identity and certificate processes.

DriverEffect on cost or durationHow to keep it down
Number of scrape targets and jobsEach job needs its own TLS and authentication settings, verification and documentation. Effort grows with distinct job definitions more than with raw target count.Use shared scrape templates and a documented target inventory so most targets inherit one tested configuration.
Exporters that accept URL targets (SNMP, Blackbox)These need network restrictions, allowed-target lists and access controls in addition to TLS. Each one is a separate review item, and the work recurs when new probes are added.Limit each exporter to approved target sets, place it on a restricted network segment and add a standard review step for new probe modules.
Teams and clients using the HTTP APIEach consumer needs credentials, scoped access and separate audit trails. Onboarding and access reviews recur as people and systems change.Issue access through one identity process, group consumers by role and keep a single request template for new API clients.
Existing certificate authorityA usable internal CA shortens one-time certificate work. Without one, the team must set up issuance, distribution, renewal and revocation, which adds ongoing operational work.Reuse the organization's CA and automated issuance where available, and confirm renewal ownership before go-live.
Number of environmentsEach environment needs matching settings, separate secrets and its own verification. Drift between environments creates rework during audits and upgrades.Keep one parameterized configuration in version control and promote it between environments with environment-specific variables only.
Existing SSO reverse proxyIf an authenticating proxy already protects similar internal tools, the Prometheus web UI and API can usually follow an established pattern. Without one, a proxy design, identity integration and testing are added work.Confirm whether an authenticating proxy is in place, extend its existing policy and reuse its identity provider configuration.
Compliance evidence requirementsAssessors may ask for configuration baselines, change records, access reviews and proof of restricted admin endpoints. Collecting this evidence repeats at each review cycle.Agree the evidence list before work starts, generate it from configuration and keep a dated record of each review.
Admin and lifecycle API exposureIf admin or lifecycle endpoints are enabled, extra access controls, change approval and monitoring are needed. Keeping them disabled usually removes this work.Leave admin and lifecycle APIs disabled by default and document a short approval path for any exception.

How to test that hardening works and fails safely

Verification should prove two things: that every control you changed is enforced, and that the monitoring still works afterward. Start with the transport. Confirm that each listener refuses plaintext connections and that TLS is enforced with a minimum of TLS 1.2, which the Prometheus security model supports for TLS and client certificates. Then send requests with no credentials to every listener, including the web UI, the query API and any exporter endpoint, and confirm each one is refused. Run the same checks from a host that is outside the allowed network, because a listener that rejects unauthenticated traffic from one subnet may still accept it from another. For the admin and lifecycle endpoints, call the reload, shutdown and delete-series paths and confirm they return errors while --web.enable-admin-api and --web.enable-lifecycle are absent. For each exporter that takes a target from a URL parameter, request a target outside its allowed set and confirm the exporter refuses it.

Next, test the failure modes you are most likely to meet in production. Let a certificate expire in a staging copy and confirm that scrapes fail visibly and that an alert fires, rather than silently stopping. Enter a wrong bcrypt hash for a basic authentication user and confirm the login fails without exposing which part was wrong. Push a configuration with a syntax error or an invalid scrape target through a reload, and confirm Prometheus keeps running on the last good configuration and reports the error. Prometheus reloads are only accepted on the endpoint you deliberately enabled, so test that path too. After each change, confirm that scrapes still succeed and that a test alert still reaches every Alertmanager instance you configured. Finally, search the web UI, the logs, and any configuration exports or support bundles for password strings, bearer tokens and certificate private keys. Ask your team to name which configuration keys hold secrets so the search is targeted.

Configuration checks confirm that settings are present. They do not show how an attacker would chain weaknesses, such as an exporter reachable from a compromised workstation, a reverse proxy that passes unauthenticated paths through, or a credential that leaks into a dashboard. An independent security test is a separate activity with its own scope, rules of engagement and written findings. DeployOpen's security testing covers this kind of review when it is scoped in writing before work starts, and the retest after fixes is part of that scope. Agree on the environment, the accounts used, and the evidence you expect to receive before testing begins.

What teams ask before hardening Prometheus

Can our team harden Prometheus on its own?

Yes, many teams can, provided they have someone who knows the Prometheus configuration, their certificate process and the network layout. The work is mostly configuration and verification: enabling TLS and authentication on the web endpoints, confirming admin and lifecycle APIs stay off, restricting which targets exporters such as SNMP and Blackbox can reach, and moving credentials out of scrape configuration. The difficulty grows with the number of Prometheus servers, exporters and scrape jobs, and with how many teams depend on the current unauthenticated access. A useful first step is an inventory of every listener, exporter and job, so you can judge whether the work fits your existing staff or needs an outside partner. DeployOpen plans and implements this work on self-hosted Prometheus inside the client's own infrastructure, and scope is agreed in writing before work starts.

What does a hardening engagement need from our team?

It needs access and decisions more than large amounts of staff time. Expect to provide:

  • A current inventory of Prometheus servers, Alertmanager instances, exporters and the scrape jobs that use them.
  • Access to the certificate authority or the process that issues server and client certificates, and agreement on certificate lifetimes and rotation.
  • Network changes, such as firewall rules limiting who can reach the web port and which hosts exporters may call.
  • A change window for each environment, since enabling TLS or authentication breaks scrapers and dashboards that have not been updated.
  • Named owners for the systems that depend on Prometheus, so they can test their clients before the switch.

The quality of the inventory is the largest single factor in how smoothly the change goes.

How long does Prometheus hardening take?

Duration depends on the number of Prometheus and Alertmanager instances, how many scrape jobs and exporters need new credentials or TLS settings, whether the certificate process already exists, and how many consumers of the metrics must be updated. Environments with clear inventories, an existing internal certificate authority and few dependent clients move faster. Work that involves exporter target restrictions, secret migration from scrape configuration and staged rollout across several environments takes longer, because each stage needs testing and a change window. No duration is stated here because it depends on those factors. Ask for a written timeline tied to the scope, and check that it includes testing and rollback, not only configuration edits. The Prometheus security model lists the settings that the scope should cover.

Can we add SSO during the same change?

You can plan both together, but they are separate pieces of work and should be tested separately. Prometheus has no built-in single sign-on, so SSO is normally added with an authenticating reverse proxy in front of the web UI and API, using OIDC or SAML. That proxy also has to handle how Alertmanager and scrape clients authenticate, because scrapers usually cannot complete an interactive login. Combining the changes in one window makes failures harder to diagnose, since a broken login and a broken scrape can look alike. A common approach is to harden TLS and authentication first, verify scrapes and rules, then add SSO in a second change. The topic on Prometheus SSO and authentication covers the proxy design in more depth.

Should admin APIs ever be enabled in production?

In most production environments, no. The Prometheus security model states that admin HTTP APIs are disabled by default, that the --web.enable-admin-api flag enables destructive operations, and that --web.enable-lifecycle enables reload and shutdown endpoints. If a team has a specific need, such as a scripted reload in a deployment pipeline, it should first consider whether a process-level signal or a restart from the orchestrator meets the need. If the flag must be used, restrict it with network controls, authenticate every caller, log and alert on use, and document who may run it and why. Keep it off in production by default, and review any exception in your change process. The hardening scope should record each enabled flag and its approver.

How will an audit or compliance review judge the result?

Auditors and certification bodies decide whether controls are adequate and issue any opinion or certification. DeployOpen does not issue audit reports, attestations or certifications. What DeployOpen can prepare is the evidence a reviewer will ask for: the configuration of TLS, authentication and admin API settings, a record of exporter target restrictions, how secrets are stored and rotated, access lists for the web endpoints and a change log showing when each setting was applied and verified. Reviewers usually test whether settings match the stated policy and whether they stay that way, so ongoing configuration review matters as much as the initial change. Confirm early which framework and control set your assessor uses, since that determines the evidence format.

What does the handover include?

A handover should let your own team operate and verify the hardened setup without the implementer present. For a fixed-scope engagement, expect written documentation of the configuration as deployed, the TLS and authentication settings, the certificate and secret rotation process, the list of enabled flags and the approver for each, exporter target restrictions, a verification checklist your team can rerun after upgrades and a runbook for common failures such as expired certificates or broken scrapers. Ask whether the handover includes a retest or walkthrough, and what happens to configuration changes made after go-live. Upgrades and continuous testing are available as separate retainers, and the topic on Prometheus upgrades and support covers what those arrangements include.

What to monitor, rotate and document after hardening

Hardening is a one-time build, but most of what keeps it working recurs. Start by watching for failed authentication attempts against the web and API endpoints, and for scrape failures that look like certificate or credential problems, such as expired client certificates, rejected TLS handshakes or basic authentication failures after a password change. Those failures often show up first as gaps in dashboards, so alert on them as well as on the targets themselves. Set the rotation schedule for TLS certificates and basic authentication passwords now, write it down with an owner, and confirm with your security team how often they expect rotation. The exact interval is an internal policy choice, not a Prometheus default.

Exporter target allowlists need periodic review, not just a one-time check. Blackbox and SNMP exporters accept targets through URL parameters, so every time a service is added, moved or retired, the list of permitted targets and the Prometheus scrape jobs that call them should change in the same change request. Track Prometheus versions on the 6-week minor release cycle and on the one-year long-term support line. The current LTS line is 3.13, which the Prometheus release cycle page lists as supported until July 31, 2027. Confirm that date against the page before you schedule upgrades, and apply security fixes to the release line you run, since a minor release generally stops receiving bug fixes after six weeks.

Back up the configuration and the data directory on a schedule you can restore from, and test a restore at least once. Local storage is not replicated, so the backup is the only recovery path for a single node. Finally, keep a written record of enabled flags such as --web.enable-admin-api and --web.enable-lifecycle, every listening endpoint, the TLS and authentication settings, and where each secret is stored and who can read it. Update that record whenever a flag or secret changes. An auditor or on-call engineer should be able to answer what is exposed and where credentials live without reading the server configuration.

How DeployOpen scopes, hardens and hands over Prometheus security work

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so Prometheus security work happens in the environment that will run it. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory every Prometheus and Alertmanager endpoint, including scrape paths, exporters and any reverse proxy in front of them
  • Identify exporters that take targets from URL parameters and record which networks can reach them
  • Agree in writing which endpoints, secrets and admin flags are in scope and which are excluded

How we build

  • Configure TLS and authentication on each endpoint, checking that basic authentication never runs without TLS
  • Confirm the admin and lifecycle API flags are off unless a documented need exists, and restrict network access to the rest
  • Move credentials out of scrape configuration into protected files or a secrets store, and test that scrapes still succeed

How we hand over

  • Provide a written record of each control, its configuration location and the test that proves it works
  • Document the steps to rotate certificates, bcrypt-hashed passwords and scrape credentials on your own schedule
  • Walk your security and platform teams through the findings, fixes and retest results before closing the engagement

How we support

  • Retest hardened endpoints after Prometheus upgrades, since the 6-week minor cycle and LTS line both change defaults and flags
  • Offer ongoing support and continuous testing as a retainer, with coverage agreed in the written scope
  • Confirm with your team which upgrade line you follow before scheduling retests, so the test plan matches the running version

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.