We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Security problem related to #1680
[[inputs.couchbase]] servers = ["http://admin:xxxxx@localhost:8091"]
Telegraf v1.7.0 (git: release-1.7 f4d22dd)
While node cluster tag has been properly sanitized, bucket stats hasn't and password is still show in the tag
I think it's a matter of
Porting https://github.com/DanKans/telegraf/blob/ab1c11b06d7b1a0542d1d8b2106e6af825b866cc/plugins/inputs/couchbase/couchbase.go#L81 change to https://github.com/DanKans/telegraf/blob/ab1c11b06d7b1a0542d1d8b2106e6af825b866cc/plugins/inputs/couchbase/couchbase.go#L89
tags := map[string]string{"cluster": addr, "bucket": bucketName} to tags := map[string]string{"cluster": regexpURI.ReplaceAllString(addr, "${1}"), "bucket": bucketName}
tags := map[string]string{"cluster": addr, "bucket": bucketName}
tags := map[string]string{"cluster": regexpURI.ReplaceAllString(addr, "${1}"), "bucket": bucketName}
The text was updated successfully, but these errors were encountered:
glinton
No branches or pull requests
Security problem related to #1680
Relevant telegraf.conf:
[[inputs.couchbase]]
servers = ["http://admin:xxxxx@localhost:8091"]
System info:
Telegraf v1.7.0 (git: release-1.7 f4d22dd)
Expected behavior:
While node cluster tag has been properly sanitized, bucket stats hasn't and password is still show in the tag
I think it's a matter of
Porting https://github.com/DanKans/telegraf/blob/ab1c11b06d7b1a0542d1d8b2106e6af825b866cc/plugins/inputs/couchbase/couchbase.go#L81 change to https://github.com/DanKans/telegraf/blob/ab1c11b06d7b1a0542d1d8b2106e6af825b866cc/plugins/inputs/couchbase/couchbase.go#L89
tags := map[string]string{"cluster": addr, "bucket": bucketName}
totags := map[string]string{"cluster": regexpURI.ReplaceAllString(addr, "${1}"), "bucket": bucketName}
The text was updated successfully, but these errors were encountered: