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

Supply client cert for API calls to mTLS enabled Solr clusters #255

Closed
thelabdude opened this issue Apr 12, 2021 · 1 comment · Fixed by #256
Closed

Supply client cert for API calls to mTLS enabled Solr clusters #255

thelabdude opened this issue Apr 12, 2021 · 1 comment · Fixed by #256
Milestone

Comments

@thelabdude
Copy link
Contributor

If the Solr cluster requires mTLS, then the http.Client used by api.go needs to supply a client cert and optionally the Certificate Authority (CA) cert if not already trusted between client & server. This means adding the following config to the http.Transport object for the http.Client:

				TLSClientConfig: &tls.Config{
					ClientCAs:          caCertPool,
					Certificates:       []tls.Certificate{clientCert},
                                          ...
				},

The server(s) will need to be configured to trust the CA that issued the client cert.

@HoustonPutman
Copy link
Contributor

Is this something that we need to setup with the solr-operator pod, or can it be done dynamically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants