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 support for password protected ACL users #106

Merged
merged 1 commit into from
Jun 29, 2021
Merged

Add support for password protected ACL users #106

merged 1 commit into from
Jun 29, 2021

Conversation

voltbit
Copy link
Contributor

@voltbit voltbit commented Jun 28, 2021

  • Added ACL support to the redis-cli wrapper
  • Added ACL setup with disabled default user and password protected
    users
  • Added envvars for the admin user used by the operator

Part of #100

- Added ACL suport to the redis-cli wrapper
- Added ACL setup with disabled default user and password protected
users
- Added envvars for the admin user used by the operator
@voltbit voltbit added the enhancement New feature or request label Jun 28, 2021
@voltbit voltbit requested a review from shyimo June 28, 2021 05:01
controllers/rediscli/cli.go Show resolved Hide resolved
config/manager/base/manager.yaml Show resolved Hide resolved
user := os.Getenv("REDIS_USERNAME")
if user != "" {
cli.Auth = &rediscli.RedisAuth{
User: user,
Copy link
Contributor

Choose a reason for hiding this comment

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

where is the REDISCLI_AUTH (password) usage ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same answer as here:
#106 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

i understand now. so i would like to prevent from the operator to start when REDIS_USERNAME was supplied but
REDISCLI_AUTH env variable is not set. you can throw an error (with log) here in case this apply

config/redis/users.acl Show resolved Hide resolved
Copy link
Contributor

@shyimo shyimo left a comment

Choose a reason for hiding this comment

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

LGTM. approved

@voltbit voltbit merged commit f71e5fb into PayU:main Jun 29, 2021
@voltbit voltbit deleted the add-acl-support-2 branch June 29, 2021 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants