Skip to content

fix: handle NOPERM error for monitor - #1555

Merged
luin merged 1 commit into
mainfrom
zh-monitor
Mar 31, 2022
Merged

luin merged 1 commit into
mainfrom
zh-monitor

Conversation

@luin

@luin luin commented Mar 30, 2022

Copy link
Copy Markdown
Collaborator

Closes #1498

The cause was self.call('monitor') not being caught and unhandled errors crashed the process.

Test Plan:

  1. Create a new user on Redis without the permission of monitor: ACL SETUSER nomonitor reset +info >123456 on.
  2. Make sure with user nomonitor, calling redis.monitor() should be rejected.

@luin
luin merged commit 93b873d into main Mar 31, 2022
@luin
luin deleted the zh-monitor branch March 31, 2022 13:51
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 5.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Node.js process crushes if a user has no permissions to run the 'monitor' command

2 participants