Re: [urn] URI Scheme with Complex Equality Rules

Ted Hardie <ted.ietf@gmail.com> Fri, 26 August 2022 16:59 UTC

Return-Path: <ted.ietf@gmail.com>
X-Original-To: urn@ietfa.amsl.com
Delivered-To: urn@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9181BC14CE2A for <urn@ietfa.amsl.com>; Fri, 26 Aug 2022 09:59:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.103
X-Spam-Level:
X-Spam-Status: No, score=-2.103 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=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=gmail.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 hNfm1I9gvOup for <urn@ietfa.amsl.com>; Fri, 26 Aug 2022 09:59:12 -0700 (PDT)
Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 25653C14CF1B for <urn@ietf.org>; Fri, 26 Aug 2022 09:59:12 -0700 (PDT)
Received: by mail-io1-xd2d.google.com with SMTP id i77so1629422ioa.7 for <urn@ietf.org>; Fri, 26 Aug 2022 09:59:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=y8jy7H21Wqg+SqrbUf3SXfPqom7a1x45T2taMeAeE8Q=; b=laWsEpULIQWn1LJkO2wsWE4n5aEhCIuE8d4Ef7OFv3ODhYvZdM4jCHcmo790Tjejkp dTlZH3NuBKJQ2RffCS1olQhktXyumRob9NbDgyVvxzUNkWN9Nfh7ykVT/pytOx8yTd6t st+Q4x8r/sH4sdmnxzDmaaXU7T2CPs7TnZaex7h1ul7Qe8iSNqva6nNBKD1Y1lRZ/HVf t8OfoVFAYkABEGoKgRsjkP28HxR9hQFunHWEH9/vftia9q00yVcyDcEmH14YG8UCP/Oh i89DjoWXxqYAU3YwYLJs34QsqdhO3qk0hilQrLDzLDtqR6nMltojQfOmrpyzuw772emT tf2A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=y8jy7H21Wqg+SqrbUf3SXfPqom7a1x45T2taMeAeE8Q=; b=4geTqowSvSOI9fQy8RlNgYJJOHyCOWOSu6tiM6a8WnMYsJhmXAnQxDEhv2lv+NFbyP 1O3poT1sKX1hvPKabr5Tuy1LWJMinWEbqTNJ5CfD8ZzRH4oZ1AtqA0SMBzuBuWKPNyt8 NiT06FUMiCVx7on2mXbXAJZCAjjmUWkFYtnbp1Ab1l+zwrAKw61u2MdpegYKHGgm79QL 74gU/F5wWwCDrMtnY1HB5rGGoNFyq8A0gXdCfxkCew6G4N9HLOjfrjKUElTbDPxV5p7n NxMtfY7NzbwVM0dA1EpBakJIvEH3HzvK4ouP8CxFsuQOqfo9qUdbxcACXUrRog4k5qpy CBRA==
X-Gm-Message-State: ACgBeo1vNPtrBkDjVJC7T4pSR43eyrnLQmMEssjGfc/fTbfstW7smR33 7ehJhh0pmWY+YIxaOL0PVwEyun0qtsFIQTWmkS6vrET7R58L7Q==
X-Google-Smtp-Source: AA6agR5LSn9nvb3UcG4C2n7x1UlocNc9I9WWnZ3FR8OpB/4uo3xSA3wObdn/pbUJqpxGdtTupDbSWSa4ihXMzLjtF30=
X-Received: by 2002:a05:6638:338d:b0:34a:44c:d50d with SMTP id h13-20020a056638338d00b0034a044cd50dmr4577913jav.260.1661533150948; Fri, 26 Aug 2022 09:59:10 -0700 (PDT)
MIME-Version: 1.0
References: <SJ0PR08MB8288507205BE2CD811F5D19BFA759@SJ0PR08MB8288.namprd08.prod.outlook.com> <CA+9kkMBbeHRn+pQEO4v90d0ifCaxEZW7FU2QRUtgD8oiuD0JKg@mail.gmail.com> <SJ0PR08MB82881C9645C9F215BBB5CB03FA759@SJ0PR08MB8288.namprd08.prod.outlook.com>
In-Reply-To: <SJ0PR08MB82881C9645C9F215BBB5CB03FA759@SJ0PR08MB8288.namprd08.prod.outlook.com>
From: Ted Hardie <ted.ietf@gmail.com>
Date: Fri, 26 Aug 2022 17:58:44 +0100
Message-ID: <CA+9kkMAvRv4845YOVHsKY6LDo5CFC0KdL=j3WF334v==nj4oTQ@mail.gmail.com>
To: "Randy Armstrong (OPC)" <randy.armstrong@opcfoundation.org>
Cc: "urn@ietf.org" <urn@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003eb17905e727d5b1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/urn/eT2ahwluctaKMh--AjQOGp71_yk>
Subject: Re: [urn] URI Scheme with Complex Equality Rules
X-BeenThere: urn@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Revisions to URN RFCs <urn.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/urn>, <mailto:urn-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/urn/>
List-Post: <mailto:urn@ietf.org>
List-Help: <mailto:urn-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/urn>, <mailto:urn-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Aug 2022 16:59:16 -0000

Hi Randy,


On Fri, Aug 26, 2022 at 3:18 PM Randy Armstrong (OPC) <
randy.armstrong@opcfoundation.org> wrote:

> Hi Ted,
>
>
>
> Thanks for the reply.
>
> I was thinking of a URI scheme instead of a URN NID, however,  it appears
> URI scheme requires that we create RFC which is a much more cumbersome
> process.
>
>
>

You don't need to produce an RFC; the registration procedures are laid out
here:

https://www.rfc-editor.org/rfc/rfc7595.html#page-11

For a provisional, they are designed to be very simple (since the main goal
is to avoid collision).  Even for a permanent registration, the additions
do not include producing an RFC:

       1. Review the requirements in Section 3
<https://www.rfc-editor.org/rfc/rfc7595.html#section-3>

       2.  Send a copy of the scheme registration request or a pointer
           to the document containing the request (with specific
           reference to the section that requests the scheme
           registration) to the mailing list uri-review@ietf.org,
           requesting review.  In addition, request review on other
           relevant mailing lists as appropriate.  For example, general
           discussion of URI syntactical issues can be discussed on
           uri@w3.org; schemes for a network protocol can be discussed
           on a mailing list for that protocol.  Allow a reasonable time
           for discussion and comments.  Four weeks is reasonable for a
           'permanent' registration request.
      3.  Respond to review comments and make revisions to the proposed
           registration as needed to bring it into line with the
           guidelines given in this document.

If you would like to discuss the possibility, we can redirect the
discussion to  uri-review@ietf.org

regards,

Ted Hardie




> The OPC Foundation is author/maintainer of IEC 62541 and we are trying to
> fix the incorrect URN usage in the spec today.
>
> The identifiers are used in the subjectAltName of X509 Certificates and
> uniquely identify the application that the Certificate is assigned to.
>
>
>
> The uniqueness of our identifiers is within the scope of the system so an
> IP address can be system unique and static.
>
> We specifically do not want to use ‘http’ because people tend to assume
> they are valid URLs with backing websites.
>
>
>
> Regards,
>
>
>
> Randy
>
>
>
> *From:* Ted Hardie <ted.ietf@gmail.com>
> *Sent:* Friday, August 26, 2022 10:08 PM
> *To:* Randy Armstrong (OPC) <randy.armstrong@opcfoundation.org>
> *Cc:* urn@ietf.org
> *Subject:* Re: [urn] URI Scheme with Complex Equality Rules
>
>
>
> Hi Randy,
>
>
>
> Based on a skim of your use case, I can't yet see why minting a URI scheme
> would not work.
>
>
>
> opcid://authority/parameters
>
>
>
> The authority here would be the DNS name or IP address, and the definition
> of the scheme could establish that you wanted case insensitive matching for
> the parameters (where the context would be stored).  Is there something in
> IEC 62541 that would make this approach unviable? I admit that  I did not
> spend any francs to get it, so I don't have examples of what the context
> might look like, so if you have examples you can share, that would be
> useful.
>
>
>
> Note that while URNs are guaranteed to be unique across the lifetime of an
> identifier, your scheme doesn't seem likely to want that, as it is relying
> on the DNS and IP address assignment, neither of which guarantees that
> property.
>
>
>
> regards,
>
>
>
> Ted
>
>
>
>
>
> On Fri, Aug 26, 2022 at 1:47 PM Randy Armstrong (OPC) <
> randy.armstrong@opcfoundation.org> wrote:
>
> I am sending this issue to this email as per the suggestion in RFC 8141.
>
>
>
> The OPC Foundation (https://opcfoundation.org) has a need to uniquely
> identify OPC UA (IEC 62541) network resources but we do not want the
> complexity that comes with the various URN schemes.
>
>
>
> Specifically we need:
>
>
>
>    1. Equality checks with case-insensitive string comparisons;
>    2. Human readable strings with uniqueness provided by a DNS name or IP
>    address (always lower case).
>    3. A valid URI.
>    4. R/Q/F components not allowed.
>
>
>
> We have been using urns of the form: urn:<dnsname>:<additional context>,
> however, this is not technically allowed by the URN RFC.
>
> We do not want a syntax that needs to be parsed before any comparison can
> be done.
>
>
>
> We could submit a request for our own nid but we don’t really have any
> syntax requirements other than the dns name and the case-insensitive string
> comparisons.
>
>
>
> What is the best way forward?
>
>
>
> Regards,
>
>
>
> Randy Armstrong
>
> OPC Foundation
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> urn mailing list
> urn@ietf.org
> https://www.ietf.org/mailman/listinfo/urn
>
>