Re: [Cacao] [EXT] Re: [EXT] RE: Charter

Bret Jordan <jordan.ietf@gmail.com> Thu, 20 June 2019 13:21 UTC

Return-Path: <jordan.ietf@gmail.com>
X-Original-To: cacao@ietfa.amsl.com
Delivered-To: cacao@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4EE1C120045 for <cacao@ietfa.amsl.com>; Thu, 20 Jun 2019 06:21:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 07kQvnfaMHkN for <cacao@ietfa.amsl.com>; Thu, 20 Jun 2019 06:21:44 -0700 (PDT)
Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 A60C712000E for <cacao@ietf.org>; Thu, 20 Jun 2019 06:21:43 -0700 (PDT)
Received: by mail-wm1-x336.google.com with SMTP id c6so3183041wml.0 for <cacao@ietf.org>; Thu, 20 Jun 2019 06:21:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=gofj7JyXgunsO5palTn26WUcqPge8G3nyB88XYrVNJ8=; b=cko0L+n5GFtK3+AqMpiWHJWgL8zcblPpVSFp4Voln4JC1iE6w9ud5O9CT/wnot4dLV ezr5F/edZO5a6Wi6fJMIV/xgsT2DDNs9L29X5OjxowAlM1pDiiZNHW2vyfsX8btH9fXq pOEzkiSIsJGHPtjh/9jqXqqpqY740Qycds3ZE6sxlxodQzhCZ3X3KQ3JS8tn+ca4PbcE 1niXg61Lo0w+unMye6GvTBcBQFIa1IW0pFIBwh+V3QrylHXuA+ei9BXWgfBFktTvNAoa oV8Dz/laUOBV9ogc8xhRx3vuzRbP4mv0VHnp8ZTT9Mma01XM8l3j8MPWpw/uiZvAl15M AnZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=gofj7JyXgunsO5palTn26WUcqPge8G3nyB88XYrVNJ8=; b=BFb0PvnU68GyK4FOfvgy3ahaYzN6iHyLrvOHUBRdpnwEyJ5V0az3PeHgrcwxz6XAZX 33irXWNy5ZNIbKeioHNKKfGjTKgZGvQ45H4BVw4wxffB+CK3ZRxnkTov/MuUW/FN0sJR B/IxAasSH8dqXZN6LzQFSem/45FEW94eNe+ipv61c8BeO8I/lylmYZqDXVNM37AYtoUf XZNmndUgpztzeTl+kaMhc332Z0s2R7ZS2K1We8b1AakKqLS4zBdb14f76Ua9OFxirdKv AUfsxSF62iIVHVIYQnnmRrJ+wQvGyIjfdiDfo14Ft0+UPW/dSxkJ+xoQXiEgGLIfsVo4 E6XQ==
X-Gm-Message-State: APjAAAVQZNvDMcp+amaS5ya8gWs2LmiScjDQGAN/FyByS0RO272uWodi idqNoj+TDC7x6cvTU4ACxb+MDpVv
X-Google-Smtp-Source: APXvYqwZFCwgLWt2q66tGYTzG2AbwL7NqQ2RnXCO0B20OLp31vR3fuOt0UCiGMcVoNuVIlZY/dAa/g==
X-Received: by 2002:a1c:f20f:: with SMTP id s15mr2782233wmc.33.1561036902038; Thu, 20 Jun 2019 06:21:42 -0700 (PDT)
Received: from [172.28.4.156] ([195.238.226.2]) by smtp.gmail.com with ESMTPSA id d5sm14989592wrc.17.2019.06.20.06.21.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 06:21:41 -0700 (PDT)
From: Bret Jordan <jordan.ietf@gmail.com>
Message-Id: <176EB100-0215-4D18-B876-7BBE6E8C9C97@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_7404A78C-4E6E-41C8-9D3E-5315DF91BE60"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Thu, 20 Jun 2019 15:21:38 +0200
In-Reply-To: <36FFCE0A-5BE2-4582-B101-8532D1930AAF@tzi.org>
Cc: "cacao@ietf.org" <cacao@ietf.org>
To: Carsten Bormann <cabo@tzi.org>
References: <BYAPR16MB30133C3DAF3CF2060CE4B565EDEA0@BYAPR16MB3013.namprd16.prod.outlook.com> <787AE7BB302AE849A7480A190F8B93302EAA890F@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <BYAPR16MB30137AC9C00633E80C7C8D65EDEA0@BYAPR16MB3013.namprd16.prod.outlook.com> <779CCF55-FABB-4BA1-9D84-1D9761A32944@tzi.org> <BYAPR16MB30139D44233E0256099264DCEDEA0@BYAPR16MB3013.namprd16.prod.outlook.com> <25088b69-1225-3f3c-b0e2-38e25f1f48fb@article19.org> <A7038D6C-C1C3-4B6A-B928-AC87F7A87AFC@gmail.com> <6130.1560896363@dooku.sandelman.ca> <634A811D-3674-42ED-A46F-9CDD8EFD5CEE@symantec.com> <787AE7BB302AE849A7480A190F8B93302EAA8FE0@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <B29832F6-8239-498C-A65D-A22B70A4A691@gmail.com> <787AE7BB302AE849A7480A190F8B93302EAA905B@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <05E3F9C3-20C6-47E4-9B68-DE9D81D9C358@lookingglasscyber.com> <787AE7BB302AE849A7480A190F8B93302EAA917C@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <92A6388D-ED3D-4B77-BA01-AE97E201681F@symantec.com> <787AE7BB302AE849A7480A190F8B93302EAA91C9@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <A8E5A7FB-F771-477C-90E5-4E2DE4FA69E6@gmail.com> <787AE7BB302AE849A7480A190F8B93302EAA9CD5@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <3DF37C63-B813-4D7E-8AD0-0BF038899E34@gmail.com> <36FFCE0A-5BE2-4582-B101-8532D1930AAF@tzi.org>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cacao/DALBC4xLSI8SFhn-g8qwlFY0Ghg>
Subject: Re: [Cacao] [EXT] Re: [EXT] RE: Charter
X-BeenThere: cacao@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Collaborative Automated Course of Action Operations <cacao.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cacao>, <mailto:cacao-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cacao/>
List-Post: <mailto:cacao@ietf.org>
List-Help: <mailto:cacao-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cacao>, <mailto:cacao-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Jun 2019 13:21:46 -0000

