Re: [netconf] Truststore: bags, sets, or other?
Ladislav Lhotka <lhotka@nic.cz> Tue, 04 February 2020 19:45 UTC
Return-Path: <lhotka@nic.cz>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CAFB21207FF for <netconf@ietfa.amsl.com>; Tue, 4 Feb 2020 11:45:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 lJbaBwbdhLFW for <netconf@ietfa.amsl.com>; Tue, 4 Feb 2020 11:45:35 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 6DE18120807 for <netconf@ietf.org>; Tue, 4 Feb 2020 11:45:34 -0800 (PST)
Received: by trail.lhotka.name (Postfix, from userid 109) id E18C486084A; Tue, 4 Feb 2020 20:47:39 +0100 (CET)
Received: from localhost (unknown [172.29.2.111]) by trail.lhotka.name (Postfix) with ESMTPSA id D97DC860138; Tue, 4 Feb 2020 20:47:37 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, "Schönw älder, Jürgen" <J.Schoenwaelder@jacobs-university.de>, Kent Watsen <kent+ietf@watsen.net>
Cc: Russ Housley <housley@vigilsec.com>, "netconf@ietf.org" <netconf@ietf.org>
In-Reply-To: <MN2PR11MB4366AE21207AECD44DEF5D24B5000@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <0100016ff91dfd1b-9e8e6622-7e36-45dc-a661-f4702b494040-000000@email.amazonses.com> <20200131.111027.840757629039452002.mbj@tail-f.com> <0100016ffda3d528-f411ef14-2813-4372-99c4-8269e5ea435e-000000@email.amazonses.com> <20200201080916.yrlurqzzlconhxlr@anna.jacobs.jacobs-university.de> <MN2PR11MB4366AE21207AECD44DEF5D24B5000@MN2PR11MB4366.namprd11.prod.outlook.com>
Date: Tue, 04 Feb 2020 20:45:30 +0100
Message-ID: <87r1zarvad.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/pAJiFg3MY2lFIgaWjehKoT0p-dg>
Subject: Re: [netconf] Truststore: bags, sets, or other?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Feb 2020 19:45:39 -0000
"Rob Wilton (rwilton)" <rwilton@cisco.com> writes: > +1 > > This would also be my normal interpretation of a structure described as a "bag", although they don't seem to be that commonly used. I think the term was coined in Smalltalk-80, where Bag is a subclass of Collection such that - its elements are not ordered - are not accessible by a key - duplicates are allowed Lada > > Thanks, > Rob > > > -----Original Message----- > From: netconf <netconf-bounces@ietf.org> On Behalf Of Schönwälder, Jürgen > Sent: 01 February 2020 08:09 > To: Kent Watsen <kent+ietf@watsen.net> > Cc: Russ Housley <housley@vigilsec.com>; netconf@ietf.org > Subject: Re: [netconf] Truststore: bags, sets, or other? > > A common interpretation in various data structure libraries is this: > > set: unordered collection of something, duplicates not allowed > bag: unordered collection of something, duplicates allowed > > /js > > On Fri, Jan 31, 2020 at 10:06:10PM +0000, Kent Watsen wrote: >> Hi Martin, >> >> >> NEW: >> >> +--rw <thing>-bags {<thing-feature>}? >> >> +--rw <thing>-bag* [name] >> >> +--rw name string >> >> +--rw <thing>* [name] >> >> +--rw name string >> >> … >> >> >> >> Better, right? Any other ideas? >> > >> > We have current published modules with both "-list" and "-set". No >> > "-bag" so far. >> > >> > For example: >> > >> > "list rule-list" in ietf-netconf-acm >> > >> > "list module-set" in ietf-yang-library >> >> True. >> >> >> > There are some examples of "s" as well, but these are plural "s" for >> > a normal list of singletons, and should have been named w/o the >> > plural "s" (if we were to be consistent). >> > >> > I would try to avoid "s" for a "list-of-lists", but then pick the >> > suffix that feels most natural in the domain. (For example, rather >> > "list access-control-list" than "list access-control-set”). >> >> Agreed. >> >> > Perhaps you can argue that "-list" works better for ordered >> > sequences, and "-set" and "-bag" for unordered. But then there are >> > "ordeded sets" and "unordered lists" (and even apparently "ordered >> > bag", in UML). >> >> Perhaps. >> >> > The plural "s" is better for a surrounding container (if one exists). >> >> Agreed. >> >> >> I also received a private response from Russ, who rather not join the netconf list, but said: >> >> 1) “bag” was originally created to deal with issues with ASN.1 the SET and SEQUENCE types, and since have entered general crypto parlance outside the PKCS#12 context. >> >> 2) “bag” is the ideal term for when conveying a unordered collection of X.509 certificates. >> >> 3) “bag” is not known to be used in the context of SSH host keys or RPKs, but there isn’t anything wrong or bad with doing so either. >> >> All said, I believe the best course is to use “bag” and, more specifically, to use the "/x-bags/x-bag/…” structure that is present at the top of this message. Assuming there are no objections, this change will be in the next update. >> >> >> Kent >> > >> _______________________________________________ >> netconf mailing list >> netconf@ietf.org >> https://www.ietf.org/mailman/listinfo/netconf > > > -- > Juergen Schoenwaelder Jacobs University Bremen gGmbH > Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany > Fax: +49 421 200 3103 <https://www.jacobs-university.de/> > _______________________________________________ > netconf mailing list > netconf@ietf.org > https://www.ietf.org/mailman/listinfo/netconf > _______________________________________________ > netconf mailing list > netconf@ietf.org > https://www.ietf.org/mailman/listinfo/netconf -- Ladislav Lhotka Head, CZ.NIC Labs PGP Key ID: 0xB8F92B08A9F76C67
- [netconf] Truststore: bags, sets, or other? Kent Watsen
- Re: [netconf] Truststore: bags, sets, or other? Martin Bjorklund
- Re: [netconf] Truststore: bags, sets, or other? Kent Watsen
- Re: [netconf] Truststore: bags, sets, or other? Schönwälder
- Re: [netconf] Truststore: bags, sets, or other? Rob Wilton (rwilton)
- Re: [netconf] Truststore: bags, sets, or other? Kent Watsen
- Re: [netconf] Truststore: bags, sets, or other? Russ Housley
- Re: [netconf] Truststore: bags, sets, or other? Randy Presuhn
- Re: [netconf] Truststore: bags, sets, or other? Ladislav Lhotka
- Re: [netconf] Truststore: bags, sets, or other? Balázs Kovács