Skip to content

Cannot connect without INFO permission #5270

@moreinhardt

Description

@moreinhardt

Describe the bug
I don't understand why this GUI needs permission to run INFO on the redis server just to connect.

To Reproduce
Steps to reproduce the behavior:

  1. Configure ACLs to remove the permission to run INFO from the user you use to connect. In this example I disallow all dangerous and admin commands. The former includes the INFO command.
ACL SETUSER default on >mypassword +@all -@dangerous -@admin
  1. Try to connect to the server using RESP.app.
  2. While the actual connection is established the GUI just freezes and after some time I get a pop-up with the message Cannot connect to server 'localhost 6379'. Check log for details.. I never see any keys. The RESP.app log shows:
Connection: localhost 6379 > connected
Connection: localhost 6379 > [runCommand] AUTH *******
Connection: localhost 6379 > [runCommand] PING
Connection: localhost 6379 > [runCommand] INFO ALL
Connection: Cannot refresh server info: NOPERM this user has no permissions to run the 'info' command

Expected behavior
I can connect to the server and interact normally with the keys. Just not see any server infos. Maybe I'm just missing a setting where I can disable this INFO ALL call?

Environment (please complete the following information):

  • OS & version: Ubuntu 20.04
  • Redis-Server version: 7.0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions