codelibs / elasticsearch-auth

Authentication filter for Elasticsearch
Apache License 2.0
75 stars 25 forks source link

Possibility to use a wildcard to address multiple indices in a constraint statement #11

Open jzipfler opened 10 years ago

jzipfler commented 10 years ago

I am using the bro framework to gather data and store them in the database. Bro creates indices like "bro-201408220900". I tried to use a star as wildcard, to restrict access to the bro related fields like that: POST /security/constraint/ { "authenticator" : "index", "paths" : ["bro-*"], "methods" : ["get", "post"], "roles" : ["admin"] }

Is this even possible to use such wildcards for content constraints or do I use them wrong?