I have already seen this post about the restriction of user access to some concreate topics, but I want to restrict subscribe command not to a concrete topic, but to topics that satisfy some pattern like "Test1*". I tried the next line from aclfile:

user test1 on >test ~Test1:* +@all -@admin -@dangerous +latency -subscribe +subscribe|Test1*

but seems it's not working as a pattern. But it works just like a concreate name of the topic "Test1*" and that it is not fine for me. Is it in general possible? Thanks!

Comment From: madolson

Hi, that is currently only supported in a minimal way. The hack mentioned in that post uses "subcommands" as a way to give basic support for the feature you're looking for. doing +subscribe|test1 only gives access to the exact channel "test1" and only if it's the 2nd argument. You can keep track on the progress of the more complex solution here: https://github.com/redis/redis/issues/7923