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 1uIyWX-00EZv9-AC for pgsql-bugs@arkaria.postgresql.org; Sat, 24 May 2025 23:43:29 +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 1uIyVW-00EIMN-VO for pgsql-bugs@arkaria.postgresql.org; Sat, 24 May 2025 23:42:26 +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 1uIyVW-00EIME-EZ for pgsql-bugs@lists.postgresql.org; Sat, 24 May 2025 23:42:26 +0000 Received: from tiger.tulip.relay.mailchannels.net ([23.83.218.248]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uIyVS-000pEq-1i for pgsql-bugs@lists.postgresql.org; Sat, 24 May 2025 23:42:25 +0000 X-Sender-Id: dreamhost|x-authsender|nico@cryptonector.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9898A815BC; Sat, 24 May 2025 23:42:19 +0000 (UTC) Received: from pdx1-sub0-mail-a260.dreamhost.com (100-117-211-64.trex-nlb.outbound.svc.cluster.local [100.117.211.64]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1C683818FB; Sat, 24 May 2025 23:42:19 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1748130139; a=rsa-sha256; cv=none; b=BeZiHdc7LzgrZTybDTeJsD/g1DJlgh2q8J4dAibWC5tO+Akpe39QkPkdlx8ZK3PUfRm5Km Jgwawi2T1gpOBSrFjZK8RA5SDDHq5vmIJSf+R+JpatTI4awFUF0Pb7ITPQ1MiADvd1Q8WB V2QLd5B+wRe65ossFf+tL6RbYcHDxJdvlVMT9x1rdlCSfVpemhp0yLnVqCivbyoF6mZSL/ f6w4nLb7DdLtuqL4bDtNewIN3xXsdtIPdsU3H54MN2dTvIHrIwgSECH25t0pXwG6GWF0Dk j+ErlFWUxJgMpnusM8M8MVX+9CC2BgEAW5scdTC1Cbj9p/i64VPFsYzwLv19dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1748130139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Zo3IcVrJwSYLeL7IrA5rCow6gQH7iyr1Bg80V9RlglE=; b=ql47AMWIAV+qjjbZQvlJcEHSXohOuqA/8dF1VMqzDFDFUyAcRBu+5dLT8mL63LdkmcpdbR wYAhyayZB+wyRLb0ptcFhQqHn1SCjX6SrD4RmahLekO1pMMtMY7T8S3klpxWMN5rfgax+k YLBGqKMrVDJYVOxx10fNmRmZG9fsszwklbpAykJXSrnqrsSpnyV7DvEi+AI7mUDaOZmKan XjGlemJFJgZotKuK3Lxg5943HWBjFcH+6MM8BJ5iAxkQyfgxFXowhZBS6LxrnmouHxlsfA eDVVbhZdx4i92BX6aTkT0jl6fs4ldxDuEQDCx5DKpyqNpM5a/NQXt3chA5b9TQ== ARC-Authentication-Results: i=1; rspamd-5b49d78d5-hs28m; auth=pass smtp.auth=dreamhost smtp.mailfrom=nico@cryptonector.com X-Sender-Id: dreamhost|x-authsender|nico@cryptonector.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|nico@cryptonector.com X-MailChannels-Auth-Id: dreamhost X-Chemical-Tank: 16d705bf3bd0f4d2_1748130139459_128390959 X-MC-Loop-Signature: 1748130139459:458826895 X-MC-Ingress-Time: 1748130139459 Received: from pdx1-sub0-mail-a260.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.117.211.64 (trex/7.0.3); Sat, 24 May 2025 23:42:19 +0000 Received: from ubby (syn-075-081-095-064.res.spectrum.com [75.81.95.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by pdx1-sub0-mail-a260.dreamhost.com (Postfix) with ESMTPSA id 4b4dqG27mwzS9; Sat, 24 May 2025 16:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cryptonector.com; s=dreamhost; t=1748130138; bh=Zo3IcVrJwSYLeL7IrA5rCow6gQH7iyr1Bg80V9RlglE=; h=Date:From:To:Cc:Subject:Content-Type; b=AXuev8RVGVg6UlU0d+aUlUp07PEbpmZVXgJ0rgK1TtrIDeuLuAN5sWQe4UeP1I8ny 5e+opHU5tBvgKhyjvh9VZ+YHvJotQJFQ0fE8kaxyKw9+N6CAAV1Doe2tSlkIrJzU8z 0PHY4jShnfQ5b/R99b51J3/85h0zQBlPu4siHFmvvLNebTV0E3TAvFylaYl58NZ2sf s0TbFy99lvcQmXz2aoFLHLSbxsHhBPdo534jAX33fC2cDkvitc7HHF53mtyG3IB+Rh nQvOK9qDVszv1fuHuriFwhYGTtcVsuhbjlOVu3x1eLGRbo2ybToa8kyvZUMvCOmCd0 X+okULRZHga3Q== Date: Sat, 24 May 2025 18:42:16 -0500 From: Nico Williams To: Chris Gooch Cc: Tom Lane , Jacob Champion , "pgsql-bugs@lists.postgresql.org" Subject: Re: [EXT] Re: GSS Auth issue when user member of lots of AD groups Message-ID: References: <1529314.1747928806@sss.pgh.pa.us> <1536692.1747933034@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 22, 2025 at 05:04:32PM +0000, Chris Gooch wrote: > It now makes sense to me. I believe the KDC will not allow tokens > larger than 65535 bytes, so feel it is safe from a GSS perspective. The KDC protocol over TCP uses 32-bit unsigned PDU lengths in network byte order, of which the high bit is reserved and must be zero. ASN.1 supports much larger lengths still. The protocol easily supports very large tickets, therefore very large initial security context tokens. The architecture of having the user's SIDs be included in the user's service tickets was very useful as an optimization for a long time, but as the number of SIDs increases this optimization becomes more of an albatross. Nico --