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 1tpVkj-006reL-Lx for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 17:08:21 +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 1tpVki-002kXq-9W for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 17:08:20 +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 1tpVkh-002kTe-Vn for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 17:08:20 +0000 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tpVke-000vzh-0K for pgsql-hackers@postgresql.org; Tue, 04 Mar 2025 17:08:19 +0000 Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-7c3be0d212fso286387185a.2 for ; Tue, 04 Mar 2025 09:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1741108095; x=1741712895; 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=alpglFBQw7Du337Dy0+njnJnSmwG+UcESh8h/BqpAfo=; b=lYAAdJhWSNj/3NRXAU8VjaN9/a1BofNVLSuk23cYuBicZgx+wWc0MnaZQeGO85YxGo /Bvl68E7Re3BSMoWs9J8eWFqqnzAarPnZgTxLg214xqEK6vFluKRcERl+FiXdmyhhaLb 4i10C19H7izVRS7O2DTfSACMbVUodCVDcNScsFpnd3KOLZI85fwXx71E52VToDHKJK42 IVr0yg6yZ8cJeDP/72aLyWVXExBBbJihZYeEBS5T/f8yG/TEvlXZs80jz+ZSJXW+jwR7 UGCqjf/0fUB9QrBwHTrsXNc6Dizf0WK9n7zAwejJuyQjC/hvW6Fh4qBMPtcViVfxQgM7 zjGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741108095; x=1741712895; 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=alpglFBQw7Du337Dy0+njnJnSmwG+UcESh8h/BqpAfo=; b=PM+3S8NrP+8QyDZf0c0kvLNQGUUDjQhPHMGfny+Ywp4ugaEj96PoBoVBAu0LdyFQoQ Da3/TUu25jfqc9JQ+mmyxJygF7kz9dMDgue2hcQoLRLtVcEuKd0xMXWhL/lEb4TJ4VR/ gJrHQi+at68wMbxCNeQH0qSOW0ierBE7BdwbX6ttAV0mICfyo6yaUA4XYQKlGoofVIQG KV5/xPlewLEvUdCvsf83PoLCUG4dRb9dEMtW4JJE4M3LS17ZNJ3vf8dh5hSMs9idHHrj CNBp0FmvbjE/BoFfywPbMrNsZ/fBN0YSpBRLAa+Di89biGaujlM1iBkm+ChnFrhV6m3Q ry/Q== X-Forwarded-Encrypted: i=1; AJvYcCWPLFRZJfDNffAFKKwKJ7Br6WecOkHu9A81YwPRfHX+EJMxO+RV+l6t3qreRfngjjJerafvLpp0ADuzP+Xj@postgresql.org X-Gm-Message-State: AOJu0YybnjTz90bkGLh0Bd++aw713Un0S/AiU0BpmtvK4u6hVBKYwbDh uieywQgZmgcwa0tRLA7txG8/f5jAFdIbs09/o9MJ/TtpD3BU8B6JXjEhxBL347VjuaL+D+1NnhQ sWtvsg65NLMwfzdDG9njBznlvnraeFCGqiI19 X-Gm-Gg: ASbGncuraCL8RdYIsznAeF+8+Yeipo5GGgZ1xkORb5qjYmi5sLYb0yzmEHFfywQa4iD AjsmhLrH86mEN7Br6gkQ7yy+df+IdmE26vHgPgeH4Hvahwlr6Rc5ssVVfKHvXb199lmyhFZklDZ 5XPCZO9ZARgKW+Bh/WL0XgurUJ X-Google-Smtp-Source: AGHT+IFhyn0tdAa2QjFh5q6eNxZMwTNMyTxshuRnGf6a7XYsWyRJEkx+ClbYdKGPVFgb6UTUfRmINfAPbEeKPjCX74g= X-Received: by 2002:a05:6214:5005:b0:6e6:630c:71e9 with SMTP id 6a1803df08f44-6e8e6d13edcmr578946d6.3.1741108093881; Tue, 04 Mar 2025 09:08:13 -0800 (PST) MIME-Version: 1.0 References: <83C44AB4-24B0-437F-B139-B5CBC5821BB1@yesql.se> <2A1511A0-C04B-47E4-B1C3-54C2A1C765B8@yesql.se> <13F329B6-86BC-40A5-96F4-102784A0357A@yesql.se> In-Reply-To: From: Jacob Champion Date: Tue, 4 Mar 2025 09:08:00 -0800 X-Gm-Features: AQ5f1JpqUewrl_PIlfeVEfVoXGsLBOYEc9tRQmMzeIz7iF9rf0Z5u3vuywha1To Message-ID: Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER To: Thomas Munro Cc: Andres Freund , Daniel Gustafsson , Peter Eisentraut , Antonin Houska , PostgreSQL Hackers 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, Mar 3, 2025 at 4:07=E2=80=AFPM Jacob Champion wrote: > I wonder if > my test server doesn't handle dual-stack setups correctly. Spoilers: it's this. > I'll see if > I can get ktruss working on either side. ktruss shows absolutely no syscall activity on the authorization server during the failing test, because Curl's talking to something else. sockstat confirms that I completely forgot to listen on IPv6 in the test server. Dual stack sockets only work from the IPv6 direction... There must be some law of conservation of weirdness, where the strangest failure modes have the most boring explanations. I'll work on a fix. On Mon, Mar 3, 2025 at 8:11=E2=80=AFPM Thomas Munro wrote: > I think that is telling us that a non-blocking socket can be in a > state that is not yet connected enough even to tell you its local > address? That is, connect() returns without having allocated a local > address, and does that part asynchronously too? I don't know what to > think about that yet... That is also really good to know, though. So that EINVAL message might, in the end, be completely unrelated to the bug? (Curl doesn't worry about the error, looks like, just prints it to the debug stream.) Thanks! --Jacob