Skip to content

Commit

Permalink
Add Docs: Elasticsearch Security Privileges
Browse files Browse the repository at this point in the history
Add new page in documentation specifying the Elasticsearch Security Privileges required for ElastAlert
  • Loading branch information
abhishekjiitr committed Aug 19, 2019
1 parent 3affdd7 commit 885896c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/source/elasticsearch_security_privileges.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Elasticsearch Security Privileges
*********************************

While ElastAlert will just work out-of-the-box for unsecured Elasticsearch, it will need a user with a certain set of permissions to work on secure Elasticseach that allow it to read the documents, check the cluster status etc.

SearchGuard Permissions
=======================

The permissions in Elasticsearch are specific to the plugin being used for RBAC. However, the permissions mentioned here can be mapped easily to different plugins other than Searchguard.

Details about SearchGuard Action Groups: https://docs.search-guard.com/latest/action-groups


Writeback Permissions
---------------------------

For the global config (which writes to the writeback index), you would need to give all permissions on the writeback indices.
In addition, some permissions related to Cluster Monitor Access are required.

``Cluster Permissions``: CLUSTER_MONITOR, indices:data/read/scroll*

``Index Permissions`` (Over Writeback Indices): INDICES_ALL


Per Rule Permissions
--------------------------

For per rule Elasticsearch config, you would need at least the read permissions on the index you want to query.
Detailed SearchGuard Permissions:

``Cluster Permissions``: CLUSTER_COMPOSITE_OPS_RO

``Index Permissions`` (Over the index the rule is querying on): READ, indices:data/read/scroll*


1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Contents:
running_elastalert
ruletypes
elastalert_status
elasticsearch_security_privileges
recipes/adding_rules
recipes/adding_alerts
recipes/writing_filters
Expand Down

0 comments on commit 885896c

Please sign in to comment.