🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20306

Re: [PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD)

#20306
From: Jakub Kicinski
Date: Sun, 22 Nov 2026 00:13
45 lines
10543 bytes
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

The patches look reasonable to me, overall. At a high level tho - 
I don't have any familiarity with "tag" based policies.
Are you confident it's flexible and convenient enough to survive
as uAPI?

Naively I'd think it creates unnecessarily wide API on both ends
(handshake and server). My knee jerk design would be to populate
the full policy in the server, and only carry some "policy ID"
thru the handshake. Number of policy IDs would equal to the number
of tag combinations (which result in different behavior).

Any examples of APIs like the one you're adding working well?
Anyone willing to review this series, please??
Technical Details
Message-ID: <20261121161302.69f202c8@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368541-linux-kernel-netdev=dewy.ru
References: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368541-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 00/10] Deliver TLS session tags to
 upper-layer consumers (NFSD)
Date: Sat, 21 Nov 2026 16:13:02 -0800
Organization: Usenet Network
Message-ID: <20261121161302.69f202c8@kernel.org>
References: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3529356"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:UoKu1Q5VzEJJgmEDT94LxWWAUTU= sha256:3IZ9Te3jcHH9O7bbbhOyXfR5MpEayWNe8myJe8xzca4=
	sha1:PXz5T0H5uYxTrff4iky3QZ44eDA= sha256:iUeX4gxvulVs7SX5Cv+S0cQjuDA2OskriJy6BsnftfI=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id DB545115C48; Sun, 22 Nov 2026 03:13:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id WBazgMQ_CAmT;
	Sun, 22 Nov 2026 03:13:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368541-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 1D2FC115C17; Sun, 22 Nov 2026 03:13:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 9853332D48; Sun, 22 Nov 2026 00:13:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795306390;
	b=b86G28fGTqHhrQg0ty9P37k9L0mzWPUW61k6FTlNSPBztVaBKnM/T7VXO7dxvYW7alq8
	 lMIMpmPxI/JcwHkkD2hw069i/+ivhlgZZPISSu4UVHbNmyBrHZpl7HIR+1/m5rImIeh8a
	 1HPMNBOg6/hzhWRRDtBbXuZpLe6DKNYbdERyj3kp1y9OvipeMX5FM8dZ57Wsw8z2WD8sJ
	 WAnFE5fn7xmxynbIY8bYxSSbXbNrmqx5UeXizOUIU/NE1ymHj+9brH09WNCCBx0jNz3zF
	 EIy+ioAO1WnQZywtOIZtey3vCKLmoHKjQnEY4c0wFblM3XFrhiQ6nujkmyCWKr9j/mg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795306390;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=Wme/Jw65vekSkLxpWIsP9GgAmvy1/VZB1ZbshkHKAZw=;
	b=FxcT16FVGGcnjgFvptLG2b/gFJZlyfBihubF6NS6AEJwpXRPI8Wtxd3CUJmXwd7qoiSF
	 /x0tDeSG+/q5I/00GdJrJ9VyjxMFFdn2mJjVhduLYTCgfVp03tgWSaZkc59BETUBOscuP
	 v7FKzaU1QspuYqZNaz8hzWle4Db93udrvrS5IqhqgsjWnkfrMJ26RSu2klL2O2YFRZjXf
	 gHtMTy7qSmfbIKip4ol8/f4Ca2ddqFQAyYEerSyEmRnGwQABQPSPKXX+QLdE5Uo8nrEAt
	 z2J5KUzktGczjtfJGCq/o0IDlAEUK2VvIdP4DuUNg+lKXUJgabUf1yAbepFqPYjMz9A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=X3nYg85n;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CBB8606A32C;
	Sun, 22 Nov 2026 00:13:10 +0000 (UTC)
