Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13624779rwl; Wed, 4 Jan 2023 10:36:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXtyArXz8uydxZyaOucV2/VPoiNpy+4wOa8iHR/ffM6rp6mcBLY4/bBBhWNoJAhr1Fl8f7dP X-Received: by 2002:a17:90a:9315:b0:225:cee4:d8a7 with SMTP id p21-20020a17090a931500b00225cee4d8a7mr39490870pjo.14.1672857375005; Wed, 04 Jan 2023 10:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672857374; cv=none; d=google.com; s=arc-20160816; b=klK8gCaP8GZfOQeNTxmNhZvtHQlUaNjPdiGmgtli5O19+PdeixPLJzfuPmeVoGLtKY UR6iom1YHUazcn+9l6hMUPpL9PkV3QV1o9qJbWZCGbNZbuF4LNp8YYy58HKT8laOdXHJ SxbflclHoXoOoAwjBreU3RcKuim3WX78si73K1F8zaYvRyn2mSjENJ9IH7mMTUQk705s sZatZsDJE4qxkEEJYLTONTH8v8Uh7DgEvSsdNLlHgTfJTyhTscbVaOqg3Q5wQDMtaZYe hNcXjqhYyh8NAd3jfZivZ5FI/Dd45LTGMhxNJrkNcc8Aod1stiL8cDvS3nYBX+xRACwK CdQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=jenYPIkgEGfsL+BQfTeVohnzHg2h3TlX3EY+YwJsTkA=; b=w73lo9zjYUDsvqQ0t12uoI9TPK5vN98R/3KiPXwED5lY+bDJG9bxCvr0ii4i/a2DF/ T/Q2BMcTg/H2H9XiNKKXip53UUtGUaBMCZfjyECZI/G3t55kyY3ZNXdIbPguz1xxhRNz 2YHX2yfhIJwn3auMazr87SWUBLvM7D7oPAzygocwaY1b/sU/vvcrsSzamiPZfJ9vSfwZ Y+jxfm6XgceDTa15dHGOSsOBATwFK25zsHjdmxdooptmj21RDWJ9y2U2EACnpfNpRwUU 9KWHoJ3q8W059KrqIA9YssEMccvlIbOkeQyZ+N+sksixrh91uGvpkPg/tSKg1ly2Ah8T w1hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp5-20020a17090b4a8500b00218a9f90590si42139009pjb.2.2023.01.04.10.35.54; Wed, 04 Jan 2023 10:36:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239695AbjADSfX convert rfc822-to-8bit (ORCPT + 99 others); Wed, 4 Jan 2023 13:35:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239561AbjADSez (ORCPT ); Wed, 4 Jan 2023 13:34:55 -0500 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2207D13F05 for ; Wed, 4 Jan 2023 10:34:54 -0800 (PST) Received: by mail-qt1-f176.google.com with SMTP id j16so27930224qtv.4 for ; Wed, 04 Jan 2023 10:34:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SXKiDzhMgDmnQim86BhlIPfQnUVuEnlNBro+a+7gmfc=; b=oHfH2U8/ngbmqg6yVEF7BCZ404cWuUZjLwqfBWp9In80JUjni7cgmlOkCbEkdj0VgY EPz7n2zV35Z1Mj85Q8wpX3Io2M4tgPXMtUf5sQR9WBjydVYUgw+zih9zoihG0EWKOWJd OexxOHKoluOdvijqt0lTtWlir7eFyLIiv8gCtFur9mg2nEukTWfmOulqgWAhP7aohBvH KPSDH3qcN/Mj/WnKo5hk14dLcH5NWNXv0PURU8gX46wSFxGG4Ia4Lkl80JFdISXMHfak POXvKasn4VBunkQ/euEFMPdswLFLj6j/3r0qp5NnX8TD/TVTrq75BP+VaAvj4vgpt27d mcNA== X-Gm-Message-State: AFqh2kpgIW6XUKZ0piIbVBdcebS0twBDfGg9sUftFqWgfFkv7RC1q8xQ n2jgWo0xD5V1FL7d78Gv/gathu1BLQ== X-Received: by 2002:ac8:4f16:0:b0:3a7:ec99:56e4 with SMTP id b22-20020ac84f16000000b003a7ec9956e4mr79435874qte.39.1672857293131; Wed, 04 Jan 2023 10:34:53 -0800 (PST) Received: from [192.168.75.138] (c-68-32-72-208.hsd1.mi.comcast.net. [68.32.72.208]) by smtp.gmail.com with ESMTPSA id br24-20020a05622a1e1800b00397e97baa96sm20569442qtb.0.2023.01.04.10.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 10:34:52 -0800 (PST) Message-ID: Subject: Re: RFC:Doing a NFSv4.1/4.2 Kerberized mount without a machine credential From: Trond Myklebust To: Chuck Lever III Cc: Rick Macklem , Linux NFS Mailing List Date: Wed, 04 Jan 2023 13:34:51 -0500 In-Reply-To: <15C694E4-925B-47E6-A054-644A0A142F88@oracle.com> References: <6ed7866da1e57a46da0108e9581242cd7f1ef2ce.camel@kernel.org> <52f00169bb54c082dbffbcbf999c8096cb16d25d.camel@kernel.org> <15C694E4-925B-47E6-A054-644A0A142F88@oracle.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, 2023-01-04 at 18:06 +0000, Chuck Lever III wrote: > > > > On Jan 4, 2023, at 12:25 PM, Trond Myklebust > > wrote: > > > > On Wed, 2023-01-04 at 14:25 +0000, Chuck Lever III wrote: > > > > > > > > > > On Jan 3, 2023, at 11:41 PM, Trond Myklebust > > > > > > > > wrote: > > > > > > > > I've been thinking about how to use a public key infrastructure > > > > to > > > > provide stronger authentication of multiple individual users' > > > > RPC > > > > calls > > > > and multiplexing them across a shared TLS connection. > > > > > > > > Since the client trusts the server through the TLS connection > > > > authentication mechanism, and you have privacy guaranteed by > > > > that > > > > TLS > > > > connection, thenĀ  really all you want to do is for each RPC > > > > call > > > > from > > > > the client to be able to prove that the caller has a specific > > > > valid > > > > identity in the PKI chain of trust. > > > > > > > > So how about just defining a simple credential (AUTH_X509 ?) > > > > containing > > > > a timestamp, and a distinguished name, and have it be signed > > > > using > > > > the > > > > (trusted) private key of the user? Use the timestamp as the > > > > basis > > > > for a > > > > TTL for the credential so that the client+server don't have to > > > > keep > > > > signing a new cred for each and every RPC call for that user, > > > > and > > > > allow > > > > the client to reuse the cred for a while as a shared secret, > > > > once > > > > the > > > > signature has been verified by the server. > > > > > > A laptop typically has a single user. The flexibility of identity > > > multiplexing isn't necessary in this particular scenario. > > > > > > > Yeah, I don't particularly care about laptop use cases. Most > > enterprises set up VPNs for dealing with them because users > > typically > > need access to more services than just a NFS server. > > The trend I've seen is that enterprises are moving their important > services out of from behind VPNs and into the cloud. Each such > service is responsible for providing appropriate levels of > authentication and confidentiality via a single-sign on service > and an in-transit encryption capability. > > > > I am interested in the general problem of authenticating RPC users > > using certificates, since that is becoming more common due to the > > rise > > of S3 object storage and cloud services. While AD and krb5+LDAP can > > be > > extended into those environments too, there are plenty who choose > > not > > to, because PKI is generally sufficient, and can be more flexible. > > We had SPKM. Would that not work? The SPKM spec was withdrawn following review by the IETF security working groups. Reviving it and pushing it again would require addressing those comments. Furthermore, SPKM was always intended as a full blown RPCSEC_GSS mechanism, which seems like overkill for this use case. -- Trond Myklebust Linux NFS client maintainer, Hammerspace trond.myklebust@hammerspace.com