From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795395618; b=32Oee/8LLZfNJeY5cCgXm4gWE1HwV6LJTnl7FixPlcIHrHwhKdXtXIIQ1aiw49BvT3F/ uNd9/TE4eZeQ7OQlaoAAcz5gjEzJFLSKeevQG5C68986VPme3tcagaBLS0vDMxs/VSLEK LzeGV4wJO+bJIZgyaB1M6SwJvi/wyx0LYCDJzVkrDB5SY4skPxXZtYG3Ly6RUbZjwkuFc NHCVhRqAX7axC+tSqM5ga77VHi26uJmSj+T+P4mGh1+f/9gDGBu/j0zvN5Bq8fnhNe9AU gtt6BSAtBOA4edHN0YpURTWY551O4weXLJ0B/KobYC33Nrtxo9IAiTpWYf2hw8HlDAw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795395618; h=Received:DKIM-Signature:Received:Received:X-ME-Sender: X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer: MIME-Version:X-ThreadId:Date:From:To:Cc:Message-Id:In-Reply-To: References:Subject:Content-Type:Content-Transfer-Encoding; bh=iLrnKxxVMWKMeMeAgoH7MuH9sETQs3VlmpYHt8ql4sI=; b=DOWcCik5wEUojNaMa42mCk86Oz+8dV3QLC9lb4RC9sYHlX38ajzZ9sVQsMP2/VQ7O3s2 rmqXswi6NLIIZBEX2sfIpf6L1xseScXTBFk8Bop/EcJRENgk0Ft4qxYWobRZFBtZipSd3 In0Td3R0mUZsZfM2sd0bEjvCsWERZ76cFOfpu/6ot65/cMNB3kob7JNTbDtvWxgkXnHjB CfTOFmvWWs+aY8kbABZ+LF/+aPV7adKz8dOOTix9/WPysb0Ouriqi9pSoLD2SvQETr9Wy NaPJl9n5Cfe34F1mdZeZT6a3xRlMmW937vRyJkIPAm2/Je1DAeSESef4x2P8TTJF8LA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CsxJXzR1; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3544C606A32D; Mon, 23 Nov 2026 01:00:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CsxJXzR1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A9421F000CA; Mon, 23 Nov 2026 01:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795395617; bh=iLrnKxxVMWKMeMeAgoH7MuH9sETQs3VlmpYHt8ql4sI=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=CsxJXzR1yflwMnj8XPbzLcPCJmf70siSQZaD/VFXj0qrc7OmQbPjZKWb6v7NUd97p EVgTwO478HHWS0KM3ejN5NFaQDfiovYLGaIFk/jqhi/d/bc40penOkQnCwCjKzxiLC yXr5ITyUVKhoz0ayrlF8wOHVIGvf2t2NWQqbpA6LtNSn6hpvmAPvkpsAs5MLkioiJT CUUm6HKvIMtH47SbOJ/xbyJ4P8UHzzMsHrq4ycDpt//TR2rNRV3ZxKyOmlWAyAsyM1 nqac3iYrMpm4VRK2JBMIBbGiHdBKMmds3Eq52DD8dRrl4NPx3SNhIC8a3ww2MrMXyw ron5q8LYyDA4g== Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfauth.phl.internal (Postfix) with ESMTP id 6EB60F40068; Sun, 22 Nov 2026 20:00:16 -0500 (EST) Received: from phl-imap-15 ([10.202.2.104]) by phl-compute-10.internal (MEProxy); Sun, 22 Nov 2026 20:00:16 -0500 X-ME-Sender: X-ME-Proxy-Cause: dmFkZTFIEef34L9gI7dEhgKcCVtUw+ZHC7e1XQRRVaW1n+cw99FavR/qIyYWKGr2MqAkqJ 6dhS7cnALR9U3ZGnrXPxbBjkn2gnPlsDeJJbmilHbZ2LoGNqFSZCVPqRmwTEDmqyQNYEwL 6eMHNPgd/OyeBZuEpy31PIQfTrMNWhreYLasRbhMUMpxMEyQE1jfdf6ma5OFi5/yUoVRUB WKxkGewiptcJ0vE4zUWHQdVw7V6g0usmVnBmOU8E1DJl2AUHmLqFSQxtbEFxPZerZ+9DZl CF6V81tXc9kuP1iBWOa4WhpAf5TahRuYRKw8944qHu1bekT0hg2JpuWuP2dT5kLq7DfXjl nbMAXZ6W6YXQb9BCsBJLYHO9fydxixQTjnwYQ5oBG3KjeLcw5kzd9XDkqkmTMIwtj4pxI5 wxEnYzFYasHvRGuYX5dij4IlMU8YdbtToqGlBnFZ9KPMKQy94rItjr69cl0QiROLWpS+xy BnJ6U7bmmpXGdXOzjITEFLcSwkYbpW59VGWKDrbOCGiccG+GFmaOog4xnBlMVQBKr0ZFHJ ERCaDhj+x325PLeYXpu+AniAdKkuKQQEUP0gsSq58IrTLMdImBLQ6/JJLNgKKdUHrvAhTh 6ZxcRxRCMuSxXSV6lN0iX9waARWZUoaGEGPlXS/hUM4tmI0eHdeqUZkAIk3A X-ME-Proxy: Feedback-ID: ifa6e4810:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 438A0780070; Sun, 22 Nov 2026 20:00:16 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-ThreadId: A8Z6fJDuAPLk Date: Sun, 22 Nov 2026 19:59:56 -0500 From: "Chuck Lever" To: "Jakub Kicinski" Cc: "Donald Hunter" , "David S. Miller" , "Paolo Abeni" , "Simon Horman" , "John Fastabend" , "Sabrina Dubroca" , "Keith Busch" , "Jens Axboe" , "Christoph Hellwig" , "Sagi Grimberg" , "Chaitanya Kulkarni" , "Jeff Layton" , NeilBrown , "Olga Kornievskaia" , "Dai Ngo" , "Tom Talpey" , "Eric Dumazet" , kernel-tls-handshake@lists.linux.dev, netdev@vger.kernel.org, linux-nvme@lists.infradead.org, linux-nfs@vger.kernel.org, "Hannes Reinecke" Message-Id: In-Reply-To: <20261121161302.69f202c8@kernel.org> References: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org> <20261121161302.69f202c8@kernel.org> Subject: Re: [PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD) Content-Type: text/plain Content-Transfer-Encoding: 7bit On Sat, Nov 21, 2026, at 7:13 PM, Jakub Kicinski wrote: > On Fri, 13 Nov 2026 14:21:58 -0500 Chuck Lever wrote: >> NFSD controls remote access to its exports today by IP address and >> hostname. Neither of these are cryptographically secure. For >> instance, a MitM can replace the response to a server's plaintext >> DNS query. As a result, a malicious NFS client can pretend to be a >> client whose hostname matches one that has access to exports it >> would otherwise be denied access to. >> >> So instead, we want access-control decisions to be based on >> cryptographically-vetted objects such as TLS peer-certificates. >> In-kernel x.509 parsing would duplicate work mature userspace >> libraries already do, so let's make tlshd evaluate peer certificates >> in user space. >> >> The certificates are evaluated against admin-defined policy, such >> as whether the certificate's Issuer matches a particular string. >> tlshd then marks NFS TLS sessions with those policy matches. Admins >> also provide a set of policy names on each NFSD export (allow_tags). >> Computing the intersection with these per-export tags is quick and >> completely separate from the details of parsing x.509 certificates. >> >> A yet-to-be-posted patch series introduces tag set support to the >> exportfs command in nfs-utils. tlshd 1.5.0, current as of this >> writing, already implements TLS session tagging. > > I submitted this for AI review now, I think due to the problem > Simon flagged CI didn't just gobble it up automatically. > The AI review will not be emailed to the list automatically but > hopefully it will be ready here by the time you read this: > https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261113-tls-session-tags-v3-3-91271964cdb0@kernel.org There are some drips and drabs here. I can re-roll, and think more about higher level policy-based access control. > Any examples of APIs like the one you're adding working well? I found one or two while developing these a year ago. Nothing is leaping to mind at the moment, though. -- Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)