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

Remove Deprecated Script Settings #24756

Merged
merged 10 commits into from May 18, 2017
Merged

Remove Deprecated Script Settings #24756

merged 10 commits into from May 18, 2017

Conversation

jdconrad
Copy link
Contributor

Removes all fine grained settings for script types, contexts, and engines.

Script settings will now be specified as defined in #24532.

@jdconrad jdconrad added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v6.0.0 labels May 17, 2017
@jdconrad jdconrad requested a review from rjernst May 17, 2017 21:24
@jdconrad jdconrad changed the title Remove Depracated Script Settings Remove Deprecated Script Settings May 17, 2017
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left real comment

import java.util.Set;
import java.util.function.Function;

public class ScriptSecurity {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this name, this isn't really about security, it is just a feature of scripting in ES to disable certain contexts/types. And I think this is small enough it could just be part of ScriptService which is the only place it is used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved.

}
}

if (!found) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: == false please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@jdconrad
Copy link
Contributor Author

@elasticmachine please test this

1 similar comment
@jdconrad
Copy link
Contributor Author

@elasticmachine please test this

@jdconrad jdconrad merged commit 1196dfb into elastic:master May 18, 2017
@jdconrad jdconrad deleted the settings branch May 24, 2017 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v6.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants