File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,16 @@ security of the Elasticsearch deployment.
78
78
[discrete]
79
79
=== Allowed script types setting
80
80
81
- By default all script types are allowed to be executed. This can be modified using the
82
- setting `script.allowed_types`. Only the types specified as part of the setting will be
83
- allowed to be executed. To specify no types are allowed, set `script.allowed_types` to
84
- be `none`.
81
+ Elasticsearch supports two script types: `inline` and `stored` (<<modules-scripting-using>>).
82
+ By default, {es} is configured to run both types of scripts.
83
+ To limit what type of scripts are run, set `script.allowed_types` to `inline` or `stored`.
84
+ To prevent any scripts from running, set `script.allowed_types` to `none`.
85
+
86
+ IMPORTANT: If you use {kib}, set `script.allowed_types` to `both` or `inline`.
87
+ Some {kib} features rely on inline scripts and do not function as expected
88
+ if {es} does not allow inline scripts.
89
+
90
+ For example, to run `inline` scripts but not `stored` scripts, specify:
85
91
86
92
[source,yaml]
87
93
----
@@ -90,6 +96,7 @@ script.allowed_types: inline <1>
90
96
<1> This will allow only inline scripts to be executed but not stored scripts
91
97
(or any other types).
92
98
99
+
93
100
[[allowed-script-contexts-setting]]
94
101
[discrete]
95
102
=== Allowed script contexts setting
You can’t perform that action at this time.
0 commit comments