-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from abhishekjiitr/add-es-permissions
Add Docs: Elasticsearch Security Privileges
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters