Type to search.

Script types unrestricted

ECH

Elastic Cloud Hosted lets you manage and configure one or more deployments of the versioned Elastic Stack, hosted on Elastic Cloud.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

ECK

Elastic Cloud on Kubernetes extends Kubernetes orchestration capabilities to allow you to deploy and manage components of the Elastic Stack.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

ECE

Elastic Cloud Enterprise is a self-managed orchestration platform for deploying and managing the Elastic Stack at scale.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

Self-managed

Self-managed deployments are Elastic Stack deployments managed without the assistance of an orchestrator.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

All script types can run: script.allowed_types is unset or allows both inline and stored scripts. Unrestricted types increase the chance of costly or unexpected scripts.

Note

For a complete list of insights, refer to AutoOps insights.

Field Value
Component Elasticsearch
Severity Medium
Scope Cluster
Domains performance, security-safety

The following is an example of what you might see when this insight is triggered. Real insights use live data and links from your deployment or cluster.

script.allowed_types is unset or allows all types (inline and stored). Current value: inline, stored.

Note

AutoOps shows different recommendations depending on how their conditions match your deployment or cluster.

Restrict allowed script types

Condition: Always shown for this insight.

Set script.allowed_types to inline if you use Kibana, or stored if you only use stored scripts. Use none only if nothing in the cluster must run scripts. Add the setting in elasticsearch.yml, then restart the node.

YAML
script.allowed_types: inline
Note

Do not leave the setting unset. Kibana needs inline.

script.allowed_types controls whether inline scripts, stored scripts, both, or none might run. When the setting is unset, Elasticsearch allows all types.

Unrestricted types let any client that can run scripts submit inline or stored scripts in search, update, or ingest. That can raise CPU and heap use.

Many applications need some script types. Kibana requires inline scripts for some features. none blocks all script types and breaks those features. Prefer inline (or stored only) over leaving the default open.

Scripting and security in Painless