Re: [Anima] changes for CORE-SID and SX:structure in draft-ietf-anima-rfc8366bis-04 and -05

"Fries, Steffen" <steffen.fries@siemens.com> Wed, 25 January 2023 12:23 UTC

Return-Path: <steffen.fries@siemens.com>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 26ED9C14CEE4 for <anima@ietfa.amsl.com>; Wed, 25 Jan 2023 04:23:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=siemens.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HSlZb5k7tp37 for <anima@ietfa.amsl.com>; Wed, 25 Jan 2023 04:23:33 -0800 (PST)
Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2052.outbound.protection.outlook.com [40.107.104.52]) (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 D19F1C14CE46 for <anima@ietf.org>; Wed, 25 Jan 2023 04:23:32 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ljU0cdbgeEPcQF2bGD5VW9K/yHK+d21DSPVl0JQ33wGaTqR4hwPpk8b1Yn62TGbf7kDq4yz3Kx9yqT3yuZR/FXQ83ZAIShzhaM+v0jhiwbqqvGbo8Gg1ZvRJnON6EMDi0/OEnGOIIDqUaSFPU0jmqeWTLRD+lL5WH3/mSb7hfrX/JIXhyt/+yHaKd7xWStk09wX6Wmjb8FTHQQikaGp70F3l0xCutnHO8z/+xwC/s8xB+52Q1sa3M6+8Br60ZIs8PHrkta85QQme+eEK64wkMuMP9Hggu9c22IKTN8YNsChGw9OCbOwhXpAmD3mQWshTj6dJJ1ARv8vt2wzJXUQtKA==
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=QXg0gCjMeufnf1PlTz3qw99kykgD3057Wv0QTNWTxcM=; b=MWmSaMQUHaeb0hk5KW98I4a9Lw9fG7N8eA/LeRA02Ji70F0ORjcgNleWL5sz+04xESj5c4Tq6kZAdTs8KNxzqLm1SekAjOzZ0Q4ZKjIllEKXJX1U9Rk9vuhaOvvg6xYuR5YZL9YWQZkQzqiUKE2t6Z/kdhV34xwjONYCEanSJjl2rCD3I+rShgr1nDSmpf6oKnPPjysmWAg8CgVGTPmwQdHo08LC109Vfyz2ZOYRmh9lxj9WPtnm4BZdXTkgAvZyrf79SLhjwFvmVhQRpRzJbJE0hD5WT+QMxxQi8RKBAPcqPkGvfkFdGixCSBWfBndR0NisPYA2Nw9Lvs7nSyNusw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QXg0gCjMeufnf1PlTz3qw99kykgD3057Wv0QTNWTxcM=; b=j5f+YHFiCxyqtNPXSGE/5MAHiKEKhCJdKXv5va9LbmUEJwu4vGClPOdSiQ3BkyYDyEvYyBkm8MBUFT1uZBClnOBGJYKgCvaeC30V2Yu0Jv0btmiKx5gcttJ5BPbYSomDUwygMjcZeiYQzxMHtZfawTsO6qP6/jN4R9lPOd9mkaaB/fu9Pk0DPJ7U3MgE4ezIPBIZioS9Z+e7bmXgH3Vb4YZ7C6UMKnWs4EgJcf1bqm+QHJrCS7QpoVxcrNDeqP+dVHQzThiilMeL8bv+hwJ22X/1MTklecgJIzpH8trmn/STt5iP3tWNvYZRCuUnOuFGE8meMQRvMLaBI6nlcN1pIw==
Received: from DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:348::20) by DB9PR10MB7265.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:454::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 12:23:29 +0000
Received: from DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM ([fe80::83d9:9e51:cd20:a4a7]) by DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM ([fe80::83d9:9e51:cd20:a4a7%9]) with mapi id 15.20.6002.033; Wed, 25 Jan 2023 12:23:29 +0000
From: "Fries, Steffen" <steffen.fries@siemens.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>, "anima@ietf.org" <anima@ietf.org>
Thread-Topic: [Anima] changes for CORE-SID and SX:structure in draft-ietf-anima-rfc8366bis-04 and -05
Thread-Index: AQHZMAROLbtMm3iB8UKk+TO7of54T66u51/A
Date: Wed, 25 Jan 2023 12:23:29 +0000
Message-ID: <DU0PR10MB5196D3ED93223729C837FAB0F3CE9@DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM>
References: <167345911024.15670.5822349028239537605@ietfa.amsl.com> <18071.1673461082@localhost> <1614.1673547905@localhost> <14544.1674572289@localhost>
In-Reply-To: <14544.1674572289@localhost>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Enabled=true; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SetDate=2023-01-25T12:23:27Z; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Method=Standard; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Name=restricted; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SiteId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ActionId=68604e1b-81fc-48c5-9fb8-79286e678f27; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ContentBits=0
document_confidentiality: Restricted
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DU0PR10MB5196:EE_|DB9PR10MB7265:EE_
x-ms-office365-filtering-correlation-id: 481fd442-7c3c-4dcb-6056-08dafecef77e
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 4pdm99cN7J0kWtu2sx0rjEmBVwQqHtGXOSMJsH4Rbl5b55pyXM6K4sEbMgSdB0xLiLgg7iL1oAlAb8TZBJSLtuNdOn7MgIypNr5qIJn6tBjTT4FM3enCBMEk4VPbIGONfrx9/x0cgoO4iBVUdiyhCGYfooV6iJNicKggfciHgs86Z/s9M/xq/dhBvoVJ1WBssmIH8SMFacfIeHOZMxzrLvu6aJNiAKPHnqreN60HjpmH9e3f+j9M/QiRoVIT7m4KEpOzteOrgl0MXIXElvUBezVp67bAQVG7GrbWngAI6JnMLwz4kyNKO+c9VE2WWrPIXmMImj+Gq3ZAt4EzDdttUaOxiPiHPrP9S3HfuxAgfQVYzCT+pIDYFKRCJRwTO8frS6U246Lynf1acoanziH9x8hSG2chpClNFthM9vHDs3tNdJlzDZDbYf0wC39GeERCKgAcBCDt/fzYDMX260eg/lFKLQSAGDaJCQBzRu3g2O4PZT1c8P5cCHfdTQlQSTY5vdLccyrgyimu6SkWjRmMylSQQSsYKxdiveJCke9eBK/wbQIMnbQtLnsahNj9g0l72/VxhgNBy+BBYabGKGqUd6urHzbgYSRxDo1GJgCVGXfwUTQhBNqLx8dosfRaaEi+zMPYjquIUd0r8hagEPzRAa+I/EFioW45eVSpde6BtYh5ThdoNvxNKgMF2KXMxRdiYCH2Y8AZLm35QXD+ZDJa0tRmld0Mz9hHk/GQvrugYxY=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(39860400002)(376002)(346002)(366004)(451199018)(33656002)(122000001)(82960400001)(38100700002)(7696005)(83380400001)(41300700001)(86362001)(8936002)(6506007)(26005)(52536014)(9686003)(55016003)(66946007)(186003)(5660300002)(966005)(316002)(66556008)(64756008)(478600001)(8676002)(66476007)(38070700005)(2906002)(110136005)(71200400001)(76116006)(45080400002)(66446008)(66574015); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 5FVICQAcmDy333Y3vVx4vDPvPRW9DsqLF706PtsknaSwSvINIeBHahSyq5on5rfRVBPSX/4445stSmDyL70Rw5M/mt3wKEClGlhSMTH9CBWI7AeDiL1kYYY92MqmnRbZuac1TM3pxHSzgJE93UEEsF7cetfnldyIN50+wxmMmrU5P/KOfA+cHCBJ84GTGF56AYw2okd930ByW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8UBkc0fGADgMGZjMq5D3KWSY9qXmbo4aVN/QG6yeQOxAYuCRa7KgKa1vVjpLnjxaCe7p5R4shZHuDfb0Jnr9SVgvQmGRdipoQtz0PZ+yDdVfgKn3WJ7FnFAtdxTj4I2kMjGXayRvXwl9lY5UDj5mni4F1w1yeK40LDc4TtoipCOLBpzbFtseRpTrhnGZCVuzmFhrDmJylXSAp/ML/t54RRalZLTOjnqUJwsBW67niAsP2m2L4bgED7fcXkYSOrZOnfNIWnM4WPH3zeMF02XIhzS8LyHt+Ks9r+Ir6IaH0JLHwGvIriqzTo4giCS4UebbVSVqUah4diQujudF7JOAANnqoQ==
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: siemens.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: 481fd442-7c3c-4dcb-6056-08dafecef77e
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jan 2023 12:23:29.5162 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: nM1fqu4JVKf3lvMNWWV4df94Q4AfpuL7l7EtNcBoEDJ+6w4jSxyn/gTnuqrQMCpznIIx1AOG7q+DjtXXvHiio2NRUQPOscWJaPTxLIlEZWo=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB7265
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/8AHZNC2G6THY1TIVtrOlmF7kwDo>
Subject: Re: [Anima] changes for CORE-SID and SX:structure in draft-ietf-anima-rfc8366bis-04 and -05
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Jan 2023 12:23:38 -0000

Hi Michael 

> -----Original Message-----
> Sent: Dienstag, 24. Januar 2023 15:58
> Subject: [Anima] changes for CORE-SID and SX:structure in draft-ietf-anima-
> rfc8366bis-04 and -05
> 
> 
> Did I post this already?
> 
> I have just posted -04, which includes some, but not all, of the BRSKI-PRM
> changes.  I missed the assertion changes in -04, but they are in -05.
Yes, I realized the enhancement in the assertions in section 5.4. 
I was thinking if it would be helpful to also explain the assertion types in the text, but this would somehow replicate the text in the voucher description, which is also part of RFC 8366. 
For assertion types, which are motivated/defined by other documents, I would propose to add a reference to the originating document, also for the handling (agent-proximity would then reference BRSKI-PRM)

The YANG definition of the voucher request (ietf-voucher-request.yang) looks fine from a BRSKI-PRM perspective. The parameters defined are contained. While BRSKI-PRM does not specify further values, I was thinking if equivalent values for the constraint case for 
- agent-provided-proximity-registrar-cert: for constraint also agent-provided-proximity-registrar-pubk and agent-provided-proximity-registrar-pubk-sha256
- agent-sign-cert: for constraint also agent-sign-pubk and agent-sign-pubk-sha256
would make sense to avoid transporting the complete certificates. In BRSKI-PRM we have the agent-sign-cert as optional for the pledge and mandatory for the registrar to address these cases for constraint pledges. But including just pubk or pubk-sha256 would also be an option.
 
> 
> -04:
> In fixing the SID allocations to be consistent (and fixing pyang/sid.py to always
> dump .sid files and list output in SID order.
> The augment mechanism results in a change the leaf path for the voucher-
> request, from:
> 
> /ietf-voucher-request-constrained:voucher/nonce
> to:
> /ietf-voucher-request:voucher/voucher/nonce
> 
> The change from request-constrained to request is anticipated, and I think
> acceptable. (This affects the JSON serialization) But, the additional of an extra
> "voucher" in the path concerns me.
> I tried "augment-structure" as described in RFC 8791, but pyang didn't like it.
> 
> 
> I tried to hack on things with yanglint, but I think it doesn't work.
> 
> rfc8366bis-05:
> * I've also fixed the wrapping in the description so there are no rfc8792
>   wrapped lines. (Kudos to kramdown: it doesn't tell you about 8792 if it
>   doesn't use them)
> 
> * Table 1 is now down up in markdown format.  I'm not sure how to make cells
>   span rows.  I would appreciate someone else to verify the new table 1
>   against RFC8366's version.
I double checked the content of both tables and the one in the PR looks fine. It reflects, what is currently stated in RFC 8366
Format wise, centering the associated cells in a row would increase readability.


> 
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co
> m%2Fanima-
> wg%2Fvoucher%2Fpull%2F22%2Ffiles&data=05%7C01%7Csteffen.fries%40siem
> ens.com%7C96b155c5218c4639287008dafe1b6fb0%7C38ae3bcd95794fd4adda
> b42e1495d55a%7C1%7C0%7C638101691038757391%7CUnknown%7CTWFpbGZ
> sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0
> %3D%7C3000%7C%7C%7C&sdata=EF3rsQs8zKv0IpglR68zoXdfWMs9b2%2FAPy3
> SDBizoqQ%3D&reserved=0
> I'm not going to merge this PR until I get some additional review on the
> differences, and the overall approach to the YANG.
Some observations in addition to the ones above (unsorted regarding importance): 
- section 1 and section 5: jws-voucher may be stated as alternative to the utilized CMS structure in RFC8366
- section 2: proposal to also state the registrar-agent with a reference to BRSKI-PRM
- section 7.2: just food for thought, would it make sense to also allow a nonceless voucher with a list of device serial numbers? This would limit the exchange with the MASA to just one or may be a mean for a pre-provisioned voucher. This would require an array in the voucher definition for the serial number (currently a string). In addition, it may also lead to an enhancement of section 2 regarding voucher-types. 

Observations from ietf-voucher.yang (I'm not a YANG expert):
- the created-on time has been changed to optional? At least this is what I gather from mandatory=false. It is mandatory in the current voucher definition. Not sure regrading the change and if it is necessary to state it explicitly. 
- the expires-on is optional (which is fine) but mandatory=false is not stated. According to RFC 6020, the semantic is the same as not stating it. So we may remove the mandatory=false for the created-on leaf.
- the pinned-domain-cert has been changed to optional (mandatory=false ) as created-on

Best regards
Steffen


> 
> **I AM ASKING FOR A WG CHAIR CONSENSUS CALL**
> 
> --
> ]               Never tell me the odds!                 | ipv6 mesh networks [
> ]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
> ]     mcr@sandelman.ca
> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.san
> delman.ca%2F&data=05%7C01%7Csteffen.fries%40siemens.com%7C96b155c52
> 18c4639287008dafe1b6fb0%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7
> C0%7C638101691038757391%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLj
> AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C
> %7C&sdata=qSuUoEuqiTzKmAlbhd28Fu99djy%2FeVV%2BewJPEeMJMyw%3D&r
> eserved=0        |   ruby on rails    [
> 
> 
> 
> 
> 
> 
> --
> Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
>            Sandelman Software Works Inc, Ottawa and Worldwide
> 
> 
>