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 1u4PGQ-001fGG-Nf for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Apr 2025 19:14:39 +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 1u4PGN-004FEp-Ud for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Apr 2025 19:14:36 +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 1u4PGN-004FEc-Fi for pgsql-hackers@lists.postgresql.org; Mon, 14 Apr 2025 19:14:36 +0000 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u4PGK-0004EA-2A for pgsql-hackers@postgresql.org; Mon, 14 Apr 2025 19:14:34 +0000 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-6e8efefec89so43600286d6.3 for ; Mon, 14 Apr 2025 12:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1744658071; x=1745262871; 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=a5rDdapqemcIfvcnly2r676fx8/C6WbPXx9Qq3GL+LU=; b=F5ujHdc4QYgLzWvTNFTiIFVbbxz395/bkahgjW+rm4qihze1glb0vNSh3w2spd4vjv U/blms67hdVsqXJ/qntG+NP5IZjUXUpxHe5WDXp3EDiNiiGJHZL9lpnadg7ba7/TPxpb b5Zg6KMN61h9CwqmV5s2pC76AwYWEJSRmAnHlEtYLdBxu9XCeKyd0IrPyUbfRt2dANG2 Hn5dS8ZhDO0PK0297O0NtS0yX9O71qz8Jz6YlB9KARXR1wQEp9stfIbjrSPS0B6TXpII H5+v+AsgyHfBTBFH98xOVaqgkslUQMK5ArOq3d71HXtYacRrJAL2pjAVH5jBq9HJQP6t HzSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744658072; x=1745262872; 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=a5rDdapqemcIfvcnly2r676fx8/C6WbPXx9Qq3GL+LU=; b=QGApNyfeaw7fpl3NK/OIDzJzl2X+njVPfzbnk3pBghT2pFNykRdVEJFw1PoemESz4T Vx1wQAWL7NdOP11cBJygWMKTQBc0luByqy//1GKkoOszHRgyNoZVTRwT79D0pv4a2agO 7cctl4C4o1aRaHl9VIMbsYEkqe6JvebwMJPhREiyZsOkq9EhXBHzMqHgPrzq/EOFbYLO Wsbz86VODSoJmz6ydSBnuYozO63TsyZfMIuAsviVpMOQ0yFxDbc/U5lILOvj0rJHx9Go 7nJtVUf9ruAr5pQlNMuiskMRl6q7uvHhP6SNzMMORaKLvtmeGrh2R8rN+lYszaeHmYKG qZ3w== X-Forwarded-Encrypted: i=1; AJvYcCVhWer2MnDvYsxRGsDlgSHl0mXDMy/oGwOp8GavVzXQSUV0q8zI2rptLu6FfngjJM9wjUxSfwKSQzsJEOUT@postgresql.org X-Gm-Message-State: AOJu0YzcrWIoZa19DL93J6RCkBWYLJQrocnMHtY8Xuz0na9co2ssSGnm /P6reohbWliBzmZJ7v+a2ORJmTUQ56L+Sd6FzE0HBXIhVduV8Qe2xxZXBKTSIhvhtmt2qvSpy+X ZfPjPJj+/CDx6t/xy+U0amUAL2QdiOKKTIzY1 X-Gm-Gg: ASbGncsJLzDFe7/68VvbpunBp+xY/fPVAinYRmD+BJSnG/0AYa23dem+MI0f8pqDfHu Cua3QO4PakTY7JA4NG8MPfoizgVBjcA5gxRLbdy3o1kTCBCJ1OuhSq45L0UzPaoNtn0LU6+Kyri y8NleX4scbzRge2XLcClaA X-Google-Smtp-Source: AGHT+IFXp0R1DqV1o+9A2JeXousgPHDxaDd+j0YTfuUu8roQ2MX4S6Vk7HGPVAoVckf59/tzN5c4oPUxS/859PzOghA= X-Received: by 2002:a05:6214:20ea:b0:6e8:8d15:2d3d with SMTP id 6a1803df08f44-6f23f1b5aa2mr185666836d6.40.1744658071537; Mon, 14 Apr 2025 12:14:31 -0700 (PDT) MIME-Version: 1.0 References: <5bec3d4f-613f-425b-88c4-59e71c70f7d6@eisentraut.org> <487dacec-6d8d-46c0-a36f-d5b8c81a56f1@technowledgy.de> <012b6a4a-aead-411a-a9db-c6c7b25e1dcc@technowledgy.de> In-Reply-To: From: Jacob Champion Date: Mon, 14 Apr 2025 12:14:20 -0700 X-Gm-Features: ATxdqUHCt1jtwFhLjcmRarGvX3J8tmjb0p37M9daae8i4tiTSTCBPQ6vz4XYj_c 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 Mon, Apr 14, 2025 at 11:27=E2=80=AFAM Wolfgang Walther wrote: > src/interfaces/libpq-oauth/meson.build:18:22: ERROR: File > oauth-curl.c does not exist. > > This.. clears it up, because that file is indeed missing for me on disk. Aha! Okay, glad I don't need to track that down. > libpq.a > libpq-oauth-18.a > > The libpq.a file has no references to dlopen, but plenty of references > to curl stuff. Which references? libpq-oauth should be the only thing using Curl symbols: $ nm src/interfaces/libpq/libpq.a | grep --count curl 0 $ nm src/interfaces/libpq-oauth/libpq-oauth-18.a | grep --count curl 116 > I'm not sure what the libpq-oauth-18.a file is for. That implements the flow. You'll need to link that into your application or it will complain about missing flow symbols. (I don't think there's an easy way to combine the two libraries in our Autoconf setup; the only ways I can think of right now would introduce a circular dependency between libpq and libpq-oauth...) Thanks! --Jacob