Re: [Anima] which base64 for RFC8366... original!

Michael Richardson <mcr+ietf@sandelman.ca> Wed, 23 October 2019 12:26 UTC

Return-Path: <mcr+ietf@sandelman.ca>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 763801200D8 for <anima@ietfa.amsl.com>; Wed, 23 Oct 2019 05:26:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 YyTMsV8k2kks for <anima@ietfa.amsl.com>; Wed, 23 Oct 2019 05:26:21 -0700 (PDT)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 870601208BE for <anima@ietf.org>; Wed, 23 Oct 2019 05:26:19 -0700 (PDT)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 764FD3897A; Wed, 23 Oct 2019 08:23:44 -0400 (EDT)
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 6C52076D; Wed, 23 Oct 2019 08:26:18 -0400 (EDT)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Carsten Bormann <cabo@tzi.org>
cc: anima@ietf.org
In-Reply-To: <4C61CD6A-EDFB-4521-8811-858085E84BC4@tzi.org>
References: <15459.1571755692@localhost> <4C61CD6A-EDFB-4521-8811-858085E84BC4@tzi.org>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Date: Wed, 23 Oct 2019 08:26:18 -0400
Message-ID: <3016.1571833578@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/q4sxMN_9ZJFC45G-bRBLgjlPtDU>
Subject: Re: [Anima] which base64 for RFC8366... original!
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Oct 2019 12:26:25 -0000

Carsten Bormann <cabo@tzi.org> wrote:
    >> So, why doesn't RFC8366 reference:
    >> https://datatracker.ietf.org/doc/rfc7951/

    > No idea.

    > But then, RFC 8366 says

    > The voucher artifact is a JSON [RFC8259] document that conforms with
    > a data model described by YANG [RFC7950], is encoded using the rules
    > defined in [RFC8259], and is signed using (by default) a CMS
    > structure [RFC5652].

    > which is pretty much devoid of meaning.

Well, it does tell you that the YANG to be serialized.
It whould have reference 7951 though.

    >> I wonder if this is worth an errata clarifying this for RFC8366?

    > Yes, but maybe the WG should decide first what was intended…

I'm an author.... we intended for binary stuff to get base64-encoded, but I
don't think any of us quite understood enough about the different flavours.
I would have preferred that RFC7951 had maybe said that it shall be
base64URL, but that base64 shall be tolerated.
It's irksome because JWS specifies base64URL, and the JSON spec is silent.

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-