v5.19.0 - Feedback wanted on mutual TLS 📣 #577
StephenCathcart
started this conversation in
Preview Feature Announcement
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In version 5.19.0 (#577), we introduce a new preview API to the driver, enabling mutual TLS for 2-factor authentication.
A new Driver level configuration option was added,
ClientCertificateProvider
which accepts an interface of typeauth.ClientCertificateProvider
. This provider supplies atls.Certificate
which is appended to ourtls.Config
when establishing a new connection.We're providing two helper functions to construct a provider,
auth.NewStaticClientCertificateProvider
andauth.NewRotatingClientCertificateProvider
, the former for creating a provider that has a static client certificate and the latter for creating a provider that enables rotation of a client certificate at run time. Both of these functions accept anauth.ClientCertificate
struct, which holds paths to a TLS certificate file and its corresponding private key file (with an optional password). Below are examples of using each of these.Static Client Certificate Provider
Rotating Client Certificate Provider
Feedback wanted
This new API is currently marked as preview. What it means is that we are eagerly waiting for your feedback. Does it work well in your scenario? Do you wish there was more?
Let us know so we can correct course in the next releases!
Beta Was this translation helpful? Give feedback.
All reactions