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

Get available ACL from server? #2360

Closed
dominikjeske opened this issue Feb 2, 2023 · 2 comments
Closed

Get available ACL from server? #2360

dominikjeske opened this issue Feb 2, 2023 · 2 comments

Comments

@dominikjeske
Copy link

Our instance of Redis has custom ACL's with some commands blocked. Currently we are using CommandMap to exclude commands but I wonder is it possible to use StackExchange.Redis to get available ACL's for user and configure CommandMap having server configuration? If I get it right ACL commands are missing for now #2055 but I wonder if scenario described above will be available in the future?

@mgravell
Copy link
Collaborator

mgravell commented Feb 2, 2023

I haven't checked, but does redis even offer the ability to query this? does it filter COMMAND LIST, for example? there's ACL DRYRUN, but that needs a full set of args, and needs to be per-command; there's also the issue of the key pattern (~, %R and %W) which we'd need to run.

UItimately, though: what would the benefit here be? we'll get a suitable error either way; this would just get the error without bothering the server. That's useful if we can do it for free, but given the amount of complexity that we'd need to duplicate at the client, I'm not sure it warrants it.

@dominikjeske
Copy link
Author

thanks for info.

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

No branches or pull requests

2 participants