Elastalert2 restriction on documents #1518
-
Suppose I m administrator of elastalert2 and I given access to someone who ran a query with putting timeframe field so it will query over all the documents in the index I mentioned and it will make load to much on elastalert server, I want to restrict this how to do that? @jertel |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I'm not fully understanding the scenario you're describing. Let's try a list of facts:
|
Beta Was this translation helpful? Give feedback.
-
Yes someone else is creating the rules ✔️ |
Beta Was this translation helpful? Give feedback.
-
I m telling that as an admin of ElastAlert how i can restrict the user from not query over all the documents in an index |
Beta Was this translation helpful? Give feedback.
-
@jertel plse reply above thread with plse |
Beta Was this translation helpful? Give feedback.
-
@jertel plse help |
Beta Was this translation helpful? Give feedback.
ElastAlert 2 doesn't provide any user authorization. Elasticsearch provides index authorization. So if you want to keep people out of certain indices then you can use Kibana to remove a user's access to that index.
Another option is to write a script that validates a rule file contains a timestamp setting and then query Elasticsearch to ensure that the rule's target index contains a field matching that timestamp field specified in the rule.
There are a lot of ways a user can still wreak havoc on your cluster, so this validation script would likely need to constantly be updated to enforce more checks.