-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for per-vu TLS configuration (grpc.Client.connect only) (#3159)
You can also now use per-vu TLS configuration on `grpc.Client` `connect` params. Previously, `grpc.Client` `connect` made use of a shared (immutable) `tls.Config` cloned into every VU. Now, the `connect` `params` argument can contain a `tlsconfig` key that maps to the `TLSAuth` struct. This will create a per-vu TLS configuration for the `grpc.Client` allowing you to connect to multiple mTLS endpoints in a single VU. Note: the global tls.Config will remain unmodified. ```javascript const params = { plaintext: false, tlsconfig: { cacerts: ["cacerts.pem"], cert: "cert.pem", key: "key.pem", password: "cert-passphrase", domains: ["grpcbin.test.notk6.io"], // Deprecated } }; const hostPort = "grpcbin.test.notk6.io:9001"; const client = new grpc.Client(); client.connect(hostPort, params); ``` Co-authored-by: Mihail Stoykov <312246+mstoykov@users.noreply.github.com> Co-authored-by: Oleg Bespalov <olegbespalov@gmail.com>
- Loading branch information
1 parent
3e54bb1
commit d567ac2
Showing
2 changed files
with
393 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.