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

Joseph Salowey <joe@salowey.net> Fri, 21 June 2019 02:58 UTC

Return-Path: <joe@salowey.net>
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 5ABCD12012A for <cacao@ietfa.amsl.com>; Thu, 20 Jun 2019 19:58:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=salowey-net.20150623.gappssmtp.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 0MiTyuUGYtp0 for <cacao@ietfa.amsl.com>; Thu, 20 Jun 2019 19:58:06 -0700 (PDT)
Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 8854C120026 for <cacao@ietf.org>; Thu, 20 Jun 2019 19:58:06 -0700 (PDT)
Received: by mail-qt1-x82f.google.com with SMTP id j19so5425491qtr.12 for <cacao@ietf.org>; Thu, 20 Jun 2019 19:58:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salowey-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ipRG0cC70ZhI+LGAVf6ixjU5NhhCcq7tq5LyR2HTH+E=; b=tYCt5bD2+lzwu79jcHd2T2K6qjPmRgs2VHlRhrdeg86mt8I4bXKtRF2kas5UHEDCja OoxQK6vLhILGt6hVm+rtccTYMNc8QRiNb3bsmeAwAQUKGhPJH+WQQMxKUmB1VIbxoneY 7rfhyL4IRQt/H+wHqAv6UrRZjKjp5SKpNRhOFjkJydhZL2evotIoRjfJ1gscfY68ChAF FjCANJaxWYclmFYQLYPa4F//6zkEqkfF/slrL+nRgzmiRxGsOKTvDyTeY2kcCg5cufra /dj1BnkwGMSsCUZfcrRz/xCgHHzFRQy1vDZ/mZtwX3IjIJMwl51mTC9ELK9PMZz9zamZ GT6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ipRG0cC70ZhI+LGAVf6ixjU5NhhCcq7tq5LyR2HTH+E=; b=otUKMu34fhM2XRljVu+kKELJBJJ/Z9l9LnBB/0jR/oLLqI8dfuIOiDoTcGG9DlxGZ+ WLXB1q1iB+WCwsapUxTIiRC7Nm7jBTA6PlCtUTUjnNep088MqZqEbVb8EacA5cxQ9WBQ R9OwdpzEYf8RvSQuFtl1bDESk4nxMct+pUOIyDNoA+5uR/hunorJ/cIgOYmASkcxbMnj fj8IQOUqPqMOzPI/XtwiRd4cn0gG+LOdSIunKbygOpEAux7Dq8dpPiAFNG0a4p87chel TNQuwz0KFj5Z2ovwGwm8SCmFQfERZbO+55wvxgv3Htn0SzAsXbtAHalD6y+MDmPO0JwJ QQtQ==
X-Gm-Message-State: APjAAAUDLiJ+NMC+V28vZ4RKKLOPDproSxfOmhK0RMua+rhiE2iP4TCH uZ6wZj2TIcmPKG9jiW7Zi5QFguXtjgvozkyjbdJ0tA==
X-Google-Smtp-Source: APXvYqwbwQ2prDpOdRvQ6koQ2DbwQujUTr68N5qAsqgZ/w+t+2G1cAFJ4RFPLcP/raPm8ISNlHuzlejE9zq0mPGrrDg=
X-Received: by 2002:ac8:30a4:: with SMTP id v33mr117592547qta.249.1561085885413; Thu, 20 Jun 2019 19:58:05 -0700 (PDT)
MIME-Version: 1.0
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> <176EB100-0215-4D18-B876-7BBE6E8C9C97@gmail.com>
In-Reply-To: <176EB100-0215-4D18-B876-7BBE6E8C9C97@gmail.com>
From: Joseph Salowey <joe@salowey.net>
Date: Thu, 20 Jun 2019 19:57:54 -0700
Message-ID: <CAOgPGoATx3VyM_P2y41QG6f1T8OMDUy5264sG+B_H9-TcUeajw@mail.gmail.com>
To: Bret Jordan <jordan.ietf@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, "cacao@ietf.org" <cacao@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000aa0d21058bcca179"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cacao/9lyWQNskUMiJlSMNcRXcBxYxu6g>
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: Fri, 21 Jun 2019 02:58:10 -0000

I think the intent is that the playbook is communicated is in JSON format
because format is this common to many of the tools and protocols in this
domain.  When we get to the point of specifying actions it seems that
action types in another native format such as yang could be represented in
the other native format and encapsulated within the JSON playbook.

On Thu, Jun 20, 2019 at 6:21 AM Bret Jordan <jordan.ietf@gmail.com> wrote:

> 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…
>
>
> --
> Cacao mailing list
> Cacao@ietf.org
> https://www.ietf.org/mailman/listinfo/cacao
>