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

Script security #16

Open
barnslig opened this issue Dec 23, 2015 · 0 comments
Open

Script security #16

barnslig opened this issue Dec 23, 2015 · 0 comments
Labels

Comments

@barnslig
Copy link
Owner

There is an inline script used to only add server entries to an already existing file if it does not also already exists:

"script": "ctx._source.Servers.contains(Server) ? (ctx.op = \"none\") : (ctx._source.Servers += Server)",

As of ElasticSearch 2.x (or maybe even further), inline groovy scripts are considered insecure and thus disabled by default. Currently we circumvent this by manually enableing inline groovy scripts again.

Task: Find out how to accomplish the same in a secure manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant