Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 692bf1c

Browse files
committed
Disable dynamic scripting
Given that ES has CORS enabled for *all hosts*, this is a nasty attack vector. Let's turn it off.
1 parent d0c955e commit 692bf1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/elasticsearch.yml.erb

+3
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ discovery:
4141
unicast:
4242
hosts:
4343
- <%= @host %>:<%= @transport_port %>
44+
45+
script:
46+
disable_dynamic: true

0 commit comments

Comments
 (0)