Re: [nfsv4] Path forward for flex-files

Benjamin Kaduk <kaduk@mit.edu> Tue, 08 August 2017 00:25 UTC

Return-Path: <kaduk@mit.edu>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0E95A131D1E for <nfsv4@ietfa.amsl.com>; Mon, 7 Aug 2017 17:25:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87gTOZprZeNx for <nfsv4@ietfa.amsl.com>; Mon, 7 Aug 2017 17:25:54 -0700 (PDT)
Received: from dmz-mailsec-scanner-3.mit.edu (dmz-mailsec-scanner-3.mit.edu [18.9.25.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 732CE131CEA for <nfsv4@ietf.org>; Mon, 7 Aug 2017 17:25:54 -0700 (PDT)
X-AuditID: 1209190e-041ff70000000db6-c7-598905110f60
Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id 93.50.03510.11509895; Mon, 7 Aug 2017 20:25:53 -0400 (EDT)
Received: from outgoing.mit.edu (OUTGOING-AUTH-1.MIT.EDU [18.9.28.11]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id v780PpeL014912; Mon, 7 Aug 2017 20:25:52 -0400
Received: from kduck.kaduk.org (24-107-191-124.dhcp.stls.mo.charter.com [24.107.191.124]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id v780PmxM009051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 7 Aug 2017 20:25:51 -0400
Date: Mon, 07 Aug 2017 19:25:48 -0500
From: Benjamin Kaduk <kaduk@mit.edu>
To: Rick Macklem <rmacklem@uoguelph.ca>
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>, Thomas Haynes <loghyr@primarydata.com>
Message-ID: <20170808002548.GO70977@kduck.kaduk.org>
References: <YTXPR01MB01898B5A88D647118989E5CEDDB50@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM> <20170807232925.GK70977@kduck.kaduk.org> <YTXPR01MB018927D36EFE43FBC06A136ADD8A0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <YTXPR01MB018927D36EFE43FBC06A136ADD8A0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>
User-Agent: Mutt/1.8.3 (2017-05-23)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMIsWRmVeSWpSXmKPExsUixCmqrCvI2hlpsK1Z0GL5nq3sFrPfP2K1 eLjsGpMDs8eSJT+ZPObPlfP4vXkvUwBzFJdNSmpOZllqkb5dAlfGvgNbWQq+cFXs+P6JvYHx LUcXIweHhICJxPXHeV2MXBxCAouZJDoPNrNBOBsYJbb9X80E4Vxhkrh24C9rFyMnB4uAisTW rlVsIDYbkN3QfZkZxBYRUJfYvLofzGYW8JW48fgamC0sYCCx7/h+NpBtvEDbbv/whJh5i1Fi T9M7RpAaXgFBiZMzn7BA9GpJ3Pj3kgmknllAWmL5Pw6QMKdArETTvu9gI0UFlCXm7VvFNoFR YBaS7llIumchdC9gZF7FKJuSW6Wbm5iZU5yarFucnJiXl1qka6yXm1mil5pSuokRHLaSfDsY JzV4H2IU4GBU4uFlyOyIFGJNLCuuzD3EKMnBpCTKy7kFKMSXlJ9SmZFYnBFfVJqTWnyIUYKD WUmE14WlM1KINyWxsiq1KB8mJc3BoiTOK67RGCEkkJ5YkpqdmlqQWgSTleHgUJLg5QNpFCxK TU+tSMvMKUFIM3FwggznARr+khlkeHFBYm5xZjpE/hSjopQ4rw1IswBIIqM0D64XlFYksvfX vGIUB3pFmHcqSDsPMCXBdb8CGswENPhNYivI4JJEhJRUA6PjCm+VgzJZZ3tP6he17hRk9FrA UFYzfyOXo4Pkh2mTHBW+shu+nVC6vXtzvNIOpXNp4iGprue9biSbBWx/sXdfxf62Q9FnF7+d vPxn+Y3aR+kXSqdMqtrx1lW0ONbK+nKyQ9ebzFi+6Z/fPDhfzKCYu1d0q8aMjBtHGDQFk+dv 0LQ1XPHh2EolluKMREMt5qLiRAAZwdM7BgMAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/3so6XFSXmfC5K79HhDGe1mPpTeQ>
Subject: Re: [nfsv4] Path forward for flex-files
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 08 Aug 2017 00:25:56 -0000

On Tue, Aug 08, 2017 at 12:20:26AM +0000, Rick Macklem wrote:
> Benjamin Kaduk wrote:
> [stuff snipped]
> > The solution space looks rather different whether the synthetic principals
> > are actually being created/deleted on the KDC or synthesized using the
> > data server's keytab.
> I'm not sure what you are thinking of w.r.t. synthesized using the data server's keytab,
> but I am curious?

A service ticket is "just" some DER-encoded data encrypted+MAC'd in a symmetric
key shared between the KDC and the service principal (in the simple case).
When the service application receives a service ticket along with the client's
request, the service knows that the ticket came from the KDC because the
MAC verifies, generating/verifying the MAC requires that symmetric shared
key, and the service knows that it didn't generate the ticket itself.
Note the logical leap at the end -- it's assumed from the KDC because the
KDC is the only other party that's supposed to have the key material.
But really, anyone with the right key can encode the right data and encrypt+MAC
it using that key -- this allows one to print a ticket to onesself that
claims to be for a client principal that does not even exist in the
KDC's database.

We use this "ticket printing" technique in AFS for server-to-server
communications, and it's exposed to some maintenance tools as well.

-Ben