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

Use unsecure entropy source in docker packaging tests #119598

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

mark-vieira
Copy link
Contributor

@mark-vieira mark-vieira commented Jan 6, 2025

While investigating #119441 thread dumps indicate container startup hung up in security auto-configuration generating certificates. This is likely due to a low source of entropy during these tests as they run serially so there is little other activity on the host machine. This change configures ES to use /dev/urandom as the entropy source, which while less secure, should alleviate the problem.

@mark-vieira mark-vieira added >test Issues or PRs that are addressing/adding tests :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts auto-backport Automatically create backport pull requests when merged v8.17.1 v8.18.0 v8.16.3 labels Jan 6, 2025
@mark-vieira mark-vieira requested a review from rjernst January 6, 2025 16:38
@elasticsearchmachine elasticsearchmachine added v9.0.0 Team:Delivery Meta label for Delivery team labels Jan 6, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

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

@@ -112,6 +115,13 @@ String build() {
// Limit container memory
cmd.add("--memory " + memory);

// Add default java opts
if (this.envVars.containsKey("CLI_JAVA_OPTS")) {
this.envVars.put("CLI_JAVA_OPTS", this.envVars.get("CLI_JAVA_OPTS") + " " + DEFAULT_JAVA_OPTS);
Copy link
Member

Choose a reason for hiding this comment

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

Should we use this with ES_JAVA_OPTS as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we use this with ES_JAVA_OPTS as well?

We could. It doesn't affect this particular issue as security auto config is done in the CLI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went ahead and added it on the chance we add anything else to DEFAULT_JAVA_OPTS.

@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.17
8.x
8.16

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 :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team >test Issues or PRs that are addressing/adding tests v8.16.3 v8.17.1 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants