-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Disable script access to _source by default #17558
Copy link
Copy link
Closed
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>breakinghelp wantedadoptmeadoptme
Description
Accessing the _source field within a script is very slow and can hurt a cluster's performance. That said, it can be a useful way of accessing some not-indexed value for one-off uses without having to reindex.
As a safeguard, let's disable script access to _source by default (other than update/reindex scripts, obviously) and allow the user to re-enable access with a dynamic index setting.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>breakinghelp wantedadoptmeadoptme
Type
Fields
Give feedbackNo fields configured for issues without a type.