Skip to content

Improve Elasticsearch ServiceConnection #35926

Closed as not planned
Closed as not planned
@eddumelendez

Description

@eddumelendez

Currently, ElasticsearchContainerConnectionDetailsFactory only maps nodes and that works with Elasticsearch 7. However, Elasticsearch 8 has security enabled by default and additional configuration is required.

This is an example using Elasticsearch 7 and this one using Elasticsearch 8. As you can see, with Elasticsearch 8 the SSLContext is provided via a customizer so the connection through https is successful.

You can find a draft proposal here. I tried to do it via ssl bundles by copying the http_ca.crt from the container to the test resources directory but I couldn't set it up correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by anothertheme: containersTestcontainers, Docker Compose and Buildpack featurestype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions