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 1u4fSN-005bIj-Cs for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Apr 2025 12:32:04 +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 1u4fSK-009Wjh-IY for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Apr 2025 12:32:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u4fSJ-009WjZ-DF for pgsql-hackers@lists.postgresql.org; Tue, 15 Apr 2025 12:32:01 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u4fSG-000DF6-0s for pgsql-hackers@postgresql.org; Tue, 15 Apr 2025 12:31:59 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id 683F825400B1; Tue, 15 Apr 2025 08:31:54 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Tue, 15 Apr 2025 08:31:54 -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=1744720314; x=1744806714; bh=ncI+bo5V0MLSEU9vSPKOAjjMPGBmMfdfMnRIiT21jr8=; b= JQBwfSZG2ZIuoBONEXpDH+oiEFp0Ap5CBlzBn5fGwHgqVly5Z6mTggDBOt/d66NO h6FpnosXG3YG9NHM2zL72S4zpoFR+UzQaAcdCdloQ3eO6rs51xI3dRwE4qjFNVy4 uwA49TBUCb9d4aQzKtj9p6Vd5xBI2JB+VUxykU5HfzZpzFkFsmHyL94z8z13TojA I1/Vqp7V0KFDau1DCvwFZTCD4AP1/P2iphZaibrWAJ4zSmYF3f7E6yoK9ocKJJvb UQkt4gIFtoxrmAaiwahpbTE5I1mk/J+6ywGdD/Y9VsdDQuMiHvGciH75V6+ErIrv vnhaUSASwcSOJwb0n81a1w== 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-sender :x-me-sender:x-sasl-enc; s=fm2; t=1744720314; x=1744806714; bh=n cI+bo5V0MLSEU9vSPKOAjjMPGBmMfdfMnRIiT21jr8=; b=qCJsUHbIm8CkPVp53 TFzMZYMM83JZCs/16oF4zWH1658UMBsvtJsHaX7nJg+P6RIQjsFRuDlGcWRWIXKa ycgZqPTJNKb7dlDvPSFxG7ysmQFLHGfpxAC7nqIqneImgNUQGqQJnL4b6Swoqgt8 cwLX3DpYs2NraTYtFyk94d2OfNF7ICNI6TewRJe1UWghiqOsbZ0jvDDgta5OpoQm DR3ywE1XY4yDSul1GFhGEI1fd4kIa2+5shUUM33W9OzWvlqCaH5lefa5+43ex40J VzdWzV27GdnvCzgcwEzaqJ3GnUJ+i5dpxvru8vgIcmDlYO26SIjx+7BW+EGQckcN bxwhQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvvdefgeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddv jeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghish gvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpeehiedvhfeuhfeugefgfeeh geejtdevuefhtefhueefvddugfdtueehgfefudfhffenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdr ohhrghdpnhgspghrtghpthhtohepuddvpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopehjrggtohgsrdgthhgrmhhpihhonhesvghnthgvrhhprhhishgvuggsrdgtohhmpdhr tghpthhtohepmhihohhnseguvggsihgrnhdrohhrghdprhgtphhtthhopegrnhgurhgvsh esrghnrghrrgiivghlrdguvgdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdr uhhspdhrtghpthhtohepsghruhgtvgesmhhomhhjihgrnhdruhhspdhrtghpthhtohepph hgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohep uggrnhhivghlseihvghsqhhlrdhsvgdprhgtphhtthhopehthhhomhgrshdrmhhunhhroh esghhmrghilhdrtghomhdprhgtphhtthhopegshigrvhhuiiekudesghhmrghilhdrtgho mh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Apr 2025 08:31:51 -0400 (EDT) Message-ID: Date: Tue, 15 Apr 2025 14:31:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER To: Jacob Champion , Christoph Berg , Andres Freund , Tom Lane , Bruce Momjian , PostgreSQL Hackers , Daniel Gustafsson , Thomas Munro , Nazir Bilal Yavuz , Antonin Houska , Wolfgang Walther , Jelte Fennema-Nio References: <5bec3d4f-613f-425b-88c4-59e71c70f7d6@eisentraut.org> Content-Language: de-DE, 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 10.04.25 01:08, Jacob Champion wrote: > Christoph noted that this was also confusing from the packaging side, > earlier, and Daniel proposed -Doauth-client/--with-oauth-client as the > feature switch name instead. Any objections? Unfortunately it would > mean a buildfarm email is in order, so we should get it locked in. We had that discussion early in the development, and I still think it's not the right choice. The general idea, at least on the Autoconf side, is that --with-FOO means enable all the features that require library FOO. For example, --with-ldap enables all the LDAP-related features, including authentication support in libpq, authentication support in the server, and service lookup in libpq. --with-[open]ssl enables all the features that use OpenSSL, including SSL support in the client and server but also encryption support in pgcrypto. The naming system you propose has problems: First, what if we add another kind of "oauth-client" that doesn't use libcurl, how would you extend the set of options? Second, what if we add some kind of oauth plugin for the server that uses libcurl, how would you extend the set of options? If you used that system for options in the ldap or openssl cases, you'd end up with maybe six options (and packagers would forget to turn on half of them). But worse, what you are hiding is the information what dependencies you are pulling in, which is the actual reason for the options. (If there was no external dependency, there would be no option at all.) This seems unnecessarily complicated and inconsistent. Once you have made the choice of taking the libcurl dependency, why not build everything that requires it? (Nitpick: If you go with this kind of option, it should be --enable-XXX on the Autoconf side.)