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

Make groovy sandbox method blacklist dynamically additive #9470

Merged
merged 1 commit into from Jan 28, 2015

Commits on Jan 28, 2015

  1. Make groovy sandbox method blacklist dynamically additive

    Using the `script.groovy.sandbox.method_blacklist_patch` setting, the
    blacklist can be dynamically *added* to by specifying a comma-separated
    list of methods (for example, "toString,size" would add .toString and
    .size to the blacklist).
    
    When the `script.groovy.sandbox.method_blacklist_patch` setting is
    changed, the script cache is cleared to force new scripts to be
    recompiled. Additionally the on-disk cache is cleared so that scripts in
    the `config/scripts` directory are re-compiled as well.
    
    This also fixes an issue where script engines were injected more than
    once, which can cause multiple instances of the script engine per node.
    dakrone committed Jan 28, 2015
    Copy the full SHA
    c610524 View commit details
    Browse the repository at this point in the history