update docs referencing allowed script types (#44143)

- javadoc fix referencing incorrect number of script types
- explicitely mention ability to specify stored script type
  in the allowed_types setting
This commit is contained in:
Tal Levy 2019-07-12 08:09:11 -07:00 committed by GitHub
parent 7915a439fc
commit 5e285f25d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -78,10 +78,10 @@ security of the Elasticsearch deployment.
[float]
=== Allowed script types setting
By default all script types are allowed to be executed. This can be modified using the
setting `script.allowed_types`. Only the types specified as part of the setting will be
allowed to be executed. To specify no types are allowed, set `script.allowed_types` to
be `none`.
Elasticsearch supports two script types: `inline` and `stored` (<<modules-scripting-using>>).
By default both types of scripts are allowed to be executed. To limit the types of scripts
that can run, set `script.allowed_types` to `inline`, `stored`, or `none`. For example,
to run `inline` scripts but not `stored` scripts, specify:
[source,yaml]
----