Prometheus RBAC: what access control Prometheus has and the Kubernetes RBAC it needs

Open source Prometheus has no role-based access control for users. Anyone who can reach its HTTP endpoint can read all stored series, and the Kubernetes RBAC rules in a Prometheus Operator deployment control the Prometheus Pods, not people.

On this page

Does Prometheus have RBAC for its users?

Open source Prometheus does not provide role-based access control for its users in any edition. The project has no paid edition, and its security model defines no user roles at all. It separates trusted users, who can change the command line, configuration file and rule files, from untrusted users, who are presumed to have access to the HTTP endpoint and logs. If your approval checklist asks for RBAC on the Prometheus server itself, the honest answer is that the product does not have it, and the control has to come from elsewhere in the stack.

That changes the approval decision in a specific way. Anyone who can reach the HTTP API can see every time series in the database, so Prometheus cannot limit a user to a subset of metrics on its own. Per-user or per-team limits must be enforced by components placed in front of or beside Prometheus, such as an authenticating proxy, a query gateway or a multi-tenant long-term store. Confirm with the vendor or project documentation which of these your design will use, and confirm which exact read scopes it can enforce before you record the control as met. The same applies to Alertmanager and Pushgateway, whose HTTP endpoints the security model also leaves open to anyone who can reach them.

The Kubernetes RBAC in a Prometheus Operator deployment is a different control and does not answer this question. Those ClusterRole and ClusterRoleBinding rules govern the ServiceAccounts that the Operator and the Prometheus Pods run under, such as the read-only access Prometheus needs to discover targets. They say nothing about which engineers may query metrics. Keep that distinction clear in your evidence. For putting an authenticating proxy in front of the web UI and API, which is how most teams add user identity, see the Prometheus SSO page.

Access control capabilities and where each comes from

This table compares the access control jobs in a Prometheus estate: users querying the server, the Alertmanager and Pushgateway endpoints, and the Kubernetes RBAC that Prometheus Operator generates. Read each row across the three columns to see whether the capability ships with the open-source project, needs a component you add, or does not exist. There is no paid edition of Prometheus to compare against, so every gap has to be closed with your own controls.

CapabilityBuilt inNeeds outside componentNot available
User roles in PrometheusNot applicableNot applicableNo user roles are defined; the security model only separates trusted operators from untrusted HTTP users
Per-user metric restrictionNot applicableReverse proxy or a multi-tenant store that filters series per userUsers with HTTP access can read all time series in the database
HTTP basic auth and TLS client certificatesBasic auth with bcrypt-hashed passwords and TLS client certificates, with TLS 1.2 as minimumTLS certificate issuance and rotation processBasic auth without TLS, which exposes credentials in cleartext
Admin API access controlAdmin APIs are disabled by default and enabled by explicit flagsNetwork restriction or proxy rules for any endpoint you enablePer-operator admin roles
Alertmanager accessAlertmanager has no per-user roles for its HTTP endpointAuthenticating proxy or network controls in front of the endpointLimiting who can create or resolve alerts per user
Pushgateway accessEndpoint is open to anyone who can reach itAuthentication proxy and network isolation for pushersPer-metric write permissions for each pusher
Operator RBAC for Prometheus PodsClusterRole with get, list and watch on nodes, services, endpoints, pods and ingresses, plus get on /metricsServiceAccount and ClusterRoleBinding generated for each Prometheus instanceWrite access to Kubernetes objects; Prometheus only reads them
Operator RBAC for the OperatorClusterRole with full management of StatefulSets, ConfigMaps, Secrets and its custom resourcesReview of who can edit custom resources and Secrets in the namespaceScoped roles for people who query Prometheus

What anyone who reaches the HTTP API can do

Open source Prometheus has no user roles, so the access decision you make is really about who can reach the HTTP endpoint at all. The Prometheus security model splits people into trusted users, who control the command line, the configuration file and the rule files, and untrusted users, who are presumed to have access to the HTTP endpoint and the logs. Anyone in the second group can read every time series in the database. Prometheus cannot restrict a user to a subset of metrics on its own, so if a team should see only its own services, that separation has to come from network placement, a proxy in front of the server, or separate Prometheus instances per audience. Confirm with your security team which people and service accounts fall into each group before the server is reachable from more than the operators.

The same reasoning applies to the companion components. Any user with access to the Alertmanager HTTP endpoint can read its data and can create and resolve alerts, which means an unauthorized person could silence a page for a real outage. Any user with access to the Pushgateway HTTP endpoint can create, modify and delete the metrics it holds, so a shared Pushgateway is effectively a shared write surface. Decide who may write to each endpoint and treat those write paths as more sensitive than the read path. Exporters need the same attention. The security model warns that exporters such as SNMP and Blackbox take their targets from URL parameters, so anyone with HTTP access to them can make the exporter send requests to arbitrary endpoints. Plan to restrict exporter access to Prometheus itself and to limit which destinations those exporters can reach from their network position.

