Re: [stir] Alexey Melnikov's Discuss on draft-ietf-stir-certificates-11: (with DISCUSS and COMMENT)

Sean Turner <sean@sn3rd.com> Tue, 01 November 2016 15:15 UTC

Return-Path: <sean@sn3rd.com>
X-Original-To: stir@ietfa.amsl.com
Delivered-To: stir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3990C129A9D for <stir@ietfa.amsl.com>; Tue, 1 Nov 2016 08:15:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sn3rd.com
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 5ubkVWrui0RL for <stir@ietfa.amsl.com>; Tue, 1 Nov 2016 08:15:05 -0700 (PDT)
Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 117A512995E for <stir@ietf.org>; Tue, 1 Nov 2016 08:15:05 -0700 (PDT)
Received: by mail-qk0-x231.google.com with SMTP id o68so203016515qkf.3 for <stir@ietf.org>; Tue, 01 Nov 2016 08:15:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sn3rd.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=04fw47eihFvGZkdwcEUpFjF0X6BR0I0aOmblECoAOi4=; b=JwW+JsiMqSEY0CJX9SyxwR/33kLdpVCxDnumS6aV4oIqDCDurSCDT0F7e8X619lj8N LuBb33dfxPV3z/ZS/d8VmSL/knOGA+TWqFIEACpRYyrYv1mAP7xd2oIqguy+/ZgQsdEM ETuu4raEd+k81NAAx975MocFhB9IMy4dBDL3s=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=04fw47eihFvGZkdwcEUpFjF0X6BR0I0aOmblECoAOi4=; b=QfTqvUPZE+z5eTNJOUN0srH6tJ+9ffxMO0kYawf/QiwAlZbHXpCTE9K0bMGLegCE9P 4wqVuwFkfGNt+uXIvEqiv1CGE40Gnroqn2iBCOWIpPF4jgbwgsxSLMJkqogPmeozLAO7 v5nod4Enbv+hYfJUOlSUyaevVAtiNRLwmmLJ+/ouVslpyBSp+8HNgeb384sE3Y23q9pj ApT4vvoZKqDgpAZxoUQqg+cKhziDbhmcKUFlLgQXYdI2bNFXLpiONuWmOn/8lo8+MgyN kUa9I4kVloS81c5QwlAhG6JWS5nUtPl/wHGmjkV9Wo/eVpPZvbrq3VkHwBpvc0PV4Is6 TRZg==
X-Gm-Message-State: ABUngvdeVe8WoH8hrFC7CppZ2BsdB3elCDJ2rIyZFJqkzp4sLDk4MsLM+07UlDrMidQGLg==
X-Received: by 10.55.166.77 with SMTP id p74mr29080385qke.113.1478013304140; Tue, 01 Nov 2016 08:15:04 -0700 (PDT)
Received: from [172.16.0.92] ([96.231.230.70]) by smtp.gmail.com with ESMTPSA id u44sm16013699qtu.5.2016.11.01.08.15.02 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Nov 2016 08:15:03 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Sean Turner <sean@sn3rd.com>
In-Reply-To: <147800730286.23932.1515952198717955239.idtracker@ietfa.amsl.com>
Date: Tue, 01 Nov 2016 11:15:01 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <BE53511C-3C37-4C94-8C01-681EB413C670@sn3rd.com>
References: <147800730286.23932.1515952198717955239.idtracker@ietfa.amsl.com>
To: Alexey Melnikov <aamelnikov@fastmail.fm>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/stir/jttF0IQFkArKukvUmUCZruzX830>
Cc: draft-ietf-stir-certificates@ietf.org, stir-chairs@ietf.org, The IESG <iesg@ietf.org>, stir@ietf.org, Robert Sparks <rjsparks@nostrum.com>
Subject: Re: [stir] Alexey Melnikov's Discuss on draft-ietf-stir-certificates-11: (with DISCUSS and COMMENT)
X-BeenThere: stir@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Secure Telephone Identity Revisited <stir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stir>, <mailto:stir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stir/>
List-Post: <mailto:stir@ietf.org>
List-Help: <mailto:stir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stir>, <mailto:stir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Nov 2016 15:15:20 -0000

> On Nov 01, 2016, at 09:35, Alexey Melnikov <aamelnikov@fastmail.fm> wrote:
> 
> Alexey Melnikov has entered the following ballot position for
> draft-ietf-stir-certificates-11: Discuss
> 
> When responding, please keep the subject line intact and reply to all
> email addresses included in the To and CC lines. (Feel free to cut this
> introductory paragraph, however.)
> 
> 
> Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
> for more information about IESG DISCUSS and COMMENT positions.
> 
> 
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-stir-certificates/
> 
> 
> 
> ----------------------------------------------------------------------
> DISCUSS:
> ----------------------------------------------------------------------
> 
> I have one small issue that I would like to discuss before recommending
> approval of this document:
> 
> Reading Section 8 I was unable to figure out what are "claim",
> "permitted" and "excluded" and what exact syntaxes they use. I think this
> is underspecified.
> You are probably missing some references, examples or both.

From s5.1:

   The public key in the certificate is used to validate the signature
   on a JSON Web Token (JWT) [RFC7519] that conforms to the conventions
   specified in PASSporT [I-D.ietf-stir-passport].  This specification
   supports constraints on the JWT claims, which allows the CA to
   differentiate those enrolled from proof-of-possession versus
   delegation.

the JWT claims for STIR are found in s5 of [I-D.ietf-stir-passport].  We define our own but also use some existing ones so we could add a reference as follows to clear this up:

   …, This specification
   supports constraints on the JWT claims [I-D.ietf-stir-passport],
   which allows the CA to differentiate those enrolled from
   proof-of-possession versus delegation.

Permitted and excluded are in s8 (they’re just IA5Strings):

JWTClaimConstraint ::= SEQUENCE {
      claim IA5String,
->      permitted [1] SEQUENCE OF IA5String OPTIONAL,
->      excluded  [2] SEQUENCE OF IA5String OPTIONAL }
       ( WITH COMPONENTS { ..., permitted PRESENT } |
       WITH COMPONENTS { ..., excluded PRESENT } )

These are analogous to the permitted and excluded name and policy constraints in X.509/RFC 5280.

spt

> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
> 
> URI (RFC 3986), HTTP (RFC 7230) and HTTPS (RFC 2818) need to be Normative
> References.
> 
>