diff --git a/credentials/local/local.go b/credentials/local/local.go index d5a3a8596056..04041eed0dc6 100644 --- a/credentials/local/local.go +++ b/credentials/local/local.go @@ -65,6 +65,9 @@ func getSecurityLevel(network, addr string) (credentials.SecurityLevel, error) { // Local TCP connection case strings.HasPrefix(addr, "127."), strings.HasPrefix(addr, "[::1]:"): return credentials.NoSecurity, nil + // Windows named pipe connection + case network == "pipe" && strings.HasPrefix(addr, `\\.\pipe\`): + return credentials.NoSecurity, nil // UDS connection case network == "unix": return credentials.PrivacyAndIntegrity, nil