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 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Negashev
Copy link

I think this will help some developers to make a secure cluster

Copy link
Contributor

@zheplusplus zheplusplus left a comment

Choose a reason for hiding this comment

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

Thanks for you patch.

I'm not sure if it's a good idea to configure the same password auth for each Redis in a cluster. There is some discussion that suggest usage of firewalls rather than a password.

@@ -9,6 +9,7 @@ dump.rdb

# Distribution / packaging
.Python
.idea/
Copy link
Contributor

Choose a reason for hiding this comment

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

If you use an IDE that leaves something in the project directory, please add it to your gitignore_global.

__version__ = '0.5.0'
REPO = 'https://github.com/HunanTV/redis-trib.py'
__version__ = '0.0.1'
REPO = 'https://github.com/Negashev/redis-trib.py'
Copy link
Contributor

Choose a reason for hiding this comment

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

I will appreciate if you could take care of this project but could you please use a higher version number?

Copy link
Author

Choose a reason for hiding this comment

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

sure

@@ -80,11 +80,11 @@ def addslots(t, begin, end):
addslots(t, begin, end)


def create(host_port_list, max_slots=1024):
def create(host_port_list, password=None, max_slots=1024):
Copy link
Contributor

Choose a reason for hiding this comment

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

The new optional parameter should be append after existing parameters for API compatible.

Copy link
Author

Choose a reason for hiding this comment

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

I try to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants