nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.84k stars 304 forks source link

ACLs on key prefixes? dbs? #111

Open rrauenza opened 9 years ago

rrauenza commented 9 years ago

I may not have thought this through, but would it make sense to have ACL's on key prefixes? It would be nice to be able to restrict what I serve over webdis with key namespaces.

For example, only allow "this.kind.of.key." Or "this/kind/of/key/"

Not sure if you should use full regex, or just * or just a prefix ... even just the prefix would be helpful.

You might also consider incorporating the db# in the ACL a well.