patrikx3/redis-ui

Read-Only Mode

alexgaganashvili opened this issue · 10 comments

Hello,

Is it possible to add a feature to connect to Redis hosts in read-only mode, that is to prevent users from being able to modify data stored in Redis?

Thanks.

yes, a PR is always welcome.

maybe you could explain what kind of read only mode means for your use case... there are console and the home page which has multiple uses.

I would like to prevent users from adding/deleting/creating keys and values. I want them to only view the content.

Thanks

Thanks for enabling the feature.
Question. According to the change log "GUI elements removed and console is disabled", does that also mean that corresponding API calls are disabled as well? Jut want to confirm.
Btw, is there a flag or a parameter I can specify in the configmap to enable the feature?

Thanks.

yes, first i tested all these elements throwing readonly mode error. then i removed them from the gui. you can review the code in the redis ui server.
you can edit the readonly mode in the settings connections edit/add dialog.

can u give more detail about this feature?

I tried in yaml (k8s)

          image: patrikx3/p3x-redis-ui
          command: ["p3x-redis"]
          args: ["--readonly-connections"]

but I still can delete the key/value in UI

as it says "readonly connections", means the connections are read only... i hope it is clear...

the read only data is on the connection level...