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 password option to redis plugin #2786

Closed
x1e opened this issue May 11, 2017 · 6 comments
Closed

Add password option to redis plugin #2786

x1e opened this issue May 11, 2017 · 6 comments
Labels
area/redis feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Milestone

Comments

@x1e
Copy link

x1e commented May 11, 2017

Bug report

Relevant telegraf.conf:

[[inputs.redis]]
servers = ["tcp://123456$%^@localhost:6379"]

System info:

debian 8.8
Telegraf 1.2.1

Steps to reproduce:

telegraf -config /etc/telegraf/telegraf.conf -input-filter redis -test

Expected behavior:

Can generate right redis info

Actual behavior:

  • Plugin: inputs.redis, Collection 1
    Unable to parse to address 'tcp://123456$%^@localhost:6379': parse tcp://123456$%^@localhost:6379: invalid URL escape "%^"

Feature Request

Proposal:

Current behavior:

only alphanumerics, the special characters "$-_.+!*'(),", and reserved characters used for their reserved purposes may be used unencoded within a URL

Desired behavior:

allow other character in password

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

all password has this problem

@danielnelson
Copy link
Contributor

Have you tried applying url escaping? I believe it would be tcp://123456$%25^@localhost:6379.

We should change the input to have a password option instead of requiring it to be added to a url.

@danielnelson danielnelson added this to the 1.4.0 milestone May 11, 2017
@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label May 11, 2017
@danielnelson danielnelson changed the title invalid URL escape "%^" Add password option to redis plugin May 18, 2017
@danielnelson danielnelson modified the milestones: 1.4.0, 1.5.0 Aug 14, 2017
@danielnelson
Copy link
Contributor

I think we should rework this plugin to use gopkg.in/redis.v4

@h4ckroot
Copy link

I have the same issue, the plugin never works with any password !. Please help.

@danielnelson
Copy link
Contributor

@h4ckroot Does it work with a weak password containing no symbols?

@h4ckroot
Copy link

Unfortunately, no !. I used the password: kool1, but that did not work !.

@danielnelson danielnelson modified the milestones: 1.5.0, 1.6.0 Nov 29, 2017
@danielnelson danielnelson modified the milestones: 1.6.0, 1.7.0 Jan 27, 2018
@danielnelson danielnelson modified the milestones: 1.7.0, 1.8.0 Jun 3, 2018
@russorat russorat modified the milestones: 1.8.0, 1.9.0 Sep 4, 2018
@glinton
Copy link
Contributor

glinton commented Sep 10, 2018

I wonder if the reason the non-special character password didn't work is because a bad url format, there should be a leading : that separates the empty username with the defined password. tcp://:kool1@localhost:6379 4669 resolves this in any case.

@glinton glinton modified the milestones: 1.9.0, 1.8.0 Sep 10, 2018
@danielnelson danielnelson added this to the 1.8.0 milestone Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redis feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

No branches or pull requests

5 participants