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 1ruZFY-006AHh-8w for pgsql-committers@arkaria.postgresql.org; Wed, 10 Apr 2024 14:48:32 +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 1ruZFW-003j1W-E8 for pgsql-committers@arkaria.postgresql.org; Wed, 10 Apr 2024 14:48:30 +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 1ruZFW-003j1N-5V for pgsql-committers@lists.postgresql.org; Wed, 10 Apr 2024 14:48:30 +0000 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruZFG-002CBl-LJ for pgsql-committers@lists.postgresql.org; Wed, 10 Apr 2024 14:48:28 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 47D3B1380163; Wed, 10 Apr 2024 10:48:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 10 Apr 2024 10:48:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1712760493; x=1712846893; bh=L7hDpot3q4nozy6aYkQg+aq3vUC+feH2xRICv5l27pg=; b= pNeLi5OuGx0m2lm2ujT1V8uGJbsaSe5kgNSiYjMe2ic0nIySK2WMhQiVC62qbBu6 I/HT+ZveRM7E3p1zUAvDsQPPh+D0FFIChpmkVB8hSL2UHP5aWnlTDPjrmsu30oBI nRIYpnUGIW+OB+EcdLH119xvh9gAf204sDHUZz08pKGpF+cZ0KUbwmJXBoZdlSBl FZjh859RBBdfSpWLpqy0JxGd3GJv6i5GP51rZds+L4Q6/9gBNjjLNRNGI7/F/U7a t+CZ5jukT/LXIEbAFEaLADuP8YaWE3q0lQ/Xc5Q/H6bGP9SSeEKqlq8BLFeD38A2 MVSzVzeiO1qYAsHqGlM7pA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712760493; x= 1712846893; bh=L7hDpot3q4nozy6aYkQg+aq3vUC+feH2xRICv5l27pg=; b=O KY5vojy0B5OaAJALWTlXdUnBmiE0TjO3Ed+maaxBCmecbg8KmZYV1Io2rn8Z0Crh 3xami0tmpm+FhaEdFZVSvYdNArKa8vhUEGhbKfmuawNyMwzwQMAnkLqinj83IXyg c1GwpCm0BSNBz/XXBjVK4xoWYrTL79zTmsSr1/waFoeg8KnnbT2zUrfD45nvQ1Ym 2zp6ovKFWfccytQbZhgDWTuCMa9XcrYi60Us+cq64UN5T2LvsPxXuDisWaHdpaYm LOeLZbwmwezpOiKbR0S2HAAFbqQ40KApIs4Mj0Ld7UwmUuyXrGkgllhAE5wwJd0q 8bXLvlS37q/gnapYELWXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehiedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqe enucggtffrrghtthgvrhhnpeegueeuvdfhheeuieejtefguddthfevveefuefgtddvgfet teehjeetleeuvdevudenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhes vghishgvnhhtrhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Apr 2024 10:48:11 -0400 (EDT) Message-ID: <09d4bf5d-d0fa-4c66-a1d7-5ec757609646@eisentraut.org> Date: Wed, 10 Apr 2024 16:48:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Add tests for libpq gssencmode and sslmode options To: Heikki Linnakangas , pgsql-committers@lists.postgresql.org References: Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 08.04.24 01:50, Heikki Linnakangas wrote: > Add tests for libpq gssencmode and sslmode options Why aren't these tests at src/interfaces/libpq/t/nnn_negotiate_encryption.pl ? > Test all combinations of gssencmode, sslmode, whether the server > supports SSL and/or GSSAPI encryption, and whether they are accepted > by pg_hba.conf. This is in preparation for refactoring that code in > libpq, and for adding a new option for "direct SSL" connections, which > adds another dimension to the logic. > > If we add even more options in the future, testing all combinations > will become unwieldy and we'll need to rethink this, but for now an > exhaustive test is nice. > > Author: Heikki Linnakangas, Matthias van de Meent > Reviewed-by: Jacob Champion > Discussion: https://www.postgresql.org/message-id/a3af4070-3556-461d-aec8-a8d794f94894@iki.fi > > Branch > ------ > master > > Details > ------- > https://git.postgresql.org/pg/commitdiff/1169920ff77025550718b90a5cafc6849875f43f > > Modified Files > -------------- > .cirrus.tasks.yml | 2 +- > src/test/libpq_encryption/Makefile | 25 + > src/test/libpq_encryption/README | 31 ++ > src/test/libpq_encryption/meson.build | 18 + > .../libpq_encryption/t/001_negotiate_encryption.pl | 548 +++++++++++++++++++++ > src/test/meson.build | 1 + > 6 files changed, 624 insertions(+), 1 deletion(-) >