Disable CLI
Opened this issue · 2 comments
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)
@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:
- 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
andflushdb
. - If you don't want the CLI feature al together you could, in addition to #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?
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.