Re: [Suit] SUIT URIs

Carsten Bormann <cabo@tzi.org> Wed, 02 June 2021 10:58 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: suit@ietfa.amsl.com
Delivered-To: suit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D57173A3ECC for <suit@ietfa.amsl.com>; Wed, 2 Jun 2021 03:58:15 -0700 (PDT)
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_FAIL=0.001, SPF_HELO_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=no 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 q92vHYrZvgz6 for <suit@ietfa.amsl.com>; Wed, 2 Jun 2021 03:58:11 -0700 (PDT)
Received: from gabriel-2.zfn.uni-bremen.de (gabriel-2.zfn.uni-bremen.de [IPv6:2001:638:708:32::19]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A5213A3ECA for <suit@ietf.org>; Wed, 2 Jun 2021 03:58:11 -0700 (PDT)
Received: from [192.168.217.118] (p548dcc89.dip0.t-ipconnect.de [84.141.204.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Fw5bg08kLz2xFg; Wed, 2 Jun 2021 12:58:06 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <B7948E5C-30B6-4C6D-B11A-DE463FFD93A4@arm.com>
Date: Wed, 02 Jun 2021 12:58:06 +0200
Cc: suit <suit@ietf.org>
X-Mao-Original-Outgoing-Id: 644324286.569557-1cf38f579a25e74671ea4b15d0518a52
Content-Transfer-Encoding: quoted-printable
Message-Id: <1C080A81-BF51-4FFA-AAA8-DA7FF8173594@tzi.org>
References: <B7948E5C-30B6-4C6D-B11A-DE463FFD93A4@arm.com>
To: Brendan Moran <Brendan.Moran@arm.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/WKdDJ8eDSP1tSPP0TL_AofUoCJs>
Subject: Re: [Suit] SUIT URIs
X-BeenThere: suit@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Software Updates for Internet of Things <suit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/suit>, <mailto:suit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/suit/>
List-Post: <mailto:suit@ietf.org>
List-Help: <mailto:suit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/suit>, <mailto:suit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Jun 2021 10:58:16 -0000

Do you need just URIs or also URI references?
Fragment ids?

Grüße, Carsten


> On 2021-06-02, at 12:04, Brendan Moran <Brendan.Moran@arm.com> wrote:
> 
> The current text of the SUIT manifest specification uses textually-encoded URIs. While this is probably the most compact URI encoding, it does introduce an additional parsing burden on devices.
> 
> Should SUIT consider a mechanism for friendlier URIs? There are two immediate options:
> 1) SUIT URI:
> [
>  Scheme: int,
>  Host: tstr / bstr, ; tstr for domain, bstr for ip address
>  Path: tstr,
>  Query: tstr
> ]
> 
> 
> 
> 2) CRI as defined in draft-ietf-core-href:
> CRI-Reference = [
>     (authority // discard),
>     *path,
>     ? (([], fragment)              ; include array only if
>        //([+query], ?fragment))    ; at least one query and/or fragment
>   ]
> 
>   authority   = (?scheme, ?(host, ?port))
>   scheme      = (scheme-name
>                  // COAP // COAPS // HTTP // HTTPS)
>   scheme-name = (false, text .regexp "[a-z][a-z0-9+.-]*")
>   COAP = -1 COAPS = -2 HTTP = -3 HTTPS = -4
>   host        = (host-name // host-ip)
>   host-name   = (true, text)
>   host-ip     = bytes .size 4 / bytes .size 16
>   port        = 0..65535
>   discard     = 0..127
>   path        = text
>   query       = text
>   fragment    = text
> My concern with CRI is that it is not yet in Core’s WGLC.
> 
> Either choice could easily be added as an extension to SUIT later, but that might mean that SUIT implementations don’t adopt it.
> 
> 
> Best Regards,
> Brendan
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.