In regards to the timestamp, please understand I was just giving an example, not _actual_ spec text. I could see us defining a “timestamp” type and then saying that the “timestamp” type is an ISO 8601 / RFC 3339 timestamp that follows some very specific rules.  Just as an example.  Then in the property tables we should use “timestamp” instead of “strings”.  

I am not against also building a CDDL definition for this in an appendix or separate document.  But as of yet CDDL is not used en mass and there are not very many tools (other than your really cool ruby tools).  So for now it would be best to use property tables since that is what people understand today.


Thanks,
Bret
PGP Fingerprint: 63B4 FC53 680A 6B7D 1447  F2C0 74F8 ACAE 7415 0050
"Without cryptography vihv vivc ce xhrnrw, however, the only thing that can not be unscrambled is an egg."

> On Jun 20, 2019, at 2:44 PM, Carsten Bormann <cabo@tzi.org> wrote:
> 
> On Jun 20, 2019, at 14:06, Bret Jordan <jordan.ietf@gmail.com> wrote:
>> 
>> The data model will consist of a series of property tables that are defined using JSON data types. 
> 
> JSON does not define that many data types (copied exactly from RFC 8259:
>   3.  Values  . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
>   4.  Objects . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
>   5.  Arrays  . . . . . . . . . . . . . . . . . . . . . . . . . . .   7
>   6.  Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . .   7
>   7.  Strings . . . . . . . . . . . . . . . . . . . . . . . . . . .   8
> “Values” includes the “three literal names” false, null, and true beyond the other four).
> 
> The example you just gave already shows that this is a bit limited:
> 
>> Example:
>> 
>> Property Name              | Type    | Description 
>> name (required)            | string  | The name of this action 
>> created (required)         | string  | The time that this action was created in RFC 3339
>> sequence_number (optional) | integer | The number ….. 
> 
> There is no such thing as an integer in JSON, so that is your own extension (JSON only has numbers).  If you think integers in JSON are a thing, you’ll be unpleasantly surprised at some point (the large number of surprises in this space led to RFC 7493).
> 
> Also, you seem to feel a need to qualify the second string as “RFC 3339”, which pollutes the “description” column with type information.
> (And what you wrote is very inexact, compare with “format described by the `date-time` production in {{RFC3339}}, as refined by Section 3.3 of {{RFC4287}}”, which is what turned out we needed to write in a similar context.)
> 
> If you want to stick with tables instead of machine-readable form, I’m not going to argue against that right now(*).
> I would still propose that you at least define the types used in these tables in a more well-defined way.  (RFC 8610 would work just about right for me here, but my point is more general: you want to have more structured information about the types employed, and you don’t want to mix it in, in an uncontrolled way, into the description.)
> 
> Grüße, Carsten
> 
> (*) In the long run, you will generate these tables from machine readable form.  
> But this discussion isn’t at that level of detail right now…
>