-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require scripts to be enabled in Elasticsearch #96106
Comments
Pinging @elastic/kibana-core (Team:Core) |
Added to #84380 |
Thanks @pgayvallet |
In addition to adding this to the healthcheck in 8.0, we should add an Upgrade Assistant deprecation warning in 7.x that executes the same test. |
Created a separate task to track adding the deprecations: #110566 We will continue to use this issue to track the actual breaking change for 8.0 |
From the doc, the possible value are Now, this is a configuration option, so I'm not sure there is an API to retrieve this info from ES (who could helps us here) If not, we'll have to fallback to detecting it 'manually' by executing a dummy request using inline scripting to check if it succeeds or fails due to disabled inline scripting. Also, Is there doing to be subtle edge cases with multi-node ES clusters? Like one node has scripting enabled, but not the other one? Do we want to handle that and, if so, how? |
|
I'm not sure we really have any way to retrieve the info from each individual node, do we? From the doc:
And I guess it should be safe to assume that in a multi-node cluster configuration, all node should have this |
Given the current limitations, I think that's fine. |
Currently, Kibana doesn't require that scripts are enabled in Elaticsearch. If a user sets
script.allowed_types: none
, Kibana should continue to "generally work". However, there are features in 7.x that do require that scripts are enabled. If scripting is not enabled, these features have been designed to fail gracefully.Starting in 8.0, we have the opportunity to enforce that scripts are enabled in Elasticsearch and no longer support these graceful fallbacks. We should document this requirement as a breaking change, and make Kibana fail in an obvious way when an Elasticsearch node has scripting disabled.
We currently ensure that Kibana is connected to an instance of Elasticsearch that is running a compatible version. Would it be possible to augment this logic to also ensure that the Elasticsearch node has scripting enabled?
The text was updated successfully, but these errors were encountered: