Skip to content
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

Commits on Mar 23, 2015

  1. 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
    javanna committed Mar 23, 2015
    Configuration menu
    Copy the full SHA
    dbfca8f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    77d22eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7ee73b5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d058612 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    622301e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7598cf3 View commit details
    Browse the repository at this point in the history
  7. drop support for enable and disable as script mode values, just stick…

    … with the usual boolean values, plus `sandbox`
    javanna committed Mar 23, 2015
    Configuration menu
    Copy the full SHA
    47537a1 View commit details
    Browse the repository at this point in the history
  8. fix typo

    javanna committed Mar 23, 2015
    Configuration menu
    Copy the full SHA
    70d5761 View commit details
    Browse the repository at this point in the history
  9. throw exception if there are conflicting settings, also remove altern…

    …ativeNames on ScriptedOp
    javanna committed Mar 23, 2015
    Configuration menu
    Copy the full SHA
    87d8a47 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d21b042 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8989706 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9b34a5a View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    2ac6fdc View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2015

  1. fixed test

    javanna committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    bebee77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    292873e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2e1c8d View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2015

  1. Configuration menu
    Copy the full SHA
    821d360 View commit details
    Browse the repository at this point in the history