Decisions to make before approval

Prometheus has no user roles, so access control is decided by how you place the server, who can reach it, and who can change its files. The cards below are the choices that determine what each user can see and do, and they should be settled before any dashboard is shared.

Identity layer in front of the UI and API

Prometheus has no built-in single sign-on, so every human login depends on a reverse proxy or gateway you put in front of the web UI and API. Whatever identity layer you pick decides who reaches the HTTP endpoint at all, and it is the only place per-user identity enters the picture. Confirm which proxy handles authentication, whether it passes a user identity downstream, and that the Prometheus port is not reachable around it. The SSO page covers this layer in detail.

Security model

Tenant or team boundary

Because anyone with HTTP access can read every time series in the database, a team that must not see another team's metrics needs a separate Prometheus server. The alternative is one shared server with no per-metric restriction, which means everyone with access sees everything. Decide this before onboarding, since splitting data later means rebuilding targets and retention. Ask which teams, data owners or regulated systems must be isolated from each other.

Who may change configuration and rule files

Prometheus separates trusted users, who can change the command line, configuration file and rule files, from untrusted users with query access. Trusted users effectively control what is scraped, what is alerted on and what is stored, so this list should be short and written down. Limit write access to the config repository and the Kubernetes objects that generate it, and review changes to scrape and rule definitions the same way you review code.

Admin APIs stay disabled

Admin HTTP APIs are disabled by default. Enabling the admin API allows destructive operations, and enabling the lifecycle flag allows reload and shutdown through HTTP. Keeping both off means configuration changes flow only through your deployment pipeline. If an operator needs one of these flags, record who asked, for which change, and when it was turned off again.

Shared Alertmanager and Pushgateway

Any user with access to the Alertmanager HTTP endpoint can read its data and create or resolve alerts. Any user with access to the Pushgateway can create, modify and delete the metrics it holds. Sharing either component across teams therefore shares those write paths with everyone on the network. Decide whether each team gets its own Alertmanager routing and Pushgateway, and confirm which endpoints are reachable from which network segments.

Kubernetes RBAC scoped to namespaces

In a Prometheus Operator deployment, Kubernetes RBAC governs the Operator and the Prometheus Pods, not the people querying Prometheus. The Operator's ClusterRole needs broad management of StatefulSets, ConfigMaps and Secrets, and Prometheus needs read access to nodes, services, pods and endpoints across the cluster. Decide whether these grants stay cluster-wide or are limited to namespaces you control, and check who can create the custom resources that change scrape behavior.

Operator RBAC docs

How the answer changes by situation

When one team runs one Prometheus server, the access model is simple but not empty. Prometheus defines no user roles, so everyone who can reach the HTTP endpoint can see every time series the server holds. The practical question is therefore who is on the network path to the server and whether anyone outside the team can reach it. The trusted/untrusted split in the security model maps onto this case: people who can change the command line, configuration and rule files are trusted, and everyone else should be treated as able to read all metrics.

  • Network reach: confirm which hosts and subnets can open the listening port, and restrict it at the firewall or host level.
  • Authentication options: decide whether TLS with client certificates or HTTP basic authentication with bcrypt-hashed passwords is needed, and confirm that basic authentication is only used over TLS.
  • Admin endpoints: confirm that the admin API and lifecycle endpoints remain disabled unless a named operator needs them.
  • Exporter targets: check whether any exporter takes targets from URL parameters and who can call it.
  • Ownership: name the people who may edit configuration and rule files, since they are effectively the trusted users.

Confirm with the team which people genuinely need read access and whether the team's metrics contain anything that should not be visible to the wider organization.

Order of work to put access control in place

This sequence moves from deciding who is trusted, through the boundaries and endpoints that enforce that decision, to a final check of the Kubernetes permissions the Operator grants. Each step closes with a check you can record as evidence before moving on.

  1. Define the trusted user group and who controls configuration

    Start by listing the people who may change the Prometheus command line, configuration file and rule files. Prometheus does not have user roles, so this trusted group is the only tier that can change how the server behaves, and everyone else should be treated as an untrusted user with HTTP access. Assign the owner of the configuration repository and the change approval path in writing. The step is done when you can name each trusted person or team, the system that holds their write access to configuration, and who approves changes to rule files.

  2. Decide the tenant boundary for metric data

    Decide whether any group of users must be kept from seeing some metrics. Prometheus gives everyone with HTTP endpoint access all of the time series in its database, so open source Prometheus cannot restrict a user to a subset of metrics on its own. If your answer is that some teams must not see other teams' data, the boundary has to be enforced by separate Prometheus servers per tenant or by a layer in front of the query path that you build and test. Record the decision and the list of groups that share each server. The step is done when every server has a documented audience that matches its data.

  3. Place authentication and authorization in front of HTTP endpoints

    Put an authenticating and authorizing layer in front of the web UI and API, because Prometheus does not provide per-user authorization. Options in the security model include TLS with client certificates and HTTP basic authentication with bcrypt-hashed passwords, and basic authentication must not be used without TLS because it exposes credentials in cleartext. Single sign-on is normally added through a reverse proxy, which is covered on the SSO page. Confirm that unauthenticated requests to the query API and UI are refused, and that the proxy does not forward requests that skip its checks. The step is done when a test request without credentials fails and a test request from an approved user succeeds.

  4. Disable or restrict admin and lifecycle endpoints

    Confirm that the admin HTTP APIs are off, since they are disabled by default. Only enable the admin API if you have a specific need, because it allows destructive operations, and the lifecycle endpoints that reload or shut down the server only when the --web.enable-lifecycle flag is set. Where you need reloads, restrict them to the automation account that deploys configuration, and block them at the proxy for everyone else. Check the running flags on each server. The step is done when the process flags match the approved list and a request to a restricted endpoint from an ordinary user is refused.

  5. Scope Alertmanager and Pushgateway access

    Alertmanager and Pushgateway have their own HTTP endpoints and their own exposure. Any user with access to the Alertmanager HTTP endpoint can read its data and create and resolve alerts, and any user with access to the Pushgateway can create, modify and delete the metrics it holds. Limit both endpoints to the Prometheus servers, the alert operators and the job systems that push metrics, and place the same authentication used for Prometheus in front of them. Confirm which accounts can silence alerts and which can push metrics. The step is done when each endpoint has a written list of allowed callers and a test from an unlisted caller is refused.

  6. Review exporter targets that take URL parameters

    Check every exporter that takes its target from a URL parameter, such as SNMP and Blackbox exporters. The security model warns that anyone with HTTP access to these can make them send requests to arbitrary endpoints. Restrict who can reach those exporters, and set the probe or scrape targets only in configuration that trusted users control. Record each exporter, its allowed callers and the networks it can reach. The step is done when no untrusted user can reach an exporter directly and the reachable networks are documented.

  7. Review Operator ClusterRoles against the documented rules

    If you run Prometheus Operator on Kubernetes, compare the ClusterRoles against the documented rules. The Prometheus ClusterRole should only read: get, list and watch on nodes, nodes/metrics, services, endpoints, pods, endpointslices and ingresses, and get on the /metrics non-resource URL, since Prometheus does not modify Kubernetes objects. The Operator's own ClusterRole needs broad management of StatefulSets, ConfigMaps, Secrets and its custom resources, so limit who can edit those objects in the namespace. Note that these rules govern the Prometheus and Operator pods, not people querying Prometheus. The step is done when a diff of the deployed roles against the documentation shows no unexplained extra verbs or resources, and you have a dated record of the review.

What a security reviewer asks to see

This table lists the questions a reviewer asks about who can reach or change Prometheus, and where the answer lives. Prometheus has no user roles, so most evidence comes from configuration, network policy and the Kubernetes objects the Operator generates. Use it to check that each access path has a named owner and a recorded setting before the review starts.

Question askedWhere the evidence comes from
Who is a trusted user, and how are configuration changes recorded?Your list of people with shell or deployment access, plus version control history for the command line flags, configuration file and rule files
Who can reach the HTTP endpoint, and what does the proxy or TLS policy allow?Network policy or firewall rules, the reverse proxy or authentication configuration, and TLS and basic auth settings on the server
Are the admin API flags disabled?The startup flags on the running process or Pod spec, confirming --web.enable-admin-api and --web.enable-lifecycle are not set unless a documented need exists
Who can reach Alertmanager and Pushgateway, and what can they change?Access rules for each endpoint, Alertmanager silence and receiver configuration, and Pushgateway metric deletion permissions
What can the Operator and Prometheus Pods do in the Kubernetes API?The ClusterRole and ClusterRoleBinding manifests for the Operator and for the ServiceAccount each Prometheus Pod runs under, compared with the rules in the Operator RBAC documentation
Which targets can exporters be pointed at, and who sets them?Exporter configuration for SNMP and Blackbox, the list of allowed modules and targets, and network egress rules from the exporter hosts

Questions buyers ask before approving Prometheus access control

Does Prometheus have role-based access control in any edition?

