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 1u4lTc-0070Mn-7O for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Apr 2025 18:57:44 +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 1u4lTa-00FOA2-Cn for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Apr 2025 18:57:43 +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 1u4lTa-00FO9r-2k for pgsql-hackers@lists.postgresql.org; Tue, 15 Apr 2025 18:57:42 +0000 Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u4lTX-000GKL-1T for pgsql-hackers@postgresql.org; Tue, 15 Apr 2025 18:57:42 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4ZcYLl0x54z9t9K; Tue, 15 Apr 2025 20:57:35 +0200 (CEST) Date: Tue, 15 Apr 2025 20:57:32 +0200 From: Christoph Berg To: Jacob Champion Cc: Peter Eisentraut , Andres Freund , Tom Lane , Bruce Momjian , PostgreSQL Hackers , Daniel Gustafsson , Thomas Munro , Nazir Bilal Yavuz , Antonin Houska , Wolfgang Walther , Jelte Fennema-Nio Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER Message-ID: Mail-Followup-To: Christoph Berg , Jacob Champion , Peter Eisentraut , Andres Freund , Tom Lane , Bruce Momjian , PostgreSQL Hackers , Daniel Gustafsson , Thomas Munro , Nazir Bilal Yavuz , Antonin Houska , Wolfgang Walther , Jelte Fennema-Nio MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4ZcYLl0x54z9t9K List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Jacob Champion > But there's no connection between "libcurl" and "OAuth Device > Authorization flow" in anyone's mind except the people who have worked > on that feature. Fwiw that was exactly the reason I originally voiced the idea to rename. > But let me turn this around, because we currently have the opposite > problem: if someone comes in and adds a completely new feature > depending on libcurl, and you want OAuth but you do not want that new > feature -- or vice-versa -- what do you do? In other words, what if > your concern is not with libcurl, but with the feature itself? What made me reconsider was Peter saying that what defines the blast radius of some feature is usually the extra dependency pulled in. If you don't like tracking OpenSSL problems, build without it. If you don't like libcurl, build without it. That's the "we are going to be hated by security scanner people" argument that brought up this sub-thread. Now if the feature itself were a problem, that might change how configuration should be working. Is "libpq can now initiate oauth requests" something people would like to be able to control? Re: Jacob Champion > Dynamic: --with-libcurl builds a runtime-loadable module, and if you > don't install it, OAuth isn't supported (i.e. it's optional) Ok. > Static: --with-libcurl builds an additional linkable staticlib, which > you must link into your application (i.e. not optional) Debian does not care really about static libs. We are currently shipping libpq.a, but if it breaks in any funny way, we might as well remove it. Christoph