Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle NOPERM error for monitor #1555

Merged
merged 1 commit into from
Mar 31, 2022
Merged

fix: handle NOPERM error for monitor #1555

merged 1 commit into from
Mar 31, 2022

Conversation

luin
Copy link
Collaborator

@luin luin commented Mar 30, 2022

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

🎉 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