-
Notifications
You must be signed in to change notification settings - Fork 7
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
Security #3
base: master
Are you sure you want to change the base?
Security #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but:
- check the
refresh
vsrefres
typo - please rebase on top of master, since I've merged the other PR
Thanks!
redis-snmp
Outdated
@@ -151,8 +151,9 @@ my %opt = ( | |||
daemon_pid => '/var/run/redis-snmp.pid', | |||
oid => '1.3.6.1.4.1.20267.400.1', | |||
port => 6379, | |||
refresh => 300, | |||
refres => 300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks suspicious :)
I did the following changes: |
Hi,
the recent version reads the client password from the command line options. Hence the password is visible in the process table. You can see it for example with "ps -ef". This is a security risk.
I tried to fix this: Therefore I added a configuration parameter "-c" that requires the redis server configuration path. Now, redis-snmp tries to read the client password from the redis server configuration. To make life a little bit easier a default redis server configuration path "/etc/redis/redis.conf" is used. This means for the default case that this is the path of the user's redis server configuration the user needs neither parameter "-c" nor parameter "-p".