X-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=X3nYg85n
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795306384;
	b=pGuRA8bbILmYO2TjXlV2dhmhHDnFzMYgckd+dJfxS/ppDuG2LsREDuzyTUWgGFxoEybu
	 kBK1lmIegVbjg0ZKhsCVDtT2jB8aSgxwC73h6eo67IGIDw8Md7X0L0NiWW6ylPBVaWbDE
	 4JDM+dwOqCTwf5ibOB3K/tvx7l1i8dXbTJBorDkVJL4dr0aEzhpbRn9sXb6D1CsXwscGH
	 H/UGtZbJjBajeqOFiQSnT2AMtQry7S01bArVOX6oaZGpxK5CNveBTJH89t8VmFRm4+mMv
	 0DjJlUiCe56aoscQmsfmJmw23oHjZ62/kPjox/YEi+EbWvOrSUm6I2S6JNruYSwyJJg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795306384;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=Wme/Jw65vekSkLxpWIsP9GgAmvy1/VZB1ZbshkHKAZw=;
	b=Uu0V896PQtiDXxz1itY2NbFYr78sGZOA68X7v+YonCCWAWXYDkt1Hvp6JfKo5dUFBb9K
	 DWd4ET6meo+e7Vafb2Z1gShl3BkRnmKe3q6o6vhXaSa71P3gJclvlgfzkSZrZS8C/8kT2
	 z0o69LygWNBkouUb+SE/osMq6uWtT6WEiaLdT1GDpOa8apDmZ3Qg6jV2XOGC48qZ3ORVG
	 NWU8ATlHGn6Sg90yAvz2n8SWQwpJd+SmFmMChf/tlPcNbaVvwrCDizrANP3DW/lzJFB2j
	 RZP89kNeEQ5n7A2g+UXhIiR+9hZGwHF2bK5vW+lZ66mCbaqGxykE1rGwc4a3zfpBloA==
X-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=X3nYg85n;
	arc=none smtp.remote-ip=100.103.45.18
X-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 892D7606A320;
	Sun, 22 Nov 2026 00:13:04 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF7C71F000C0;
	Sun, 22 Nov 2026 00:13:03 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795306384;
	bh=Wme/Jw65vekSkLxpWIsP9GgAmvy1/VZB1ZbshkHKAZw=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=X3nYg85nYhldkdDOD6+IzCzfE+ghiyyrey1IreSL8rUp6l2H08RQeBZGRKYeo9qst
	 Ny3CaPnleLhvnutoO5GS6D+KPDlYLp/1M2Bbz0beGB1rdV+/yNFjtoA/JXlxKfVe9I
	 XEG356y+Ut88rKRHvt5Ff7c3qAClO7cQrW0b8Kcr1Nlao9oD+sN5A2M7u4HVLPY2ed
	 oHilj/rEtoc1tTuPLPjqP/6HU+nTZ7BkqmKFuakpR5FfBPS3l1wMFLwU8pSQvw1qVQ
	 BmHok3z4HQNQDMuygC7xfEIMMYsTs5WiekDFnKTjKTLhzASQOCqGW2va0jGvgIscRo
	 7flK77N6TyExw==
X-Cc: Donald Hunter <donald.hunter@gmail.com>, "David S. Miller"
 <davem@davemloft.net>, Paolo Abeni <pabeni@redhat.com>, Simon Horman
 <horms@kernel.org>, John Fastabend <john.fastabend@gmail.com>, Sabrina
 Dubroca <sd@queasysnail.net>, Keith Busch <kbusch@kernel.org>, Jens Axboe
 <axboe@kernel.dk>, Christoph Hellwig <hch@lst.de>, Sagi Grimberg
 <sagi@grimberg.me>, Chaitanya Kulkarni <kch@nvidia.com>, Jeff Layton
 <jlayton@kernel.org>, NeilBrown <neil@brown.name>, Olga Kornievskaia
 <okorniev@redhat.com>, Dai Ngo <Dai.Ngo@oracle.com>, Tom Talpey
 <tom@talpey.com>, Eric Dumazet <edumazet@kernel.org>,
 kernel-tls-handshake@lists.linux.dev, netdev@vger.kernel.org,
 linux-nvme@lists.infradead.org, linux-nfs@vger.kernel.org, Hannes Reinecke
 <hare@kernel.org>
X-In-Reply-To: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list