Skip to content

[QUESTION] how to restrict users to get specific prefix keys. #8151

@wajahat021

Description

@wajahat021

i have set two keys not i want to restrict access for user to a specific keys.
127.0.0.1:6379[190]> KEYS *

  1. "grape:green"
  2. "apple:red"
    I have set below mentioned ACL but i can get all the keys with all prefixes
    ACL
    ACL SETUSER alex on >123 ~apple:* +@ALL
    OK
    KEYS output
    127.0.0.1:6379[190]> KEYS *
  3. "grape:green"
  4. "apple:red"
    127.0.0.1:6379[190]> ACL WHOAMI
    "alex"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions