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

Clean up whitelist loading for core contexts in painless plugin #76392

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

jdconrad
Copy link
Contributor

@jdconrad jdconrad commented Aug 11, 2021

This change creates a standard for loading additional allow listed elements for the core contexts within the ScriptPlugin. For each core context we look for org.elasticsearch.script.<context-name>.txt and if it exists we load it automatically for that context.

@jdconrad jdconrad added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring v8.0.0 auto-backport Automatically create backport pull requests when merged v7.15.0 labels Aug 11, 2021
@jdconrad jdconrad requested a review from stu-elastic August 11, 2021 23:03
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Aug 11, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@stu-elastic stu-elastic left a comment

Choose a reason for hiding this comment

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

Nice change.

@jdconrad
Copy link
Contributor Author

@stu-elastic Thanks for the review!

@jdconrad jdconrad merged commit 63425d5 into elastic:master Aug 12, 2021
jdconrad added a commit that referenced this pull request Aug 13, 2021
This change creates a standard for loading additional allow listed elements for the core contexts 
within the ScriptPlugin. For each core context we look for org.elasticsearch.script.<context-name>.txt 
and if it exists we load it automatically for that context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring Team:Core/Infra Meta label for core/infra team v7.15.0 v8.0.0-alpha2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants