Re: [netmod] Alternative approach to draft-ma-netmod-immutable-flag-00

Balázs Lengyel <balazs.lengyel@ericsson.com> Thu, 24 March 2022 17:14 UTC

Return-Path: <balazs.lengyel@ericsson.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6DB633A1159 for <netmod@ietfa.amsl.com>; Thu, 24 Mar 2022 10:14:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.01
X-Spam-Level:
X-Spam-Status: No, score=-7.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 BCzH3Fuzhdc7 for <netmod@ietfa.amsl.com>; Thu, 24 Mar 2022 10:14:48 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::62b]) (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 D4DB73A109E for <netmod@ietf.org>; Thu, 24 Mar 2022 10:14:46 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i44XORzzRznt4yE7gXCKGS8fDbkH6huWzvAjluIh5KGllhcOqAnV6KZub0qoHelAEddU9Zyi1ineSvKaZAdlYX0+qaaFPAC1Ppx4/iUEgD9hzYceU2ysDZrH4tO8zVhahYy2eJiXqzHcu6xIgDfs5D0ReqSDormQ+d8xRazy7JGLPxtDd1okqcRiLnQ1CP4voF8GeC5PAvFtPUTGZElVmoWQWujYFY/lnMG+A8SWqLrPoGtIBPgii9mBpHEW9dznhV9ZPAKy6g0sO+l7uZvqHnmypxteKHGj257r/Y1MaZlDIV1UxMZfAMx5c4OVnWzlU0SOb1zzq4aDk0HmEyYaqA==
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=S3lC5nJjOlTjiHBVj37tduPCF4g+4NRLU1KfZ9BLyZU=; b=m1/GNYiNIa1/m1oPwZBZLq/CuU1NVsmWFmUdyfRtC7PbiyuGUg0LD9YS5stRYkfLPJMcEXy05McBfx88C+NHA0XAOyK8jQQP9I+gvuIrj1ofEx1PDNDtbIGYGg1LE7EsGDLfZxaq9JvVON1EyO94YH4UIlS+HMLvP3azdykJO/jSeuZVGmzn1WIJfUNceY3+lES8XcTDcavqzYqmE7mJqhD3uUMll9SsUsrfcjQNEbPyAn9dollvq5WhtVWMK1w/ol4h+SW6YQiFNBwTb76nZUCRbmUz1Rdk/yF6Q6h/qf6fsbWPTL2H11wap0UW/6yuit+fRHTkALvpN8VlCh/gDQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S3lC5nJjOlTjiHBVj37tduPCF4g+4NRLU1KfZ9BLyZU=; b=XtuvwtLUMXgA2n9wTr60T/+/ErjgPlofQVT39cp15sdP0GVVngoAJUtbvKmYRj1QQdKLogSIEummHOdrdCantRe1/HFBz0FaWw4FutveZYzBSgOH6TNnMH09daQ/wPcI7oHaTxyVLzXlAorVIN3NZHQBEVjbYdUKiVkPLdxJBxc=
Received: from VI1PR0701MB2351.eurprd07.prod.outlook.com (2603:10a6:800:6b::18) by PR3PR07MB6604.eurprd07.prod.outlook.com (2603:10a6:102:64::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.11; Thu, 24 Mar 2022 17:14:42 +0000
Received: from VI1PR0701MB2351.eurprd07.prod.outlook.com ([fe80::c540:395c:7164:f9d2]) by VI1PR0701MB2351.eurprd07.prod.outlook.com ([fe80::c540:395c:7164:f9d2%6]) with mapi id 15.20.5123.008; Thu, 24 Mar 2022 17:14:42 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: "maqiufang (A)" <maqiufang1=40huawei.com@dmarc.ietf.org>, Andy Bierman <andy@yumaworks.com>
CC: Kent Watsen <kent+ietf@watsen.net>, NETMOD Group <netmod@ietf.org>
Thread-Topic: [netmod] Alternative approach to draft-ma-netmod-immutable-flag-00
Thread-Index: AQHYPvIQIDcZg301ck2evcS37rlEr6zNduPAgAAGLYCAAAfisIAAFGKAgAD+BgCAABHLcA==
Date: Thu, 24 Mar 2022 17:14:39 +0000
Message-ID: <VI1PR0701MB23511241EC49157C4910BA0BF0199@VI1PR0701MB2351.eurprd07.prod.outlook.com>
References: <CABCOCHRqZgCfH0j5XnEt0aK0fwVCaxe_aSHCAZn3jb0QLrDuKw@mail.gmail.com> <VI1PR0701MB2351A430BA5F2EEFE96CE094F0189@VI1PR0701MB2351.eurprd07.prod.outlook.com> <CABCOCHSY6CN7Xf05RtTF0jm1S6gLd1umr5BtG3pkkeCBu47Jyw@mail.gmail.com> <VI1PR0701MB23518B3F1FB9EE3EE32C9FDAF0189@VI1PR0701MB2351.eurprd07.prod.outlook.com> <CABCOCHT5D3=cZR=f86FiCQ48=1Enqwi+-eyR3Y-xSE37_cyvzA@mail.gmail.com> <4fb3a9ab84744c42bc54084903f94ba5@huawei.com>
In-Reply-To: <4fb3a9ab84744c42bc54084903f94ba5@huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1476cc20-b7c6-420f-f898-08da0db9c937
x-ms-traffictypediagnostic: PR3PR07MB6604:EE_
x-microsoft-antispam-prvs: <PR3PR07MB6604F4C5232A3A4E657106B2F0199@PR3PR07MB6604.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: HKSD05Tl3DyaCRGtiRgQVe0J9MLZF6FSAWQxOgy8Z0X75M9s+g5p4ffWemPMxuZkPup28E7gYsUU7fAPGxlcTb6PUH1Q0ziQi5lzdJu4DZYBeghPcAy3Vwwnu9zlfwfEpRC1+z1o90EeA/INrOpet0XbgB2lcl8bG7FVS7wPehRQ7csrldaYM8OjAne6qlvEt+EX9+nn830zTKZQvFxay5R/JNxJCiDaS0k624xBr0O6hJ3tOsSN87q+14kzpn76HS9AUlTGU6rUjCHnzwTUW/erGBNK38tAFHDbly9q4GqYEewi/y8eAyfwUlZzb+fHQXovBA8n/u+MHqfvEplQcuRdBJ6TuEQEgdHuwgqxuODKQ1EU5SB+QglbtRdqjJNpwi/XW2YHQzXEauJz0y74ZiljMU38IkMqB7PaRFw6z64uyyR4VpLqWhbRl1oIZZIOke9ljDJgO1I8KAgc4PoRLK9Fzef/uKA/VAk8z1/jcbOgSsn0MmU2SwQdrgUObdmpab+zvyBy15F8zV9h6fBoUS/dH/f8pbzpEARfCp8XsgqDiBzZbnx0ep+Mn3vHNQpIaGK9Co0VMyKCoaXTsjt75aLOKCorqkigCWizmhuSDkD1FGPWHd9DWU/LPfbFWUCuYUd9dBdVYzBzTZL0zsY+Tg+FbBlgWGyI53QD4v1BEAXEtWOkThYw92RBU0d+Xnp6lX6i0OVTxn7fAJV1stusMZYecfIqTcVaId8pNIPAgkygHBj5KrPt6dGu1abgblP0O4AQpMnopoz6nsAatyj3eWmUuFfWYR6RNnw/rqN4+LZScUU9YDumIc9/44YRcLzJxIoOVyRVOEVgaf3dNtBESA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0701MB2351.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(166002)(6666004)(82960400001)(6506007)(53546011)(122000001)(2906002)(7696005)(55016003)(26005)(38100700002)(186003)(9686003)(8676002)(66946007)(66476007)(66446008)(64756008)(85182001)(83380400001)(71200400001)(85202003)(110136005)(54906003)(33656002)(86362001)(76116006)(4326008)(66556008)(316002)(52536014)(8936002)(5660300002)(38070700005)(966005)(66574015)(508600001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: vhQX6XTMd3y2f5orOFe1OP7SxIln23WrKhsASRPd4qKZkVw5BVjpiOWfRLZwRvvF4itBjf/n9qIrrUwFdKY6pKnvAbpHHeQ1i5GXdOBN8whqYuTBLQ0FSbbIgHky0UnjN+JZinlASAgQ0k3bvXiFPMTCnBx/kQh9CDJe5vmFj6YxvAcCSbArp3L4askhUafnsKBRzgUNTQB7Se/UHSAwM7gNdDB28Iist0pA1oAm98dYx25WSs0EpL0wRsSfaWL4vKpy8IMq+hoK6IGeCK26Yo8w4y4a56Xb4s5QRLDmH/DU+PkOC6BGDaCYg9Vb5qV/mwwCn68ZLRq+ohf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UO8DA00bN/VhR4u3RxbC7xvgFt0n8oGlvUJXKORpvWSA9ZZkBvS1YngvDP0sQt+e1X63g/huK69ofmRyGMbJ0kw==
Content-Type: multipart/alternative; boundary="_000_VI1PR0701MB23511241EC49157C4910BA0BF0199VI1PR0701MB2351_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: VI1PR0701MB2351.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1476cc20-b7c6-420f-f898-08da0db9c937
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2022 17:14:39.3441 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Bhrg1kWpeNI+Y+PhIjEA7lbRLoz5ERh1olEHi34F7ElEazA4EaA0G9uaXLtK3ItnssGu28QAbYBRkqzKU7xxklPRuNZWzzMpqccmgxqBKVc=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR07MB6604
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/bIs3meBpUQowfWHkXVDkM4lgjoc>
Subject: Re: [netmod] Alternative approach to draft-ma-netmod-immutable-flag-00
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Mar 2022 17:14:57 -0000

As mentioned earlier immutable is not enough for predefined NACM rules
because the client may always
insert a rule(-list) before the immutable rule(s) that will make the immutable
rules ineffective. The problem is that the rule(-sets) are a user ordered list
where the order matters. It is not enough to protect the individual rule(sets)
the order would also need protection.
Balazs

From: maqiufang (A) <maqiufang1=40huawei.com@dmarc.ietf.org>
Sent: Thursday, 24 March, 2022 15:23
To: Andy Bierman <andy@yumaworks.com>
Cc: Balázs Lengyel <balazs.lengyel@ericsson.com>; Kent Watsen <kent+ietf@watsen.net>; NETMOD Group <netmod@ietf.org>
Subject: RE: [netmod] Alternative approach to draft-ma-netmod-immutable-flag-00

Hi, Andy, Balazs,

I can see your points in some of the use cases.
But as Kent mentioned, the motivation of this work is that we have some system-defined instance which are read-only to clients.
And there may be some cases where a list/leaf-list data node may exist in multiple instances with different control rules.

To be specific, An instance-level annotation could be useful in following use cases:

a)      The system generates some QoS templates when QoS functionality is enabled, and some of the generated templates are read-only, while others are free to be updated by the clients.

b)     The system predefines some list/leaf-list instances which are read-only for clients(the clients cannot update or delete them, like predefined NACM rules), but the clients is free to add/update/delete their own defined instances.

While YANG-extension can be useful for a schema-level immutability.
I am thinking that, maybe we need both to complete the solution?

Best Regards,
Qiufang

From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Andy Bierman
Sent: Thursday, March 24, 2022 7:14 AM
To: Balázs Lengyel <balazs.lengyel@ericsson.com<mailto:balazs.lengyel@ericsson.com>>
Cc: NetMod WG <netmod@ietf.org<mailto:netmod@ietf.org>>
Subject: Re: [netmod] Alternative approach to draft-ma-netmod-immutable-flag-00



On Wed, Mar 23, 2022 at 3:06 PM Balázs Lengyel <balazs.lengyel@ericsson.com<mailto:balazs.lengyel@ericsson.com>> wrote:


From: Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com>>
Sent: Wednesday, 23 March, 2022 22:32
To: Balázs Lengyel <balazs.lengyel@ericsson.com<mailto:balazs.lengyel@ericsson.com>>
Cc: NetMod WG <netmod@ietf.org<mailto:netmod@ietf.org>>
Subject: Re: [netmod] Alternative approach to draft-ma-netmod-immutable-flag-00



On Wed, Mar 23, 2022 at 2:16 PM Balázs Lengyel <balazs.lengyel@ericsson.com<mailto:balazs.lengyel@ericsson.com>> wrote:
Hello Andy,
I also propose an extension. (see my mail Review of draft-ma-netmod-immutable-flag-00)
In Ericsson we saw no need for exceptions, but do see the need for applying it to descendant nodes. Typically we need to protect a full subtree.

Why do you need the exceptions? Could you provide some use-case examples ?

I think create/delete-only and modify-only access modes are used the most, after no-access.
BALAZS: How is a modify-only data-node different from a mandatory data-node? It must be there but can be changed. It get’s an initial value somehow.

Mandatory=true requires the system to provide a value.
Modify-only allows the system to decide when an instance is created.


BALAZS: Any examples when would a create/delete only data node be used?

Sometimes developers do not want to write complex instrumentation that supports
modification of resources.  Instead a user has to delete the old entry and create a new
one with (potentially) different parameters.



Applying to descendant nodes may be better, or may require more work to
undo the extension used in an ancestor node. This impacts the extension usage within a grouping.

BALAZS2: I did not include it in my mail, but we actually have one more rule:
“Top level statements in augment or groupings do NOT inherit
       the static-data value from containing nodes, they default to
       static-data false.”


This seems complicated to users and developers to track how the final schema tree was derived.

The 'static-data' extension seems fine to me.
We have to support 'user-write' anyways, so it is better if it is not too close to this extension.
Things that seem the same, but are NOT the same cause the most support tickets.


Regards Balazs

Andy

Andy




From: netmod <netmod-bounces@ietf.org<mailto:netmod-bounces@ietf.org>> On Behalf Of Andy Bierman
Sent: Wednesday, 23 March, 2022 21:10
To: NetMod WG <netmod@ietf.org<mailto:netmod@ietf.org>>
Subject: [netmod] Alternative approach to draft-ma-netmod-immutable-flag-00

Hi,

IMO the problem should be viewed as a refinement to the
access control policy of the device.  A standard mechanism
such as a YANG extension would be better than a growing
mix of proprietary solutions.

We have such a YANG extension called "user-write" that is widely deployed.
A simple boolean is not fine enough granularity, so a bits type is
needed instead to allow control of create, update, and delete access operations.


https://www.yumaworks.com/pub/latest/yangauto/yumapro-yangauto-guide.html#ncx-user-write<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-876c03f0bc610d95&q=1&e=c875257e-41f5-45d6-a9e9-871e5ebb4243&u=https%3A%2F%2Fwww.yumaworks.com%2Fpub%2Flatest%2Fyangauto%2Fyumapro-yangauto-guide.html%23ncx-user-write>


Andy