Skip to content

Commit 1da762a

Browse files
committed
Add note about reduced ES perms
1 parent f231947 commit 1da762a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/en/admin/elasticsearch.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ ES_PASS=l0ng-r4nd0m-p@ssw0rd
142142

143143
You are all set, and your Elasticsearch server should be much more secure!
144144

145+
#### Reduced permissions in shared environments
146+
147+
If you are running in a shared environment with multiple consumers of the same ES server (Mastodon installs, other apps, etc), in addition to using `ES_PREFIX` as described above to isolate the generated search indexes, you can also provide more limited access to the role you create.
148+
149+
For example, changing `"names": ["*"]` to `"names": ["app_prefix_*"]` (where `app_prefix` matches the value you are using as an index prefix) will limit the access of the users with that role to operate only on the appropriate indices.
150+
145151
### Populate the indices
146152

147153
After saving the new configuration, restart Mastodon processes for it to take effect:

0 commit comments

Comments
 (0)