No. The Prometheus security model defines no user roles. It separates trusted users, who can change the command line, configuration file and rule files, from untrusted users, who are presumed to have access to the HTTP endpoint and logs. The project itself has no paid enterprise edition, so there is no licensed tier that adds roles. Access control has to come from the layer in front of Prometheus, such as an authenticating reverse proxy, network controls and TLS with client certificates, and from how the server is operated. Confirm with your security team which of these you will treat as the control of record before you approve a design.

Can we limit a user to only some of the metrics?

Not on open source Prometheus alone. The security model states that anyone with access to the HTTP endpoint can see all time series in the database, so a single Prometheus server cannot give one user a subset of metrics. If you need per-team read boundaries, the usual approaches are separate Prometheus servers per team or environment, or a query layer in front that filters what each caller can request. Each option moves cost into infrastructure, storage and operations, so decide which metrics are actually sensitive before you choose one.

Is Kubernetes RBAC the answer for people who query Prometheus?

No. The Prometheus Operator RBAC documentation covers the Kubernetes permissions used by the Operator and by the Prometheus Pods themselves, each running under a ServiceAccount linked to a ClusterRole. It does not describe access control for people who query Prometheus. The Prometheus ClusterRole needs get, list and watch on objects such as nodes, services, pods and endpoints, and get on the /metrics non-resource URL. Those rules let Prometheus discover targets. They do not restrict what a human can read through the web UI or API.

What does a per-team design cost, and what drives it?

Prometheus itself has no license fee, so the cost comes from the infrastructure, the people and the engagement. Each separate Prometheus instance adds compute, memory, disk and retention, plus its own upgrades, backups and alert rules. Drivers include the number of teams, how many environments each team needs, how much history must be kept, whether an authenticating proxy or query layer must be built and maintained, and how many Alertmanager instances you run. Ask a partner to price each boundary separately in a written scope, and separate one-time build work from recurring operations.

What can our own team do without a partner?

Your team can handle the parts that depend on your own identity and network setup: deciding which metrics are sensitive, mapping teams to access groups, managing the Kubernetes ServiceAccounts and ClusterRoles for Prometheus, and keeping the admin flags disabled. Admin APIs are off by default, and --web.enable-admin-api and --web.enable-lifecycle should stay off unless there is a documented need. Work that usually needs experienced help includes designing the proxy and TLS chain, testing that a user cannot reach a metric they should not see, and documenting the evidence for a review. Confirm your team's skills against that list.

How long does this work take?

The duration depends on the design you choose, not on a fixed number. A single shared server with an authenticating proxy and a small set of roles is far less work than separate instances per team with per-team dashboards and tests. Other drivers include the number of identity sources, the number of clusters, whether exporters that take targets from URL parameters must be restricted, and how much testing your compliance reviewers expect. Ask for the timeline to be tied to named deliverables in the written scope, and treat any date given before the design is agreed as provisional.

What should we ask a partner to include in a fixed-scope quote?

Ask for the scope to name each access boundary, the proxy or query layer that enforces it, and the Kubernetes objects the Operator and Prometheus Pods will use. The quote should list the exporters and Alertmanager endpoints in scope, because the security model notes that Alertmanager users can create and resolve alerts and Pushgateway users can change its metrics. Also ask for a test plan showing that restricted users cannot reach out-of-scope data, handover documentation, and what is excluded, such as ongoing operations. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so ask for these items to be written into that document.

How DeployOpen works on this

DeployOpen starts by separating who can reach the Prometheus HTTP endpoints from what the Kubernetes RBAC rules let Prometheus and the Operator do inside your cluster. We write that split down before any configuration changes, then build, test and document the controls in infrastructure you control.

How we scope

  • We list every group that reaches the Prometheus, Alertmanager and Pushgateway HTTP endpoints and what each group needs to see.
  • We map the Kubernetes ServiceAccounts, ClusterRoles and ClusterRoleBindings used by Prometheus and the Operator in your clusters.
  • We agree the written scope, deliverables and timeline in writing before work starts, since engagements are fixed-scope.

How we build

  • We put the access layer in front of the web UI and API, and confirm which admin and lifecycle endpoints stay disabled.
  • We review the Operator and Prometheus ClusterRoles against the permissions each component actually uses, and narrow them where possible.
  • We test that an unauthorized user cannot query, alter or silence alerts, and that exporters cannot be pointed at arbitrary targets.

How we hand over

  • We deliver a written access model that names trusted and untrusted users, endpoints, roles and the Kubernetes rules behind each.
  • We document the manifests, configuration and test steps so your platform team can reproduce and review them.
  • We walk your operators through the access review routine and the steps for adding a user or changing a rule.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for access changes after handover.
  • We can re-test access controls after Prometheus or Operator version upgrades, which change the rules you rely on.
  • We confirm with you which access features your chosen Prometheus version and Operator release provide before we rely on them.

Sources and further reading

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.