Netdev List
 help / color / mirror / Atom feed
From: Chuck Lever <cel@kernel.org>
To: Sagi Grimberg <sagi@grimberg.me>, Hannes Reinecke <hare@suse.de>,
	linux-nfs@vger.kernel.org
Cc: keyrings@vger.kernel.org, kernel-tls-handshake@lists.linux.dev,
	netdev@vger.kernel.org, Trond Myklebust <trondmy@kernel.org>,
	Anna Schumaker <anna@kernel.org>, Christoph Hellwig <hch@lst.de>,
	David Howells <dhowells@redhat.com>,
	Jarkko Sakkinen <jarkko@kernel.org>
Subject: Re: [RFC] NFS: named client identities for mTLS mounts and a per-namespace .nfs keyring
Date: Fri, 5 Jun 2026 15:07:15 -0700	[thread overview]
Message-ID: <b9fd14e5-4692-419b-8a2a-1ae6c1c63435@kernel.org> (raw)
In-Reply-To: <ab767baf-aa94-4ff7-81fb-c19804a7883d@grimberg.me>

On 6/5/26 2:32 PM, Sagi Grimberg wrote:
> 
> 
> On 03/06/2026 17:27, Chuck Lever wrote:
>> On Tue, Jun 2, 2026, at 6:39 PM, Hannes Reinecke wrote:
>>> I am all for making keyrings namespace-aware. Logically I _think_ they
>>> should be tagged per user-namespace, as this really is about the
>>> filesystem (and as such would warrant to be tagged per mount ns).
>>> Tagging it per net-namespace is not a great fit (well, for me, at
>>> least), as also block devices might require keys to present the
>>> bdev (eg nvme authentication)
>> My understanding of the proposal is that there is one keyring on the
>> system for .nfs and the keys in it are visible only in the namespace
>> where they were created.
>>
>> Therefore the consumer (say, NFS, or NFSD) is running in a particular
>> network namespace. It will create keys on the one .nfs keyring, but
>> only the tlshd in that same network namespace will have access to
>> those keys.
> 
> Can tlshd run in multiple network namesapces today?

AIUI the netlink upcall in the kernel wants to use a netlink socket in
the current network namespace. So there has to be at least one tlshd
instance in each network namespace that wants to use in-kernel TLS
consumers.


-- 
Chuck Lever

  reply	other threads:[~2026-06-05 22:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 15:47 [RFC] NFS: named client identities for mTLS mounts and a per-namespace .nfs keyring Chuck Lever
2026-06-03  1:39 ` Hannes Reinecke
2026-06-03 14:27   ` Chuck Lever
2026-06-05 21:32     ` Sagi Grimberg
2026-06-05 22:07       ` Chuck Lever [this message]
2026-09-11 19:20   ` Chuck Lever
2026-06-05 21:44 ` Sagi Grimberg
2026-06-06  6:50   ` Hannes Reinecke
2026-09-13 16:05 ` Chuck Lever

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9fd14e5-4692-419b-8a2a-1ae6c1c63435@kernel.org \
    --to=cel@kernel.org \
    --cc=anna@kernel.org \
    --cc=dhowells@redhat.com \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=jarkko@kernel.org \
    --cc=kernel-tls-handshake@lists.linux.dev \
    --cc=keyrings@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sagi@grimberg.me \
    --cc=trondmy@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox