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 auth token to OpenTSDB #2640

Closed
RemyTinco opened this issue Apr 8, 2017 · 6 comments
Closed

Add auth token to OpenTSDB #2640

RemyTinco opened this issue Apr 8, 2017 · 6 comments
Labels
feature request Requests for new plugin and for new features to existing plugins help wanted Request for community participation, code, contribution

Comments

@RemyTinco
Copy link

Feature Request

Allow HTTP(S) basic auth in OpenTSDB connection.

Proposal:

Current behavior:

[[outputs.opentsdb]]
        host = "http://opentsdb-gra1.tsaas.ovh.com"

Desired behavior:

[[outputs.opentsdb]]
        host = "http://opentsdb-gra1.tsaas.ovh.com"
        tokenId = "foo",
        tokenKey = "bar"

Use case: [Why is this important (helps with prioritizing requests)]

I'm using OVH PaaS for monitoring. We must use token ...
Actually, you can find an example here : https://github.com/runabove/iot-push-examples/blob/master/Golang/go-client.go

@danielnelson danielnelson added feature request Requests for new plugin and for new features to existing plugins help wanted Request for community participation, code, contribution labels Apr 11, 2017
@cambierr
Copy link

To get this more general I suggest using username instead of tokenId and password instead of tokenKey.

@mirath
Copy link
Contributor

mirath commented Jun 19, 2017

Doesn't #1913 close this?

@danielnelson
Copy link
Contributor

Thanks for pointing out this related issue @mirath. It looks to me like that PR does not actually add basic auth support as titled, but instead allows passing through the userinfo section of the url.

@mirath
Copy link
Contributor

mirath commented Jun 19, 2017

I looked at the changes and it looks that, for an url formated as https://<user>:<pass>@example.com/, it passes <user>:<pass> as a string to whatever it creates the HTTP/HTTPS connection. If that is the case wouldn't that allow to connect to OpenTSDB using basic auth?

@danielnelson
Copy link
Contributor

Basic auth uses the Authorization header and base64 encodes the user:password.

@helenosheaa helenosheaa added area/iot New plugins or features relating to IoT monitoring and removed area/iot New plugins or features relating to IoT monitoring labels Jan 29, 2021
@reimda
Copy link
Contributor

reimda commented Jul 25, 2022

Since the username and password is passed through to the connection, it appears that #1913 does fix this. Closing

@reimda reimda closed this as completed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins help wanted Request for community participation, code, contribution
Projects
None yet
Development

No branches or pull requests

6 participants