Re: [Cfrg] [jose] RFC Draft: PASETO - Platform-Agnotic SEcurity TOkens

Vladimir Dzhuvinov <vladimir@connect2id.com> Fri, 20 April 2018 11:14 UTC

Return-Path: <vladimir@connect2id.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3F821129C51 for <cfrg@ietfa.amsl.com>; Fri, 20 Apr 2018 04:14:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.879
X-Spam-Level:
X-Spam-Status: No, score=-0.879 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no 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 HqMlOrDYwsPZ for <cfrg@ietfa.amsl.com>; Fri, 20 Apr 2018 04:14:49 -0700 (PDT)
Received: from p3plsmtpa11-02.prod.phx3.secureserver.net (p3plsmtpa11-02.prod.phx3.secureserver.net [68.178.252.103]) (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 17F0C1241F8 for <cfrg@ietf.org>; Fri, 20 Apr 2018 04:14:49 -0700 (PDT)
Received: from [192.168.0.107] ([78.130.190.73]) by :SMTPAUTH: with SMTP id 9U05fPYyUErAG9U07fTS4i; Fri, 20 Apr 2018 04:14:48 -0700
Cc: cfrg@ietf.org, jose@ietf.org
References: <CAKws9z15m6WY+-mz5D01vxB4s-TE7nQN56=ssYt=vz3z4gAj6A@mail.gmail.com> <DBC2F048-C949-4362-8FD0-A43A54767B03@gmail.com>
From: Vladimir Dzhuvinov <vladimir@connect2id.com>
Organization: Connect2id Ltd.
Message-ID: <6e37c5eb-32e9-3739-3b1a-fec91e6a01fa@connect2id.com>
Date: Fri, 20 Apr 2018 14:14:44 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <DBC2F048-C949-4362-8FD0-A43A54767B03@gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
X-CMAE-Envelope: MS4wfB83sR8F9kTAFwAZPkIgMQlUaSsh95A1hzbvRF6nCe8wzpiGSSe90AsEJ4yJq8kDlDswOkE4JPndPMSh3DlNE4Z6mOscWQ/T1rKEnGIK+0OaYdgkikIU ZAGavFX6BAT4IFJpI1gG8wqIEDbt1ZDV1c3YGasNqN3hFC5iqrhfP+iwVJ9TkzsSB6GopzSAR9tvuQ==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/OSslEKdG8whOcgF6HNpomjDe0ZI>
Subject: Re: [Cfrg] [jose] RFC Draft: PASETO - Platform-Agnotic SEcurity TOkens
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Apr 2018 11:14:50 -0000

On 20/04/18 01:03, Neil Madden wrote:
> 2. Moving the “alg” and “enc” headers out of JWE/JWS and instead into JWK so that is the key that determines the algorithm not the message.
Developers letting the "alg" header alone drive JWS / JWE processing is
the most glaring mistake I keep seeing. JOSE library maintainers can
possibly help here, by hiding the "alg" header from developers :)

We took a similar measure with "alg":"none", by giving those JOSE
objects a different class than JWS (for type safety) which cannot be
validated.

Vladimir