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
Add support for fine-grained settings #10116
Closed
javanna
wants to merge
17
commits into
elastic:1.x
from
javanna:enhancement/fine_grained_script_settings_1x
Closed
Add support for fine-grained settings #10116
javanna
wants to merge
17
commits into
elastic:1.x
from
javanna:enhancement/fine_grained_script_settings_1x
Commits on Mar 23, 2015
-
Scripting: add support for fine-grained settings
Allow to enable/disable scripting based on their source (where they get loaded from), the operation that executes them and their language. The settings cover the following combinations: - mode: enabled, disabled, sandboxed - source: indexed, dynamic, file - engine: groovy, expressions, mustache, etc - operation: update, search, aggs, mapping The following settings are supported for every engine: script.engine.groovy.indexed.update: sandbox/enable/disable script.engine.groovy.indexed.search: sandbox/enable/disable script.engine.groovy.indexed.aggs: sandbox/enable/disable script.engine.groovy.indexed.mapping: sandbox/enable/disable script.engine.groovy.dynamic.update: sandbox/enable/disable script.engine.groovy.dynamic.search: sandbox/enable/disable script.engine.groovy.dynamic.aggs: sandbox/enable/disable script.engine.groovy.dynamic.mapping: sandbox/enable/disable script.engine.groovy.file.update: sandbox/enable/disable script.engine.groovy.file.search: sandbox/enable/disable script.engine.groovy.file.aggs: sandbox/enable/disable script.engine.groovy.file.mapping: sandbox/enable/disable For ease of use, the following more generic settings are supported too: script.indexed: sandbox/enable/disable script.dynamic: sandbox/enable/disable script.file: sandbox/enable/disable script.update: sandbox/enable/disable script.search: sandbox/enable/disable script.aggs: sandbox/enable/disable script.mapping: sandbox/enable/disable These will be used to calculate the more specific settings, using the stricter setting of each combination. Operation based settings have precedence over conflicting source based ones. Note that the `mustache` engine is affected by generic settings applied to any language, while native scripts aren't as they are static by definition. Closes elastic#6418 Closes elastic#10116
Configuration menu - View commit details
-
Copy full SHA for dbfca8f - Browse repository at this point
Copy the full SHA dbfca8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77d22eb - Browse repository at this point
Copy the full SHA 77d22ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ee73b5 - Browse repository at this point
Copy the full SHA 7ee73b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d058612 - Browse repository at this point
Copy the full SHA d058612View commit details -
Configuration menu - View commit details
-
Copy full SHA for 622301e - Browse repository at this point
Copy the full SHA 622301eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7598cf3 - Browse repository at this point
Copy the full SHA 7598cf3View commit details -
drop support for enable and disable as script mode values, just stick…
… with the usual boolean values, plus `sandbox`
Configuration menu - View commit details
-
Copy full SHA for 47537a1 - Browse repository at this point
Copy the full SHA 47537a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70d5761 - Browse repository at this point
Copy the full SHA 70d5761View commit details -
throw exception if there are conflicting settings, also remove altern…
…ativeNames on ScriptedOp
Configuration menu - View commit details
-
Copy full SHA for 87d8a47 - Browse repository at this point
Copy the full SHA 87d8a47View commit details -
Configuration menu - View commit details
-
Copy full SHA for d21b042 - Browse repository at this point
Copy the full SHA d21b042View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8989706 - Browse repository at this point
Copy the full SHA 8989706View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b34a5a - Browse repository at this point
Copy the full SHA 9b34a5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ac6fdc - Browse repository at this point
Copy the full SHA 2ac6fdcView commit details
Commits on Mar 24, 2015
-
Configuration menu - View commit details
-
Copy full SHA for bebee77 - Browse repository at this point
Copy the full SHA bebee77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 292873e - Browse repository at this point
Copy the full SHA 292873eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2e1c8d - Browse repository at this point
Copy the full SHA a2e1c8dView commit details
Commits on Mar 26, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 821d360 - Browse repository at this point
Copy the full SHA 821d360View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.