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

Disable CLI #73

Open
bradherman opened this issue Jun 16, 2014 · 2 comments
Open

Disable CLI #73

bradherman opened this issue Jun 16, 2014 · 2 comments

Comments

@bradherman
Copy link

Any way to disable the CLI? We don't want someone to accidentally be able to wipe our caches from CLI (or hack it and disable)

@steelThread
Copy link
Owner

@bradherman - not currently. You have a couple of options if you don't want to submit a PR and want to do something in your fork:

  1. Add the administrative (server) commands that you want to be ignored (unsupported) here. This would still give you cli functionality without supporting commands like flushall and flushdb.
  2. If you don't want the CLI feature al together you could, in addition to Can not run in Mac OSX Lion #1, clear out the markdown sections for the CLI tab and the CLI tab body.

If you are mostly interested in #1 this is something that we could easily support via a config opt, something along the lines of allow_admin_cmds (defaults to true).

It would be slightly more work to configure the sinatra app and the view to completely turn off the cli feature all together.

Thoughts?

@bradherman
Copy link
Author

I like the first option. I'm going to add that in and open a pr for you in the next few days. Also need to make sure redmon works with redis labs slowlog, so look for that soon as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants