Support mTLS in Elastic Inference Service plugin (#116423) #119679
+314
−69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: Technically, this PR reverts b357936227df04f88c980b6cbf7cd7cde982a25b.
This PR introduced support for mTLS in the Elastic Inference Service plugin. It uses SSLService to parse, validate the configuration, and create an SSLStrategy that’s used in the
HTTPClientManager
.xpack.inference.elastic.http.ssl
to SSLService.HTTPClientManager
to propagateSSLStrategy
toHTTPClientConnectionManager
How to test the PR locally?:
Skip certificates validation
./gradlew localDistro
.build/distribution/local/elasticsearch-x.x.x-SNAPSHOT
folder.Certificates validation
./gradlew localDistro
.build/distribution/local/elasticsearch-x.x.x-SNAPSHOT
folder.tls.key
,tis.crt
andca.crt
to Elasticsearch snapshotconfig
folder.ca.crt
toca.pem
(it seems unnecessary but ES expects a PEM file).Perform inference requests:
Follow-up actions: