Skip to content

Set up open search for local environment with all security harness - #386

Open
Dmitrii Krasnov (dkrasnoff) wants to merge 11 commits into
feature/KTL-4713-opensearch-index-generationsfrom
feature/KTL-4715-Set-up-OpenSearch-for-local-environment
Open

Set up open search for local environment with all security harness#386
Dmitrii Krasnov (dkrasnoff) wants to merge 11 commits into
feature/KTL-4713-opensearch-index-generationsfrom
feature/KTL-4715-Set-up-OpenSearch-for-local-environment

Conversation

@dkrasnoff

Copy link
Copy Markdown
Collaborator

No description provided.

@dkrasnoff
Dmitrii Krasnov (dkrasnoff) changed the base branch from master to feature/KTL-4713-opensearch-index-generations August 7, 2026 18:38
}
httpClient.setConnectionManager(
PoolingAsyncClientConnectionManagerBuilder.create()
.setTlsStrategy(tlsStrategyBuilder.build())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

intellij says tlsStrategyBuilder.build() -- build() is deprecated

it.setConnectionRequestTimeout(requestTimeout)
.setResponseTimeout(requestTimeout)
}
.setConnectionConfigCallback {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is set on the default ConnectionManager, which then is replaced by your new httpClient.setConnectionManager.
Move it there?

.setSslContext(trustAllSslContext())
.setHostnameVerifier(NoopHostnameVerifier.INSTANCE)
}
httpClient.setConnectionManager(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI notes:
We replaced the default connection manager from opensearch-java, thats why we lose

  1. Pool sizing regresses from 10/route, 30 total to the httpclient defaults of 5/25.
  2. The HTTPCLIENT-2219 tlsDetailsFactory workaround is lost.

}

/** Trust-all [SSLContext] for local dev over https against a self-signed cert. Never enable in prod. */
private fun trustAllSslContext(): SSLContext {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Use SSLContextBuilder.create().loadTrustMaterial(TrustAllStrategy.INSTANCE).build() instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants