Re: [I2nsf] [secdir] (updated) review of draft-ietf-i2nsf-capability-data-model-21

tom petch <daedulus@btconnect.com> Fri, 28 January 2022 12:48 UTC

Return-Path: <daedulus@btconnect.com>
X-Original-To: i2nsf@ietfa.amsl.com
Delivered-To: i2nsf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 845E83A11A9; Fri, 28 Jan 2022 04:48:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.615
X-Spam-Level:
X-Spam-Status: No, score=-2.615 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.714, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.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 TuIe4mna-7yW; Fri, 28 Jan 2022 04:48:16 -0800 (PST)
Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00123.outbound.protection.outlook.com [40.107.0.123]) (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 80F3C3A11A7; Fri, 28 Jan 2022 04:48:12 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lEmaTEMX2VyMtctC/hEPrlyuElgGaIdv4V92Mg5jQreu2p3uzqDaYBLjZJkz093MRQluQLUU4GhEK11lp+AkBb/ExLX7XCA+NHnNZcTkJt87xbqkqoyhgUZm5BsNbNw+eFpr5SixMuw2eU29MM7IjHBZCslIoAG1EBcsMMmSaHaezY8/WBs6EYZHk348Vdpk4CFbFdXmXic3XR5wVsfaeB9DyG+GcjkK5jJ1NqsGmTcV5tauGoII/ZQPEKhCRaK3Fp30vOMw4xCi/CfLIV2KTLnPrCjqliaw3/8GeKVfustgJzharFs1FxWVfNqNYpE9KM1d5dVSqqwEKS3Bp61MOA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KbI7quVXTCjksWxhmEw2mGR65YXRltJNcKxJYB2cgh4=; b=e2Ees6StZk6sRvHhwKSAw9Z7RdTYHPWx/JW+3cEoaVVg7K6OoUQXhMbW5wBf0uhLcXykmjqifbaybDsmOGxBGVzTBlVkGS3Sw5LObu5Ne0t+iZVUe2rcr1EiGNj33gkGumqBdgh9svQS/apbXna2Wl+odq4iOCdOnmswggEdPUaSRiyfMJhw0kINBiZjbZVMwllJ/okzz8bVZV4pqit9e7zN06EvuNURP7qdYZkU6A+ixIzHew1PgFiWrMj8G/rzrCPgjHrKhqmXWQuCBVsH8Vu8P3vH3erduIwbzR4Swe3AkoJ3e7m9G8SDSg8Xm36GDXrccp2klvipG2/lqV3CSA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KbI7quVXTCjksWxhmEw2mGR65YXRltJNcKxJYB2cgh4=; b=bxfP+uDpzBC4rgW3TIeIcRAGB5CY7A78pEqff3R7Qxr1z8fuDGOggkonyS9MBufiGeBRixJ1cnAgkUJc/b108kPsl9PYRVJHn5GQ7TdIYYl15k2O+GWHblWhnh5wgxDomI933VzndW9jUmDve8Nk/2MP6f+AO78VZj3NgYGPQ/k=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=btconnect.com;
Received: from VI1PR07MB6704.eurprd07.prod.outlook.com (2603:10a6:800:18b::8) by VI1PR07MB3870.eurprd07.prod.outlook.com (2603:10a6:803:35::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.6; Fri, 28 Jan 2022 12:48:09 +0000
Received: from VI1PR07MB6704.eurprd07.prod.outlook.com ([fe80::1040:a0b:e4e1:f512]) by VI1PR07MB6704.eurprd07.prod.outlook.com ([fe80::1040:a0b:e4e1:f512%5]) with mapi id 15.20.4951.006; Fri, 28 Jan 2022 12:48:09 +0000
To: "Mr. Jaehoon Paul Jeong" <jaehoon.paul@gmail.com>, Paul Wouters <paul@nohats.ca>, Roman Danyliw <rdd@cert.org>
References: <fcaa5588-26bd-30b3-7317-76757e7842b0@nohats.ca> <BN2P110MB110792B379DA9145A92F095FDC4C9@BN2P110MB1107.NAMP110.PROD.OUTLOOK.COM> <CAPK2DezGQTe4STexApmpf3-PBRex0+Z_rxbOPTSj1fwVDcqQgg@mail.gmail.com>
Cc: "draft-ietf-i2nsf-capability-data-model@ietf.org" <draft-ietf-i2nsf-capability-data-model@ietf.org>, last-call@ietf.org, "i2nsf@ietf.org" <i2nsf@ietf.org>, JungSoo Park <pjs@etri.re.kr>, Yunchul Choi <cyc79@etri.re.kr>, skku-iotlab-members <skku-iotlab-members@googlegroups.com>
From: tom petch <daedulus@btconnect.com>
Message-ID: <61F3E604.4060201@btconnect.com>
Date: Fri, 28 Jan 2022 12:48:04 +0000
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
In-Reply-To: <CAPK2DezGQTe4STexApmpf3-PBRex0+Z_rxbOPTSj1fwVDcqQgg@mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: LO4P123CA0113.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:192::10) To VI1PR07MB6704.eurprd07.prod.outlook.com (2603:10a6:800:18b::8)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 2cc192f0-25a3-47c3-7012-08d9e25c6fa0
X-MS-TrafficTypeDiagnostic: VI1PR07MB3870:EE_
X-Microsoft-Antispam-PRVS: <VI1PR07MB38702CD64D285754AE48509FC6229@VI1PR07MB3870.eurprd07.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 9J5YIu7RItCbaimgQTNxa6HZjk1FMzOgU7H+XKfaazzx7UQcBQIZ/VsegIsxZY9mAsQQDZXr88xJTfNsHnT+izKM6Gn0bn938/s+BcI/gJ51HGSpbIxDbKO/DX+RLwtFRFkddZ1msHMg2Ftv8bUlWAjnZyijgB9Dk2e7kPKf8jhtQH9T13o4kG0zidb6f+0w5RTBrfM165EMJyZK5RKzGj4XU9HUmii85q70CMfU7KRgm3MmzKF1/pPWmqBjwdRdiBCPSaG1zgqEO0moJ4XwHatyPPllNYChShxzKnxcdhTVqMGTUN2IwhhHycxJo2sqGIybAoq6JYENbUBPXLTORRpTOA/CCwSBp+2fb0ItXT8M51hTC1V+Rg103/oLRI08hrC+gL5ShyxsKZxbGR3lYeuDJfmWZl0O4VvPFl2mpZVIKv7n8ToLOIAoTlgQKSAMG844lQaBvjHRv8qRg1CavP7vLOSQ/ZkE7x9+1xmuwFGdJxnfOi9olloRCEn+0E1VN4d11eMuAHE2dMgF51i2TdA8XhZ4aHiROy5dXM+2QrbstOilh3y628Rziat5WfrZsX3obh+xNvMQdoJXSOIsgHSZlqqhWP06yB4ISrYI7Xmd65AceP6F8d9fEep/fwK2J6TcupNj81YUYa5M9IfzEGaE6rVrh3LW8h7l21o41xC8msZtHAF7DIg8uV3uWXYiFP8CD3Kpmsgcq4eFsJpbshTCOxaJwQxhtRNHwMBn99rszMnNc1Kh1eg7vE93aI0hCqhr9y5iscEXscH0//BVxIv0RKCx1RsHGWaW6RX4Qw9Va9oojhqYEYtChj0VyUxh
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR07MB6704.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(966005)(6486002)(66476007)(86362001)(66556008)(8936002)(2906002)(4326008)(66946007)(8676002)(33656002)(66574015)(38100700002)(38350700002)(15650500001)(82960400001)(83380400001)(316002)(110136005)(508600001)(54906003)(30864003)(6512007)(6506007)(87266011)(2616005)(52116002)(5660300002)(53546011)(36756003)(6666004)(26005)(186003)(20210929001); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: QbPrqgpQzArJ7vH6dxoSbkZdXksiRHjcRgji4Di0GQqU3G1hlVP5R9baz3FhNwArmHkY5nj0l9DUeOlnxF7Qybigrmu/thyPbza3VYjDCVuHdQVIP2sxLENTwN3E5wxKjsOTJfGx4O+AwA+s2I6cjfn1d5thRN69hkK01e6gepxsaJNQd5kc8n+mP2CueuFSlfpDK+wBW+HjOQutEKMeDjoCtdNHwNYYDLkrvlZaLrWNl6v0bwsyKep7fUbu0VE8itXGbUW372UFhA+olwIT4n656fnDZOYhlShfzZ9UzfpovsR5UJ8y2wl6ZbpeUtM36cqsrYbhPNDrA0SLj7tjTf493AKYG5OiPDlzmOeu729MfNTy8w5fsLPTxVGmvGZUcvFzx7y8Y9QXheto3b5s5HBEorM0g09C2uAvwhoFSiiKX4Um7GHE9iYzvzbIHXQskJB5d6WkK5LuCaeFNdy6FAZpuSblWAdCKMhuX/Rz+Sv7QWzt7OTKSI7pV/y2hvsOdB/N7L17fiUssJb30SBYXIEbYtXaTV9fXD9cDlrVVIJhjZBoRIrZA9tT9lmT9LPM4vSSb0cIZwwskHTqNIWz7jxXXVcOxYQUbcTM49xSbnqUJErWrW1RASQEjDqJurff1BS8O6ShDV/j4MvpYZfuOOcBUC5Fpadg8eNlXdlB/hPejUAZwnkN0IzdFCkROJmsmN62RMi/vPKnZW/Bhr3weYkCk5DXLtVlDoD+QoQtSCVA4W7a0svVYm00YX6QabL6vaF4S0cMwwvCwxqCBscf7YZLMvMGb2uu5tkzm8nHgoLvaE96gPInFMhy0wKMc+Pz6qP1AoZZWN9m/0sIGN2yXdZ4Y4GKkXGsZIlZYqZ1lkIT4Q/DfwvuY3GkYvZsHp6HISFrybzi/x1Y2qJejEB8Q4kjx+X1iKWGIqJIrz9RUgXonriAWGaXIHo2AZrOBMUWi9Pl9Bvq8Yh0eCemRX7Al+zOWew5s05Utx8Fsb1UyOS1UqhtVZebQArD1i5g33U9XWj5pXAgBEpgwYHlP4pPA3M7XKVedPUqCy2Ffr/hpyQhNdszLNITfydnMSJYXrP6A4Ja8qWVzcSefzJWcjxkZ2zbzMXw1YzLU2OFdTjPww1F8uB1B9m8qNiK9FVLT7SWdaI/eEDVaPkidJ8y9MqIxKF9LzpA7XwGlffHtYQXcPeqDdgwRf9YmtttvPzt4QjRfEEJKn6lR3bdfw7CxjZ9OYSjHJQva2gqFO2YcPbJgIT4UrnZq0jI3LypuEPpwD+8EDUgBpg+QNfQaadGvzhk/isC98cteF+F3DZv6m69G+r5g8nIPO7GPaNyHOWX9nmMQgo0qx0Asmvzw0yNEyAIAu12BrZGqSutw3AA5Monv4lAiQ4eJiHSJby38mIpZwB5RHJrSWfAYcwAB8kXg23qN+mpCrU74/b00Q7oKyhA4oS2gwIN4BP2dwaBFJSA50uPpUiplv9jh+vYdJYYtkTvOQvzERVokabT+Elkrwk4EzdOfnwdPtJ6oEVssPQYn8eG8ImxIUA1dJX0VphB8l89YOfZhQw1pwfOrrTKoHjzoFgqGK9rMFJ1Rox+9BzH/a26IxmHirPhbni4hQ1VvuQMB7WF1fSJgz8GoF525mHzAeE=
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 2cc192f0-25a3-47c3-7012-08d9e25c6fa0
X-MS-Exchange-CrossTenant-AuthSource: VI1PR07MB6704.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2022 12:48:08.9945 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 5CHEmJiy6AG6WCkfq4Vll0cLHLBRWHSOpXnb6ftTgTUiNXNOXncj0+wDK2oMxJjjPcgRCfJsIHHs2rOoQAs8aA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB3870
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2nsf/-2AghgyN9YdHap4_YdYUleDKv4Q>
Subject: Re: [I2nsf] [secdir] (updated) review of draft-ietf-i2nsf-capability-data-model-21
X-BeenThere: i2nsf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "*I2NSF: Interface to Network Security Functions mailing list*" <i2nsf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/i2nsf>, <mailto:i2nsf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/i2nsf/>
List-Post: <mailto:i2nsf@ietf.org>
List-Help: <mailto:i2nsf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/i2nsf>, <mailto:i2nsf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2022 12:48:21 -0000

I see that this is scheduled for a IESG Telechat 3feb22 which may 
influence the appropriate action.

The various ...art reviews have introduced a number of changes to this
and other I2NSF I-D with the effect of introducing inconsistencies.

Thus 'nsf-facing' now has expanded description clauses (which I have yet
to read) for many YANG identity.  These may help the ...art reviwer but
'i2nsf-capability-data-model' has the identical YANG identity 
definitions without the description clauses; and as an AD said recently 
of another I-D, it is not always helpful to reproduce technical details 
as opposed to referencing them - the former introduces the risk of 
inconsistencies!

More technically, 'capability' adds a new action 'reject' something
which the authors of RFC8329 did not consider but as RFC8329 says 'such
as' for its list of actions that probably caters for it.   However,
where the possible actions are listed in YANG description clauses of
'capability', 'reject' does not appear (and should IMHO).

'capability' now has actions of pass, drop, reject,  mirror, rate-limit;
RFC8329 has pass, drop, rate  limiting, and mirroring in some contexts, 
but 'deny' instead of 'drop in others.

The treatment of length is much changed and I struggle to get my mind 
around it.  RFC 8329 specifies 'length' for
IPV4 header and IPv6 header; strictly the terminology is wrong; RFC791
has total length, RFC8200 has payload length. 'capability' has the one
field, 'total length', although the description explains how to 
interpret this for IPv6.  'nsf-facing' now imports its treatment of 
network and transport protocols from RFC8519. RFC8329 specifes that NSF 
'should include the matching criteria specified by [ACL-YANG]' ie
RFC8519 (which would be great if if had done so a year or two ago rather
than after Last Call).  This means that 'nsf-facing' uses 'length' and
'ihl' for IPv4 and just 'length' for IPv6.  Mapping these to fields in
'capability' is an exercise for the reader!

There is similar dissonance wtih TCP and UDP.  Here, RFC793 has 'data
offset', which is the header length counted in words, while RFC768 has
'length', counted in octet.  RFC8329 does not mention length as a
capability match for either UDP or TCP AFAICT.  'capability'  has 
'length' for both TCP and UDP with the description explaining the 
details and the differing units.  'nsf-monitoring' imports from RFC8519 
again which means  'data-offset' for TCP and 'length'  for UDP.

In nsf-facing, 'geography-location' has become 'geographic-location';
'capability still uses 'geography.

In passing, the TLP in the YANG module is out of date and the references 
to 'nsf-monitoring' do not use the precise title thereof,
missing out an 'interface'

Tom Petch






On 22/01/2022 08:43, Mr. Jaehoon Paul Jeong wrote:
> Hi Paul, Roman, and Tom,
> Here is the revision of NSF Capability Draft:
> https://datatracker.ietf.org/doc/html/draft-ietf-i2nsf-capability-data-model-22
>
> The revision letter is attached to explain how we have addressed your
> comments on the revision.
>
> Patrick and I have addressed all of your comments.
>
> If you are satisfied with the revision, let's move forward.
> Otherwise, please let me know further improvements.
>
> Thanks.
>
> Best Regards,
> Paul
>
>
> On Fri, Jan 7, 2022 at 7:54 AM Roman Danyliw <rdd@cert.org> wrote:
>
>> Hi Paul!
>> (adding I2NSF and document alias like an official response to a
>> directorate review)
>>
>> Thanks for this review.  A response below and the authors/WG can correct
>> me.
>>
>>> -----Original Message-----
>>> From: secdir <secdir-bounces@ietf.org> On Behalf Of Paul Wouters
>>> Sent: Monday, November 29, 2021 4:06 PM
>>> To: secdir <secdir@ietf.org>
>>> Subject: [secdir] (updated) review of
>> draft-ietf-i2nsf-capability-data-model-21
>>>
>>>
>>> Note to tools team: I was assigned
>> draft-ietf-i2nsf-capability-data-model,
>>> although I had already reviewed the -16 version. I did a review now of
>> the -21
>>> version but did not see a way within datatracker to update the review.
>> So I
>>> opted to use the secdir mailing list for now.
>>>
>>> Paul
>>>
>>>
>>>
>>> I have reviewed this document as part of the security directorate's
>> ongoing
>>> effort to review all IETF documents being processed by the IESG.  These
>>> comments were written primarily for the benefit of the security area
>> directors.
>>> Document editors and WG chairs should treat these comments just like any
>>> other last call comments.
>>>
>>> The summary of the review is Has Issues
>>>
>>> I have reviewed the document. I don't have any particular security
>> concerns,
>>> and the Security Considerations section is fine. I do have some
>> questions/issues
>>> from reading the document.
>>>
>>>
>>> I am a bit confused about this part:
>>>
>>>           |  |  +--rw ipv4-capability*       identityref
>>>           |  |  +--rw ipv6-capability*       identityref
>>>           |  |  +--rw icmpv4-capability*     identityref
>>>           |  |  +--rw icmpv6-capability*     identityref
>>>           |  |  +--rw tcp-capability*        identityref
>>>           |  |  +--rw udp-capability*        identityref
>>>
>>> There is an item for v4 and v6 support. Why is there a split of icmpv4
>> and
>>> icmpv6?
>>> Why isn't that done similarly to tcp and udp that don't have v4/v6
>> versions?
>>
>> This modeling choice was made because ICMPv4 and ICMPv6 are not the same
>> protocol.  TCP and UDP are the same protocol regardless of whether they are
>> using IPv4 or v6.
>>
>>> This term seems to be rather generic:
>>>
>>>           |  |  +--rw url-capability*                    identityref
>>>
>>> Perhaps what is meant is url-filtering-capability or
>> url-protection-capability ?
>>
>> I'll leave it up to the WG to decide if they want to scope it as such.
>>
>>> It also seems rw advanced-nsf-capabilities is really either "rw
>> protection-nsf-
>>> capabilities" or "rw filtering-nsf-capabilities" ? It seems "advanced"
>> is a very
>>> generic term? It could be useful to allow for further
>> non-filter/non-protective
>>> options, but it does seem right now this "advanced" category really means
>>> some kind of "client protection" category.
>>
>> There is a history in the naming convention of advanced vs.
>> generic-nsf-capabilities.  Advanced capabilities were initially extension
>> points discussed in other documents.  After refinement, the work didn't
>> evolve this way.  The WG has discussed and modified this convention, and
>> arrived at roughly the explanation documented in Section 5.1:
>>
>> ==[ snip ]==
>>     In this
>>     document, two kinds of condition capabilities are used to classify
>>     different capabilities of NSFs such as generic-nsf-capabilities and
>>     advanced-nsf-capabilities.  First, the generic-nsf-capabilities
>>     define NSFs that operate on packet header for layer 2 (i.e., Ethernet
>>     capability), layer 3 (i.e., IPv4 capability, IPv6 capability, ICMPv4
>>     capability, and ICMPv6 capability.), and layer 4 (i.e., TCP
>>     capability, UDP capability, SCTP capability, and DCCP capability).
>>     Second, the advanced-nsf-capabilities define NSFs that operate on
>>     features different from the generic-nsf-capabilities, e.g., the
>>     payload, cross flow state, application layer, traffic statistics,
>>     network behavior, etc.  This document defines the advanced-nsf into
>>     two categories such as content-security-control and attack-
>>     mitigation-control.
>> ==[ snip ]==
>>
>>
>>> Similarly, "rw target-capabilities" might be better descriped as "rw
>> destination-
>>> capabilities"
>>> to avoid confusing about this being a "targetting system" or the client
>> being
>>> "targetted".
>>
>> I can see your point.  "target" is used in place of "destination" in a few
>> places.  This seems editorial and I'd leave it up to the WG to decide.
>>
>>> I also find "rw action-capabilities" confusing. Isn't "anti-virus" and
>> "anti-ddos"
>>> also an action capability ? Or should I read this as a condition of
>> "anti-virus"
>>> kind activate an action capability (filter in, filter out, log).
>>
>> It's the latter.  Consider Example 5 of Section A.5 which depicts the
>> interrelationship between <anti-ddos-capability> and the
>> <action-capabilities>.
>>
>>> It also seems the
>>> selector (eg "anti-virus") is coupled to an action (eg "block") so I'm a
>> bit
>>> confused on why there is no capability link between these. Eg having
>> "filtering"
>>> as a capability seems related to some conditionals, but perhaps not all.
>> So I am
>>> not sure if the current model could describe that. Eg lets say there is
>> a packet
>>> filter, not but no filter based on anti-virus but it can detect
>> anti-virus. How
>>> would one know from these capabilities that anti-virus has "filter" and
>> not only
>>> "log" ?
>>
>> For your antivirus configuration there might be something like the
>> following:
>>
>> <condition-capabilities>
>>     <advanced-nsf-capabilities>
>>     <anti-virus-capability>detect</anti-virus-capability>
>> ...
>> <action-capabilities>
>> ...
>>       <egress-action-capability>drop</ingress-action-capability>
>>
>>> And "rw generic-nsf-capabilities" seems to be more like "rw
>> transport-nsf-
>>> capabilities"
>>
>> See explanation above on generic vs. advanced-capabilities
>>
>>> There are many email contacts listed in Section 6. These will not stand
>> the
>>> passing of time.
>>> Why are they needed? Should there be an IANA registry/contact instead ?
>>
>> Not question this contact information will age.  However, it seems to be
>> common convention to include all of the document authors in the YANG
>> contact information.
>>
>>> the identity targets include base target-device which only has a
>> description
>>> field. So all these identity targets _only_ have a description. Is the
>> presense of
>>> an empty identity entry enough to indicate this support, or is some kind
>> of
>>> boolean field needed?
>>
>> Thoughts from WG?
>>
>>> identity flags is only about TCP. Should it be called tcp-flags (like
>> tcp-options) ?
>>> Similar issue with identity total-length, verification-tag, identity
>> chunk-type and
>>> service-code.
>>
>> Seems like there should be consistency or an approach either way as to
>> whether the protocol name is a prefix to a field name.  I'll leave it to
>> the authors to decide on the approach.
>>
>>> I see identity for pop3 and imap. Does that include pop3s and imaps
>> (version of
>>> those protocols over TLS). If so, should it be clarified in the
>> description text? If
>>> not, do we need seperate identity types for these?
>>
>> I think the intent is for two identities: POP3+POP3S and IMAP+IMAPS, but
>> I'll let the WG make the right change.
>>
>>> I see identities for pass, drop, mirror and rate-limit, but not for
>> reject (eg send
>>> an ICMP back)
>>
>> Paul: Makes sense to me to add it in with your explanation.
>> WG: What do you think?  I believe "reject" was in -05, but removed in -06
>> after the first AD review (
>> https://mailarchive.ietf.org/arch/msg/i2nsf/Qkup2tKpVyAcelxy3QooLf7P1KI/)
>> pointed out that all of these identities were undocumented.
>>
>>> Security Considerations Section:
>>>
>>>        The lowest layer of RESTCONF protocol layers
>>>        MUST use HTTP over Transport Layer Security (TLS), that is, HTTPS
>>>        [RFC7230][RFC8446] as a secure transport layer.
>>>
>>> This excludes QUIC? Perhaps it is better to say use an encrypted and
>>> authenticated transport layer, such as TLS or QUIC using HTTPS.
>>
>> This text is a derivative of the standard YANG boiler plate text included
>> in most YANG document recently in recent years.  The working source is kept
>> at https://trac.ietf.org/trac/ops/wiki/yang-security-guidelines.
>>
>>> I am a little confused at Example 3. It shows:
>>>
>>> It's only capability is "user-defined". It's only actions are
>> "ingress/egree options
>>> that do pass/drop/mirror. Where does it state this is a web filter
>> capability ?
>>
>> It's a web-filter capability because of "<url-capability>".
>>
>> "user-defined" is a specific type of URL-filter whose list is generated by
>> the operator:
>>
>>       identity user-defined {
>>         base url-filtering;
>>         description
>>           "Identity for user-defined URL Database condition capability.
>>            that allows a users manual addition of URLs for URL
>>            filtering.";
>>       }
>>
>>
>>> And does it really mean the web URI and content can be
>>> passed/dropped/mirrored? It feels like these pass/drop/mirror targets
>> are for
>>> packets, not web-uri streams ?
>>
>> The semantics are definitely reused from packet focused behavior.  For
>> security mitigation devices that operate on streams
>> pass/drop/mirror/log/etc are common actions though.
>>
>>> And should these actions not be inside the capability <url-capability> ?
>>
>> The YANG module design is modeled on the premise that each part of the
>> E-C-A rule is a separate top-level container per Section 3.1.  That
>> certainly does remove flexibility but was a design choice.
>>
>>> What if
>>> you define an NSF that has url-capability and a packet filter
>> capability, how
>>> would one know the pass/mirror/drop targets are for the url-capability
>> ot the
>>> packet filter capability ?
>>>
>>> Maybe, one of the examples can include an NSF with multiple conditions
>> and
>>> actions that don't fully overlap?
>>
>> WG thoughts?
>>
>>> NITS
>>
>> [...]
>>
>> Thanks.  Leaving to the authors.
>>
>> Regards,
>> Roman
>>
>> _______________________________________________
>> I2nsf mailing list
>> I2nsf@ietf.org
>> https://www.ietf.org/mailman/listinfo/i2nsf
>>
>
>
>
> _______________________________________________
> I2nsf mailing list
> I2nsf@ietf.org
> https://www.ietf.org/mailman/listinfo/i2nsf
>