[PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD)
Chuck Lever
cel at kernel.org
Sun Nov 22 16:59:56 PST 2026
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)
More information about the Linux-nvme
mailing list