From f94be9b5f238b7fea8f7f665af142f312f0f2f7a Mon Sep 17 00:00:00 2001 From: irsl Date: Thu, 15 Feb 2024 00:22:46 +0100 Subject: [PATCH] Set the security level of Windows named pipes to NoSecurity (#6956) --- credentials/local/local.go | 3 +++ 1 file changed, 3 insertions(+) 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