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 1u4MQp-0017ak-Nn for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Apr 2025 16:13:12 +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 1u4MQn-002p3s-Oe for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Apr 2025 16:13:10 +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 1u4MQn-002p38-A5 for pgsql-hackers@lists.postgresql.org; Mon, 14 Apr 2025 16:13:10 +0000 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u4MQk-0003fm-0Q for pgsql-hackers@postgresql.org; Mon, 14 Apr 2025 16:13:08 +0000 Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-6ecf0e07954so64363296d6.1 for ; Mon, 14 Apr 2025 09:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1744647185; x=1745251985; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wQE1/GZXWCYjlA5iXZIXswADT/p8yHk9iOQDeZF6OGo=; b=E4uDBrB0jc0TO468PDOWkZ6AfX2gbCY08YYh6oGSEKlBngP9UDjzqew4/DLXgQFkyH 29x66WgUNvRh+UT2hO3H84yB6qdVjJGpkEkNfimb7mlZlFnK0bVYTE0PakdiY5YxsWRS uA6MRtIs1gutpTUavupKRYSznr2CQKrK+tiYxqoORf90zzwRY+ptKVH9xB0blg8NQCTe fZsGx5W98jXQICiyE5ex4apmPb6ni6IiTTQCRD+ObZEM63rNHEe80SvzjdOWDEHOzdk4 kaIyCxN2HLvEsC3LMfLAsNo0RGZBt5ga4lO5sGw1qS59yUUmwubRn0c9Mzd27TB5ysKu DihA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744647185; x=1745251985; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wQE1/GZXWCYjlA5iXZIXswADT/p8yHk9iOQDeZF6OGo=; b=CB8Z3VxYH1McUp1ly5G9mezaqL/vPDevX+DGuSR6V+eaqRiJvM7zUgByN727oVsC2e KUMWQZMWwjQtnEMbpPv0QyvBBAjAmh3aR/yBej0vExHa89+2oQgNV6s8OZul2j+M7VKy mRSXYzLmgbz7fSyvTBSMp8HMGAzs8Vi5UPE5I6LaXpZQECRZ87qf5srFwKXWNjfG49O5 gXbB74q9cuLRrFp009KRH0ltUX707yLS/wFRke/M4TNrv+h0Jyej9m1OdS7lKXDdJKti Us/bgGYXUL2e4ftj5ZRLHOxJaLVDy69DPFVFDCVMM7hhIB+ETdrocshCcApNfJ+DWCdT Uynw== X-Forwarded-Encrypted: i=1; AJvYcCXTkaLOIVVmw43Z2NHAHRqC8p2LzIyaZ8FOLw+s9Qkhpzkey0bJdd+r5dCcRlf+ooZMmADjgkF6Jv4niTb7@postgresql.org X-Gm-Message-State: AOJu0Yw0inT70dLGJ5/kUN5CH4U9xjcxwwMyVQY/EoZor8GQ2EeF8Lye FxVP1RVPKyOtMG8L6+Mz0VdkvbGL/zGudoYnLOEPMNl4vpzAqffMNkj6WyF0MrK6/FRBieX7tKc d3KoRyO2PPLKCEOxeMlXjyz712+X88jRiAPjy X-Gm-Gg: ASbGncuNIHYqUT4ky0PCBVkMg+ezd51p/St3jP5Og+msAFjwRp/lShs2S/SXxKhWquz F+cGr+UoFKm5tabf5GLRFmVA/bQBQUG4oEeyj+fUctIf7ZWDimPOUwdAYL/9cCaEijPBQb61SeI sNKTTYGxjyN2dHZBv0WP8B+FDcPSmkEIE= X-Google-Smtp-Source: AGHT+IFIeCkXm2MROMMF5qS3w887RMXIX4QY7vPVebgo1R/1NX1Z1SgQIUgFDyQ17RLFxSC3D/jjmCIOf/s/z8f8vGc= X-Received: by 2002:a05:6214:301a:b0:6e6:656f:3c34 with SMTP id 6a1803df08f44-6f230cfb83bmr187985176d6.12.1744647184772; Mon, 14 Apr 2025 09:13:04 -0700 (PDT) MIME-Version: 1.0 References: <5bec3d4f-613f-425b-88c4-59e71c70f7d6@eisentraut.org> <487dacec-6d8d-46c0-a36f-d5b8c81a56f1@technowledgy.de> In-Reply-To: <487dacec-6d8d-46c0-a36f-d5b8c81a56f1@technowledgy.de> From: Jacob Champion Date: Mon, 14 Apr 2025 09:12:53 -0700 X-Gm-Features: ATxdqUHAGRPGomQqgMe_h3QomhytqgHgiw6fzsMfhwAWameNXS6mjOl5jWdcJDI Message-ID: Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER To: Wolfgang Walther Cc: Jelte Fennema-Nio , Christoph Berg , Peter Eisentraut , Andres Freund , Tom Lane , Bruce Momjian , PostgreSQL Hackers , Daniel Gustafsson , Thomas Munro , Nazir Bilal Yavuz , Antonin Houska Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Apr 11, 2025 at 9:21=E2=80=AFAM Wolfgang Walther wrote: > I tried to apply this patch to nixpkgs' libpq build [1]. First, I pinned > a recent commit from master (one where the v5 patch will apply cleanly > later) and enabled --with-libcurl [2]. (The [2] link is missing, I think.) > 2. The statically linked build fails during configure: I'm confused by this -- the build produces staticlibs alongside the dynamically linked ones, so that's what I've been testing against. What different options do you pass to configure for a "statically linked build"? > undefined reference to `psl_is_cookie_domain_acceptable' > undefined reference to `nghttp2_session_check_request_allowed' > > I assume the many libs listed in Libs.private in libcurl.pc are not > added automatically for this check? Not unless there is some magic in PKG_CHECK_MODULES I've never heard of (which is entirely possible!). Furthermore I imagine that the transitive dependencies of all its dependencies are not added either. Does your build method currently work for dependency forests like libgssapi_krb5 and libldap? (I want to make sure I'm not accidentally doing less work than we currently support for those other deps, but I'm also not planning to add more feature work as part of this particular open item.) > I tried adding "make submake-libpq-oauth", but that doesn't exist. There is no submake for this because no other targets depend on it. Currently I don't have any plans to add one (but -C should work). > When I do "make -C src/interfaces/libpq-oauth", I get this error: > > make: *** No rule to make target 'oauth-curl.o', needed by > 'libpq-oauth-18.so'. Stop. I cannot reproduce this. The CI seems happy, too. Is this patch the only modification you've made to our build system, or are there more changes? I'm about to rewrite this part somewhat, so a deep dive may not be very hel= pful. Thanks, --Jacob