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

Whitelist randomUUID in Painless #45148

Merged
merged 1 commit into from
Aug 2, 2019
Merged

Whitelist randomUUID in Painless #45148

merged 1 commit into from
Aug 2, 2019

Conversation

jdconrad
Copy link
Contributor

@jdconrad jdconrad commented Aug 2, 2019

This whitelists randomUUID with the understanding that it's possible for /dev/random to cause blocking on *nix systems. Users that need randomUUID should switch their random generator source to /dev/urandom if this is a concern for them.

Setting /dev/urandom can be done in two ways.

  1. Start elasticsearch with the setting -Djava.security.egd=file:/dev/urandom
  2. Modify the java.security file to replace the line securerandom.source=file:/dev/random with securerandom.source=file:/dev/urandom

Addresses:
#39080

@jdconrad jdconrad added >enhancement :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v8.0.0 v7.4.0 labels Aug 2, 2019
@jdconrad jdconrad requested a review from rjernst August 2, 2019 16:46
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

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

@jdconrad
Copy link
Contributor Author

jdconrad commented Aug 2, 2019

@rjernst Thanks for the review! Will commit as soon as CI passes.

@jdconrad jdconrad merged commit 4dbba53 into elastic:master Aug 2, 2019
jdconrad added a commit that referenced this pull request Aug 2, 2019
This whitelists randomUUID with the understanding that it's possible for 
/dev/random to cause blocking on *nix systems. Users that need 
randomUUID should switch their random generator source to /dev/urandom 
if this is a concern for them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >enhancement v7.4.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants