From 17ee66287717b4ad248c7b9fd3643dfd9fec8978 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Wed, 23 Mar 2022 14:28:36 +0000 Subject: [PATCH] backport of commit 0fe621d13242b276817e4cd1fbe96414c5e7c970 --- .changelog/12359.txt | 3 +++ plugins/csi/client.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/12359.txt diff --git a/.changelog/12359.txt b/.changelog/12359.txt new file mode 100644 index 00000000000..ff00dad7d97 --- /dev/null +++ b/.changelog/12359.txt @@ -0,0 +1,3 @@ +```release-note:bug +csi: Fixed a bug where plugins written in NodeJS could fail to fingerprint +``` diff --git a/plugins/csi/client.go b/plugins/csi/client.go index 6d34d8f55aa..976272f12fc 100644 --- a/plugins/csi/client.go +++ b/plugins/csi/client.go @@ -162,6 +162,7 @@ func newGrpcConn(addr string, logger hclog.Logger) (*grpc.ClientConn, error) { grpc.WithInsecure(), grpc.WithUnaryInterceptor(logging.UnaryClientInterceptor(logger)), grpc.WithStreamInterceptor(logging.StreamClientInterceptor(logger)), + grpc.WithAuthority("localhost"), grpc.WithDialer(func(target string, timeout time.Duration) (net.Conn, error) { return net.DialTimeout("unix", target, timeout) }),