Re: [yang-doctors] [OPSAWG] Yangdoctors early review of draft-ietf-opsawg-sbom-access-02

Eliot Lear <lear@lear.ch> Fri, 22 October 2021 12:30 UTC

Return-Path: <lear@lear.ch>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E6A543A0C3A; Fri, 22 Oct 2021 05:30:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.091
X-Spam-Level:
X-Spam-Status: No, score=-2.091 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, SPF_PASS=-0.001, T_SPF_HELO_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=lear.ch
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 3V3vJFvfFlGk; Fri, 22 Oct 2021 05:30:10 -0700 (PDT)
Received: from upstairs.ofcourseimright.com (upstairs.ofcourseimright.com [185.32.222.29]) (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 0B41F3A0C3D; Fri, 22 Oct 2021 05:30:08 -0700 (PDT)
Received: from [IPV6:2001:420:c0c0:1011::1] ([IPv6:2001:420:c0c0:1011:0:0:0:1]) (authenticated bits=0) by upstairs.ofcourseimright.com (8.15.2/8.15.2/Debian-18) with ESMTPSA id 19MCU4Zc1876561 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 22 Oct 2021 14:30:05 +0200
Authentication-Results: upstairs.ofcourseimright.com; dmarc=none (p=none dis=none) header.from=lear.ch
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lear.ch; s=upstairs; t=1634905805; bh=zN8zfzDPcxIjiFlW/O0VNtUzqGfNm0E8H+MVVB5zM5Y=; h=Date:To:Cc:References:From:Subject:In-Reply-To:From; b=lF/giRxGCUdD6e4ep25aRM9FLOZHk5dBac/FGm60Sknu32S3t1rJDmKXH2W0orzkq M1Da2RxzSu5HUumzSB9C7ZfVHaVYj7vGrDXMU5x97AoIzZE18py4c0H/T754azSI0i FEWH9kWkVlKtXL48VK0NaONXAFC28aUUR5LT1KA4=
Message-ID: <dcac8b99-2f56-c819-b1f9-6618b673e9e1@lear.ch>
Date: Fri, 22 Oct 2021 14:30:03 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.0
Content-Language: en-US
To: Ebben Aries <exa@juniper.net>, yang-doctors@ietf.org
Cc: draft-ietf-opsawg-sbom-access.all@ietf.org, opsawg@ietf.org
References: <163321652671.24319.2544349921956875817@ietfa.amsl.com>
From: Eliot Lear <lear@lear.ch>
In-Reply-To: <163321652671.24319.2544349921956875817@ietfa.amsl.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------yXAqGYqkoW3K9pmlKI0GHFIH"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/AL8ww-__u2S2DuG9NE2Sm2PRQ14>
Subject: Re: [yang-doctors] [OPSAWG] Yangdoctors early review of draft-ietf-opsawg-sbom-access-02
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Oct 2021 12:30:16 -0000

Hi Ebben and thanks for your review.  Please see below:

On 03.10.21 01:15, Ebben Aries via Datatracker wrote:
> Reviewer: Ebben Aries
> Review result: Almost Ready
>
> Apologies for not turning this around sooner.  Structure wise, the model is
> fairly sound.  Most of the comments below are either nits/wording, slight
> adjustments and questions/clarifications.
>
> 1 module in this draft:
> - ietf-mud-transparency@2021-07-06.yang
>
> No YANG compiler errors or warnings (pyang 2.5.0, yanglint 2.0.88, confdc 7.2.3.4)
> - L#364: CODE BEGINS : filename must be defined on same line for tools such as
>    rfcstrip to correctly parse the module contents
>
> Module ietf-mud-transparency@2021-07-06.yang:
> - import `ietf-inet-types` should reference RFC 6991 per
>    https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#section-4.7
Corrected.
> - import `ietf-mud` should reference RFC 8520 per
>    https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#section-4.7
Corrected.
> - L#016 - Minor nit: looks like L#17 should be moved up here
Corrected.
> - L#018-020 - Minor nit: adjust email address formatting per
>    https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#appendix-C

Corrected.

> - The type and enum members are identically defined for
>    `sbom-local-well-known` and `vuln-local-well-known`.  Is this something you
>    can leverage by using a typedef or a grouping or is there intention to keep
>    these separately defined?

I think we are removing vuln-local-well-known.

> - When retrieving say an 'sbom' from the device, is it assumed that it be via
>    `sbom-local-well-known`?  What if it is necessary to host this on an
>    alternate port for one of the communication protocols chosen?  Would this
>    scenario then best use `sbom-url` to define a static URI? (Same question
>    applies to vuln as well)

We truly hadn't considered this aspect, but I think you would be right: 
best to use sbom-url.  Alternatively we could add an optional port 
parameter.

> - Independent of the answer to the above question, is `cloud` the best choice
>    or wording for the other case statement under the retrieval method choices?

Pick something better?

>
>    It seems to be that we have 3 cases for sbom/vuln retrieval methods which
>    correspond to the draft wording at L#176-180 which seems to not pair
>    identically.
>
>    * on devices themselves: Could be /.well-known/ or a static URI could it
>      not?
.well-known.  The issue is this: management systems may well query 
.well-known without ever referring to this model.
>    * on a website: Static URI only
Correct.
>    * out-of-band: Static URI only - should this leaf be named something closer
>      to that vs. 'contact'?

I think contact covers this appropriately.


>
> General comments on the draft/modules:
> - L#0021: s/provide access this/provide access to this/
Corrected.
> - L#0117: s/bills of material/bill of materials/
Both need an s.
> - L#0627: JSON example needs correct prefix for the augment
>    `ietf-mud-transparency:transparency`
Will correct in the tooling that generated this.
> - L#0941: s/not be/not been/
Corrected.
> - L#0961: s/authoration/authorization/
Corrected.
> - Since `ietf-mud-transparency` imports `ietf-inet-types`, a normative
>    reference must be added per
>    https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#section-3.9


Done


And thanks!


Eliot