Skip to content

Add support for client certificate authentication#3

Merged
dnault merged 1 commit intomainfrom
client-certificate-auth
Jan 30, 2026
Merged

Add support for client certificate authentication#3
dnault merged 1 commit intomainfrom
client-certificate-auth

Conversation

@dnault
Copy link
Contributor

@dnault dnault commented Jan 30, 2026

Add Credential.fromKeyStore() for client certificates

Deprecate Credential.ofDynamic() because it is not compatible with client certificates.

Add Cluster.credential() as the new way to update the credential used by the cluster.

Deprecate `Credential.ofDynamic()` because it is not
compatible with client certificates.

Add `Cluster.credential()` as the new way to update the
credential used by the cluster.
this.queryExecutor = newQueryExecutor(this.options, this.url, this.credential);

// Don't close the old query executor, because we don't want to interfere with in-flight requests.
// The OkHttp resources automatically release themselves after a period of inactivity.

Choose a reason for hiding this comment

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

I was going to ask about what happens with old requests. This is neat.

@dnault dnault requested a review from mblow January 30, 2026 17:46
@dnault dnault merged commit 900c216 into main Jan 30, 2026
5 checks passed
@dnault dnault deleted the client-certificate-auth branch January 30, 2026 18:07
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