Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ru69F-002RsZ-94 for pgsql-committers@arkaria.postgresql.org; Tue, 09 Apr 2024 07:44:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ru69E-001My0-C3 for pgsql-committers@arkaria.postgresql.org; Tue, 09 Apr 2024 07:44:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ru69E-001Mxs-4a for pgsql-committers@lists.postgresql.org; Tue, 09 Apr 2024 07:44:04 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ru699-001xmq-H4 for pgsql-committers@lists.postgresql.org; Tue, 09 Apr 2024 07:44:02 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-5dbcfa0eb5dso3858092a12.3 for ; Tue, 09 Apr 2024 00:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712648638; x=1713253438; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=FfxL1N1s4CbU1sNMVtacUuorLZb3gVsWLalq3M7aXgQ=; b=ioH43IT72SxlSQL7/rHhEezS9RfiEnrPc7p4DiTe9gfHFnnD59zdSHf1sRSfWj+Wpu Lrm0SVh3fkS3pmOU/BESmCxWSLUggCtnilx5rrsxb/MZkmFzoo0D8UtU2UaA99l90jpm pn0YP7kwc4CAq/ENhh361m339kD4s75IRe1bAEQDLlMeJwZdSZTyfTXP/p8i/lj/6MBV ApBpqo8a1Sp8/i6oYjc2nvieMA7dM8jUPEmDJpB2jWeCgZqXTnGQDBlRKUF+8sFRpqao TV5WhLCdtfkRBokTkg+yJJ7RoL7vR7F081EOJcV4UMG16ApbQn7KdF0SUFYGygLniIPi ZH4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712648638; x=1713253438; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FfxL1N1s4CbU1sNMVtacUuorLZb3gVsWLalq3M7aXgQ=; b=K0sYIrFdtjhm2g1wrfr4pHFgqiniWcZLRHj7wgq/gl7Z+Pu9gBTkMVb2CRKRpjgMd9 g5QgxW55r40SBcMUE51GEYu+9YFfNF8mhZ6o19xWvgtUbWXqRfRKQUcF2H53khN4og6h xj8ZwjGRBrpLUJkVLgVRqv7LW0CX2PcVoSERCJj3tgZTXo7QMyIc33fZ45aKgvRJ8i1h eY50DpO0AQemjVG1CVR2eDIYob1a+n279rvE2lptHzNlUooHFzBlcQouS1tNF5FtPAqo MDxtL/IXUxGqeXbaAsEaBLTsBho44mqghZBPUzzE8QVpWmAXSkoWbPS9wvbDOQ0vefJo PtEQ== X-Gm-Message-State: AOJu0YyhU27cJB9+3jpfxbrYs6R2xt3OucyQU9R8Pv5oTq7AyNRLFmoT hpgXEkDo7rfzwfwXxVKwYtT00Cc7jfXM5R4oAdkI1UXnrEIl2JIk X-Google-Smtp-Source: AGHT+IEvjit6c2kMow7VW9PkHAFN7jauNyppbOdItjmVB9526QQEphULyzIIudUrx9ZYsRzN+HsRVA== X-Received: by 2002:a05:6a20:6a13:b0:1a7:23ae:74e9 with SMTP id p19-20020a056a206a1300b001a723ae74e9mr10971803pzk.13.1712648638373; Tue, 09 Apr 2024 00:43:58 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id b19-20020a170902ed1300b001e2bb03893dsm8224412pld.198.2024.04.09.00.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 00:43:57 -0700 (PDT) Date: Tue, 09 Apr 2024 16:43:55 +0900 (JST) Message-Id: <20240409.164355.758692697272870041.horikyota.ntt@gmail.com> To: hlinnaka@iki.fi Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: With gssencmode='require', check credential cache before connect From: Kyotaro Horiguchi In-Reply-To: <7c8d2655-9d2d-42e9-94c1-cee76e08468b@iki.fi> References: <20240409.104613.1653854506705708036.horikyota.ntt@gmail.com> <7c8d2655-9d2d-42e9-94c1-cee76e08468b@iki.fi> User-Agent: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Tue, 9 Apr 2024 08:14:53 +0300, Heikki Linnakangas wrote in > On 09/04/2024 04:46, Kyotaro Horiguchi wrote: > > Hello. > > At Sun, 07 Apr 2024 23:50:08 +0000, Heikki Linnakangas > > wrote in > >> With gssencmode='require', check credential cache before connecting > > This commit adds the following error message (indentations are > > adjusted): > > + libpq_append_conn_error(conn, > > + "GSSAPI encryption required but it is not supported over a local > > socket)"); > > The closing parenthesis at the end of the message seems to be a > > leftover from editing. > > Fixed, thanks! > > > About the following message: > > + libpq_append_conn_error(conn, "could not set ssl alpn extension: > > %s", err); > > I'm not sure about the policy for writing acronyms in lowercase, but > > other occurrences of ALPN (in backend code) seem to be written in > > uppercase. > > Changed to uppercase. I also changed "ssl" to uppercase, for > consistency with the "could not set SSL Server Name Indication (SNI)" > message earlier. (I didn't consider SSL..) > To be even more consistent, we should perhaps spell out "SSL > Application-Layer Protocol Negotiation (ALPN)", but that's pretty long > and I don't think it really helps the user. It really should not fail, > and there isn't anything the user can really do if that fails. Anyone > who doesn't already know what ALPN is will need to google it anyway. I think so, too. regards. -- Kyotaro Horiguchi NTT Open Source Software Center