mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Add New Security Script Settings (#24637)
Settings are simplified to allowed_types and allowed_contexts. If a setting is not specified the default is to enable all for that setting.
This commit is contained in:
parent
2e6dc04025
commit
43292979fd
8 changed files with 189 additions and 13 deletions
|
@ -87,6 +87,51 @@ change from the defaults described above. You should be very, very careful
|
|||
when allowing more than the defaults. Any extra permissions weakens the total
|
||||
security of the Elasticsearch deployment.
|
||||
|
||||
[[allowed-script-types-setting]]
|
||||
[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.
|
||||
|
||||
[source,yaml]
|
||||
----
|
||||
script.allowed_types: inline <1>
|
||||
----
|
||||
<1> This will allow only inline scripts to be executed but not stored scripts
|
||||
(or any other types).
|
||||
|
||||
[[allowed-script-contexts-setting]]
|
||||
[float]
|
||||
=== Allowed script contexts setting
|
||||
|
||||
By default all script contexts are allowed to be executed. This can be modified using the
|
||||
setting `script.allowed_contexts`. Only the contexts specified as part of the setting will
|
||||
be allowed to be executed.
|
||||
|
||||
[source,yaml]
|
||||
----
|
||||
script.allowed_contexts: search, update <1>
|
||||
----
|
||||
<1> This will allow only search and update scripts to be executed but not
|
||||
aggs or plugin scripts (or any other contexts).
|
||||
|
||||
[[deprecated-script=settings]]
|
||||
[float]
|
||||
=== Deprecated script settings
|
||||
|
||||
The following settings have all been deprecated and will be removed in 6.0:
|
||||
|
||||
* <<security-script-source>>
|
||||
* <<security-script-context>>
|
||||
* <<security-script-fine>>
|
||||
|
||||
Use the following instead:
|
||||
|
||||
* <<allowed-script-types-setting>>
|
||||
* <<allowed-script-contexts-setting>>
|
||||
|
||||
[[security-script-source]]
|
||||
[float]
|
||||
=== Script source settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue