Skip to content

Regression: basic_auth should not require a username #4173

@juliusv

Description

@juliusv

After #4077, basic_auth in HTTP configs now requires setting a username, otherwise you get an error:

[...] err="Error loading config couldn't load configuration (--config.file=prometheus.yml): parsing YAML file prometheus.yml: basic_auth requires a username"

Using basic auth without a username has been standard practice, for example in the suggested remote_write configs for Cortex. So this is a breaking change and needs to be fixed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions