Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: `basic_auth` should not require a `username` #4173

Closed
juliusv opened this Issue May 17, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@juliusv
Copy link
Member

juliusv commented May 17, 2018

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.

@adamdecaf

This comment has been minimized.

Copy link
Contributor

adamdecaf commented May 18, 2018

Whoops, prometheus/common#135 fixes that.

brian-brazil added a commit to prometheus/common that referenced this issue May 18, 2018

config: basic_auth doesn't need to require a username (#135)
Issue: prometheus/prometheus#4173

Signed-off-by: Adam Shannon <adamkshannon@gmail.com>
@juliusv

This comment has been minimized.

Copy link
Member Author

juliusv commented May 18, 2018

@adamdecaf Awesome, thanks :)

@adamdecaf

This comment has been minimized.

Copy link
Contributor

adamdecaf commented May 21, 2018

#4174 Should fix it in prometheus itself.

@fabxc fabxc closed this in #4174 May 28, 2018

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.