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

Add options for basic auth to haproxy input #4657

Merged
merged 2 commits into from
Sep 10, 2018
Merged

Conversation

glinton
Copy link
Contributor

@glinton glinton commented Sep 7, 2018

Resolves #4509

Formerly users who enabled auth on their haproxy servers were required to set the username/password in the url. Now it is added separately. Older config styles (https://user:pass@host/haproxy?stats) won't break and won't print login info in logs on bad connections.

addr = u.String()
}

if g.Username != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set if either username or password is not empty, since some folks only have a password.

@glinton glinton changed the title Add options for basic auth Add options for basic auth to haproxy input Sep 10, 2018
@danielnelson danielnelson added this to the 1.8.0 milestone Sep 10, 2018
@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Sep 10, 2018
@danielnelson danielnelson merged commit eb36e8f into master Sep 10, 2018
@danielnelson danielnelson deleted the bugfix/4509 branch September 10, 2018 18:56
rgitzel pushed a commit to rgitzel/telegraf that referenced this pull request Oct 17, 2018
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
dupondje pushed a commit to dupondje/telegraf that referenced this pull request Apr 22, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants