StackExchange / StackExchange.Redis

General purpose redis client
https://stackexchange.github.io/StackExchange.Redis/
Other
5.89k stars 1.51k forks source link

ACL NOPERM this user has no permissions to access to the publish command #2512

Closed ghost closed 1 year ago

ghost commented 1 year ago

openSUSE Tumbleweed Redis 7.0.12

In the config, I disable the default user and define my own user

user default off
user MY_USER on +@all ~* >MY_PASSWORD

I connect by socket via redis-cli and can execute keys * without any problems But I don't have access to the publish command.

PUBLISH time 1689623995
(error) NOPERM this user has no permissions to access one of the channels used as arguments

It used to work fine, but now, for some reason, it's not working. :-(

mgravell commented 1 year ago

It sounds like you're saying PUBLISH doesn't work even via redis-cli, in which case that's a server config issue - which is "not us" - we're just a specific client library implementation, which you aren't using if you're using redis-cli.

However, please see the server docs here and search for "Allow and disallow Pub/Sub channels"

ghost commented 1 year ago

I'm sorry I took you for an upstream. https://github.com/redis/redis/issues/12418