Skip to content

Basic Auth - Doc could add some clarity #2229

Open

Description

@lukos

The article https://prometheus.io/docs/guides/basic-auth/ describes basic auth well and we have set it up in a way that requires username/password for the prometheus web interface running on a public server. However, when trying to scrape the prometheus data from localhost, the same basic auth seems to be applied.

It is not clear from the docs whether it is possible to only apply basic auth to a specific interface and disable it for "localhost" to avoid having to specify the same creds for the scrape config as we currently apply via a secret in Kuberentes.

If this is not possible, it would be nice to clarify this in the docs, e.g. "If you enable basic auth at all, all users on the web interface and prometheus will require credentials to access the system, it is not possible to disable auth for specific interfaces"

Activity

  1. lasomethingsomething commented on Nov 23, 2026

    @lasomethingsomething

    still open/valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions