Re: [OPSAWG] WG LC for draft-ietf-opsawg-sdi-02

Warren Kumari <warren@kumari.net> Thu, 05 March 2020 00:07 UTC

Return-Path: <warren@kumari.net>
X-Original-To: opsawg@ietfa.amsl.com
Delivered-To: opsawg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80B173A0C97 for <opsawg@ietfa.amsl.com>; Wed, 4 Mar 2020 16:07:42 -0800 (PST)
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, 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=kumari-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 nGWPnDJKnTKH for <opsawg@ietfa.amsl.com>; Wed, 4 Mar 2020 16:07:40 -0800 (PST)
Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 48A823A0C95 for <opsawg@ietf.org>; Wed, 4 Mar 2020 16:07:40 -0800 (PST)
Received: by mail-qt1-x82a.google.com with SMTP id x21so2793857qto.13 for <opsawg@ietf.org>; Wed, 04 Mar 2020 16:07:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kumari-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BBNX4jH9E34EMBmaA1heSpyH5CdsKjjXJk16aTtb+QM=; b=rNauVPq7Cf6hFZQ6fX/lF2eQISjoeH4blfmHFc5qAZZzT2gcR5ARGiPeptb/nTkg4Z WqA5pTtrvG+j1k7nLDSDG94v9oxn8/+ZzrkbW/Ffphykmxh/RdVSg/J2iefixVxoU8UE veQxiaiDNyeSTlm1kl8xvmCStFgr1XsJDJNPJZ6kk5Yv/CVj42MZb270uQyHHt5ARQpE rNHr3DmgB0UsUKXAtoUnPN0sYkuAit6ykyox+QDPk0cJ5VIRwHd/wnpFYPHHF+w2KIuT oKPcig2tQshChN7ScaxEysvXmjwB+3Y7efwHwsey+BN2u7R6qEG7PTUGERbYw0YWAdfm cEDw==
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=BBNX4jH9E34EMBmaA1heSpyH5CdsKjjXJk16aTtb+QM=; b=mqGhS37Wg5Ggqbl+jnCt6ko/xAXwOhUsUtHra/zC5+iHsqUqHvguurMa/bbQj03uMn ACfQsIgFX43ursjRZYz+6crdZJb5MFIMFoucB7Id9KfU+Y6Hlrs6+6xCwntVoxpZQJVo 8oCxmbIHiZWLZX9ERbjIqU4juf2eE7xRgOCqspp7Wj491FB0dnAYbHZf5agax4RQa8wh 1NgNgeC66lGsS3Hdi+Ahin+Kx9q8UGDPpJo/sP9S0HIdv2DO672Rasz4WgVLfRUODzq5 /b3BePfwX943Ic+UI6gZ6ofvrqrSLZ1k2SuRNfxx75gr0mtCb0dn8q05YDQNhmYhHfo2 sWdw==
X-Gm-Message-State: ANhLgQ3mZO+s9lve5g6XG6JuxzZcyuJs5Ou6B+nOkSW85fg1R00OWXIs M7Cxdrw/JGW1mxwqpbrq3y3FWhNADByHlZ5tRVbXfw==
X-Google-Smtp-Source: ADFU+vvtN2Qp+vhbuiDc0g1H87CePnZYoqy5uzInt7Q+MxwrT4c1dFtsiMYSSHuWsPafdbVKAokIjpDna5/qXMSsLNk=
X-Received: by 2002:ac8:1e90:: with SMTP id c16mr4777204qtm.265.1583366858891; Wed, 04 Mar 2020 16:07:38 -0800 (PST)
MIME-Version: 1.0
References: <BE7A5042-266D-4E49-B528-34896063D7D1@cisco.com> <EDB29364-70AB-4287-8E76-8AA7A45D6698@cisco.com> <CAHw9_iJ--tAU5DBToFpmBVF3MgZShD=co=n6Pi9x+Chf4gYvGw@mail.gmail.com> <928C1D65-70D8-4AC2-9EEC-91E27655F87B@cisco.com>
In-Reply-To: <928C1D65-70D8-4AC2-9EEC-91E27655F87B@cisco.com>
From: Warren Kumari <warren@kumari.net>
Date: Wed, 04 Mar 2020 19:07:02 -0500
Message-ID: <CAHw9_i+V42341KTwZS+bKjVW_XXj7iAYJJVcZuzFGAAcYxjgqw@mail.gmail.com>
To: "Joe Clarke (jclarke)" <jclarke@cisco.com>
Cc: opsawg <opsawg@ietf.org>, "draft-ietf-opsawg-sdi@ietf.org" <draft-ietf-opsawg-sdi@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002c74ba05a0105339"
Archived-At: <https://mailarchive.ietf.org/arch/msg/opsawg/blFiEGYEhZwSUQiwD2wV31pjPXQ>
Subject: Re: [OPSAWG] WG LC for draft-ietf-opsawg-sdi-02
X-BeenThere: opsawg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: OPSA Working Group Mail List <opsawg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/opsawg>, <mailto:opsawg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/opsawg/>
List-Post: <mailto:opsawg@ietf.org>
List-Help: <mailto:opsawg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/opsawg>, <mailto:opsawg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Mar 2020 00:07:43 -0000

Apologies for the delay in responding, I was traveling and then got
sidetracked into other things.


On Tue, Feb 11, 2020 at 4:40 PM Joe Clarke (jclarke) <jclarke@cisco.com>
wrote:

>
>
> On Feb 11, 2020, at 15:41, Warren Kumari <warren@kumari.net> wrote:
>
> On Tue, Feb 11, 2020 at 10:19 AM Joe Clarke (jclarke) <jclarke@cisco.com>
> wrote:
>
>
> As a contributor, I think this document is mostly ready (and as previously
> stated, I like and support the work).  That said, after another read I
> found a few spelling nits and some comments:
>
> In Section 2, you paint the picture of a scenario, but “break the fourth
> wall” to explain what is existing and what is new functionality as well as
> state that the document prescribes using the SN as the unique identifier.
> In the spirit of a scenario with additional context, I think you should
> clarify that the DHCP boot of an out-of-the-box device is _typically_
> existing functionality.  Some vendors’ devices may not do this.
>
>
> Good point. I have just submitted a new version which I think
> addresses this (and your other comments below) -- I broke section 2
> ("Overview / Example Scenario") into 2 sections, "Overview" and
> "Example Scenario". This required moving some text around, but I think
> addresses your concern (and improves the document).
>
>
> Thanks.  I like these changes.
>

Yay!



>
> Yes -- unfortunately there doesn't seem to be any sort of standard way
> to add a comment device configs - these all work on different devices:
> # I'm a comment
> ! I'm also a comment
> ; Yet another comment format
> : This is getting silly
> ' Ugh, who thought apostrophes was a sane comment character?!
>
>
> I was actually thinking about the opposite.  Could your encrypted blob
> have a header?  Like a PEM encoded certificate has "-----BEGIN
> CERTIFICATE——“.  This way if you have that, you try to decrypt, else you
> assume a regular config.
>

Ah, I has misunderstood, see below.



>
> How about some text along the lines of: "Unfortunately there is no
> standard way to identify if a config file has been successfully
> decrypted, as different vendors use different configuration languages,
> with different forms of comments, etc.
> It is recommended that each vendor documents a standard header or
> magic which devices can use to determine if the configuration seems
> largely correct.
> As an example, Cisco IOS configuration files use the '!' character as
> a comment, and so Cisco IOS files could be expected to start with
> something like '! This is a Cisco IOS configuration file'. Juniper
> Network's JunOS uses '#' as a comment character, and so Juniper could
> adopt the convention of using '## JunOS device configuration file' (or
> some other string, to be chosen and documented by the vendor)."
>
> Note that I have *not* included this is the newly posted version yet,
> as I think it needs some polishing...
>
>
> Sure.  This text works as a means to know if decryption works.  But (and I
> haven’t tried this), if I point IOS to just some random bytes via option
> 150, I think it will try to load it (I know that some file extensions like
> .tcl and .py will be considered).  So you might not need to worry so much
> about what if decryption works as to know what should be attempted to be
> decrypted.
>

So, I've added some text saying the vendors could do things like use a
specific file extension (e.g if the file ends in .enc, it is encrypted),
have a magic string header, or use a different DHCP options -- these are
much better options than what I originally had (try parse, and if that
doesn't work, try decrypt).
Thank you, this has significantly improved the document / mechanism.

W



>
> Joe
>


-- 
I don't think the execution is relevant when it was obviously a bad idea in
the first place.
This is like putting rabid weasels in your pants, and later expressing
regret at having chosen those particular rabid weasels and that pair of
pants.
   ---maf