From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14A9A481C4; Fri, 16 May 2025 05:17:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747372678; cv=none; b=dzX+g2n8O4Cj23Lqpck9bK18gor8UDYgC/fEzyVBWhJI6Or7V3DL5CSWLA0qiFAUh3FvjWokX/eu5s+A7HRxt1SLUMYtD4/F6sJPv8CTR2FV8yCrIIaQ1g14vkXuOR+X/TpS86gniV66ZUF7qIyYiCS1TffLPqRp2kqhYqBeZKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747372678; c=relaxed/simple; bh=cpd0/pJh5sUWAGsCtT9PLuj1QUMfVHesnVngUzB8pLg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dEeHNVKMCx4IteiXGi9ATDroLgeszJ0uionqjLeNedxINsd5h0Q3B+3H5MD/rBt3wNTEpqZvkdjoriaeFJ+EbyLhjWlRI8dXlo9YxsX+ahEShfucoLJQNgDvWOlXCsBzbo8ano1c3xZ+i1cjKa8DNyDA+CrNba5J4qqZCPCHdzw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 0DE1A68AA6; Fri, 16 May 2025 07:17:53 +0200 (CEST) Date: Fri, 16 May 2025 07:17:52 +0200 From: Christoph Hellwig To: Hannes Reinecke Cc: Jarkko Sakkinen , Christoph Hellwig , Chuck Lever , Trond Myklebust , Anna Schumaker , David Howells , linux-nfs@vger.kernel.org, kernel-tls-handshake , keyrings@vger.kernel.org Subject: Re: [PATCH 1/2] NFS: support the kernel keyring for TLS Message-ID: <20250516051752.GB13495@lst.de> References: <20250515115107.33052-1-hch@lst.de> <20250515115107.33052-2-hch@lst.de> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, May 15, 2025 at 04:46:43PM +0200, Hannes Reinecke wrote: > With this patch the keyring is pretty much immaterial; the interface > is passing in a serial number which is unique across all keyrings. > Where the keyring comes in when looking up keys on the TLS server, > as there the TLS client hello only transports the key description > (which are not required to be unique across all keyrings). > So there we'll need the keyring to be specified. > But for the client we really don't. Yes. Patch 1 on it's own actually works fine-ish. The big difference is that the keys would have to be made user-readable as without the keyring, tlshd would not be the possesor of the key.