From: Trond Myklebust <trondmy@kernel.org>
To: Chuck Lever III <chuck.lever@oracle.com>
Cc: Rick Macklem <rick.macklem@gmail.com>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: RFC:Doing a NFSv4.1/4.2 Kerberized mount without a machine credential
Date: Wed, 04 Jan 2023 13:34:51 -0500 [thread overview]
Message-ID: <e617a14573851ca7710b99249653c952e0f901fa.camel@kernel.org> (raw)
In-Reply-To: <15C694E4-925B-47E6-A054-644A0A142F88@oracle.com>
On Wed, 2023-01-04 at 18:06 +0000, Chuck Lever III wrote:
>
>
> > On Jan 4, 2023, at 12:25 PM, Trond Myklebust <trondmy@kernel.org>
> > wrote:
> >
> > On Wed, 2023-01-04 at 14:25 +0000, Chuck Lever III wrote:
> > >
> > >
> > > > On Jan 3, 2023, at 11:41 PM, Trond Myklebust
> > > > <trondmy@kernel.org>
> > > > 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
next prev parent reply other threads:[~2023-01-04 18:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-04 1:28 RFC:Doing a NFSv4.1/4.2 Kerberized mount without a machine credential Rick Macklem
2023-01-04 2:12 ` Trond Myklebust
2023-01-04 3:16 ` Rick Macklem
2023-01-04 4:41 ` Trond Myklebust
2023-01-04 14:25 ` Chuck Lever III
2023-01-04 15:32 ` Rick Macklem
2023-01-04 17:25 ` Trond Myklebust
2023-01-04 18:06 ` Chuck Lever III
2023-01-04 18:34 ` Trond Myklebust [this message]
2023-01-04 18:34 ` Olga Kornievskaia
2023-01-04 18:51 ` Trond Myklebust
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=e617a14573851ca7710b99249653c952e0f901fa.camel@kernel.org \
--to=trondmy@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=rick.macklem@gmail.com \
/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