From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Adamson, Dros" <Weston.Adamson@netapp.com>
Cc: linux-nfs list <linux-nfs@vger.kernel.org>
Subject: Re: SP4_MACH_CRED
Date: Thu, 1 Aug 2013 14:35:59 -0400 [thread overview]
Message-ID: <20130801183559.GA17581@fieldses.org> (raw)
In-Reply-To: <88EAD768-768D-43A3-8E4D-D9B904C0283C@netapp.com>
On Thu, Aug 01, 2013 at 03:24:05PM +0000, Adamson, Dros wrote:
>
> On Aug 1, 2013, at 10:56 AM, J. Bruce Fields <bfields@fieldses.org> wrote:
>
> > On Thu, Aug 01, 2013 at 02:09:49PM +0000, Adamson, Dros wrote:
> >>
> >> On Aug 1, 2013, at 10:03 AM, "Adamson, Dros" <Weston.Adamson@netapp.com>
> >> wrote:
> >>
> >>>
> >>> On Jul 31, 2013, at 7:48 PM, J. Bruce Fields <bfields@fieldses.org> wrote:
> >>>
> >>>> On Wed, Jul 31, 2013 at 10:22:22PM +0000, Adamson, Dros wrote:
> >>>>>
> >>>>> On Jul 31, 2013, at 5:39 PM, "J. Bruce Fields" <bfields@fieldses.org>
> >>>>> wrote:
> >>>>>
> >>>>>> This should probably be cc'd to the mailing list.
> >>>>>
> >>>>> Agreed!
> >>>>>
> >>>>>>
> >>>>>> On Wed, Jul 31, 2013 at 09:25:29PM +0000, Adamson, Dros wrote:
> >>>>>>> I have a pretty functional client-side SP4_MACH_CRED implementation
> >>>>>>> and I'm trying to implement the server side so I can fully test the
> >>>>>>> client code. I was testing against another server, but that didn't
> >>>>>>> implement any useful set of operations other than the required ones.
> >>>>>>
> >>>>>> The latest Linux server implements SP4_MACH_CRED but only for the
> >>>>>> required operations. (But that hasn't really been tested--any testing
> >>>>>> even to make sure that basic stuff works would be welcomed.)
> >>>>>>
> >>>>>
> >>>>> Right, I'm happy to report that the initial implementation of the required operations seems to work with (at least) one small patch I'll send your way soon.
> >
> > (And I think I forgot to say thanks here! It's useful to have that
> > tested.)
>
> I should note it's somewhat useless to use SP4_MACH_CRED in this way from the linux client's perspective. We already use the machine cred with krb5i if possible for state manager ops even in SP4_NONE mode.
Without SP4_MACH_CRED anyone can e.g. destroy your client using just
auth_sys.
On its own all the use of krb5i really does is reassure you that your
rpc replies are from the server.
> > - user credentials go away before they're expected to expire.
> > (I wonder how this would typically happen?)
>
> I don't believe this can happen yet. IIRC a kdestroy isn't noticed by
> gssd, but this is probably going to change soon with Andy's keyring
> work, so it'd be nice to plan for it.
Yes. I wonder if you could also take advantage of Andy's expiring-cred
emergency mode here? So when you get the kdestroy notification, you
could try to flush writes before destroying contexts.
--b.
next prev parent reply other threads:[~2013-08-01 18:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <A0A1021A-64E6-4E0C-89A5-9F719C8E1AFC@netapp.com>
[not found] ` <20130731213904.GB2668@fieldses.org>
2013-07-31 22:22 ` SP4_MACH_CRED Adamson, Dros
2013-07-31 23:48 ` SP4_MACH_CRED J. Bruce Fields
2013-08-01 14:03 ` SP4_MACH_CRED Adamson, Dros
2013-08-01 14:09 ` SP4_MACH_CRED Adamson, Dros
2013-08-01 14:56 ` SP4_MACH_CRED J. Bruce Fields
2013-08-01 15:24 ` SP4_MACH_CRED Adamson, Dros
2013-08-01 18:35 ` J. Bruce Fields [this message]
2013-08-01 19:05 ` SP4_MACH_CRED J. Bruce Fields
2013-08-02 16:56 ` SP4_MACH_CRED Adamson, Dros
2013-08-02 15:32 ` SP4_MACH_CRED J. Bruce Fields
2013-08-02 16:51 ` SP4_MACH_CRED Adamson, Dros
2013-08-02 18:29 ` SP4_MACH_CRED J. Bruce Fields
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=20130801183559.GA17581@fieldses.org \
--to=bfields@fieldses.org \
--cc=Weston.Adamson@netapp.com \
--cc=linux-nfs@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.