Open johanandren opened 2 months ago
This isn't only about docs. Something is missing for a client with rotating certs. We have:
GrpcClientSettings
.connectToServiceAt(host, port)
.withSslContext(sslContext)
That sslContext instance is reading the certs when created, so it will not be refreshed for new connections.
We are missing something like:
withRefreshingSslContext(creator: () => SSLContext)
that can be used together with SSLContextFactory.refreshingSSLContextProvider
.
(how to implement this is a more difficult question)
In the Akka HTTP docs we have https://doc.akka.io/docs/akka-http/current/server-side/server-https-support.html#rotating-certificates showing how to create a
HttpsConnectionContext
with cert rotation but it might not be obvious how to find and set that up. We should either link to that from the mTLS docs page or show an example here as well.