Re: [Sidrops] I-D Action: draft-ietf-sidrops-aspa-profile-15.txt

Ties de Kock <tdekock@ripe.net> Tue, 13 June 2023 18:04 UTC

Return-Path: <tdekock@ripe.net>
X-Original-To: sidrops@ietfa.amsl.com
Delivered-To: sidrops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ADEA2C151098; Tue, 13 Jun 2023 11:04:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.096 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, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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=ripe.net
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 2R9ixPyt4PTS; Tue, 13 Jun 2023 11:04:53 -0700 (PDT)
Received: from mail-mx-2.ripe.net (mail-mx-2.ripe.net [IPv6:2001:67c:2e8:11::c100:1312]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 A01E2C14CF1B; Tue, 13 Jun 2023 11:04:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ripe.net; s=s1-ripe-net; h=To:Message-Id:Cc:Date:From:Subject:Mime-Version:Content-Type ; bh=oLoaC1b5FMrQ6BqAaUSwllH30DWx1BiSK/pgO8hY5VY=; b=d50LD8PX+4eGCmCb44H70F+i c1wccUZwReEbqFUxYOcIoy8TRFegaOoCj0zZ/UhcuVuiKSzlc4Q4TluDb31qsDWRMQxcuJJpNK/6Q Q6nV+fmmzKl7Y8DR/8JCE3OFV5VVF6EBzcI6m7KOEFUbrlSbqNeJmhsw2Jc93syYiaVXGLZiY1Wvt hBzNyljFQtVc9zGPwk1EK6SJwq7HY0PGu1KVQlRuTesetIXoDMRmKGE/EPDh9wKCdGXNxsLcytJRz mAOkEp9pSHxBY+ZaZ6Q6qS9Ifp6Fg2I+w84I8lKXNhqrtbRudzEfWClwSqroRyEMUjxFikGZC/IsE oXBN0ljHjA==;
Received: from allealle.ripe.net ([2001:67c:2e8:23::c100:170c]:42402) by mail-mx-2.ripe.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <tdekock@ripe.net>) id 1q98Nv-00AAA3-2K; Tue, 13 Jun 2023 18:04:51 +0000
Received: from sslvpn.ipv6.ripe.net ([2001:67c:2e8:9::c100:14e6] helo=smtpclient.apple) by allealle.ripe.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <tdekock@ripe.net>) id 1q98Nv-0001ok-1f; Tue, 13 Jun 2023 18:04:51 +0000
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
From: Ties de Kock <tdekock@ripe.net>
In-Reply-To: <ZIitpTWScXigugLD@feather.sobornost.net>
Date: Tue, 13 Jun 2023 11:04:38 -0700
Cc: SIDR Operations WG <sidrops@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <04D76EAA-AD2E-4A76-8709-0D063E4310EA@ripe.net>
References: <168621843689.33017.6897451444105786551@ietfa.amsl.com> <ZIGogKIH4Srb8Nxt@snel> <20230608181440.33d6926f@glaurung.nlnetlabs.nl> <0C543A94-F70E-4A40-8350-C98FAAB5A9B5@vigilsec.com> <D100381E-6498-4EAD-B056-18F89836C097@ripe.net> <96D52BC8-C3BA-43C8-90E1-DD2621C2292F@vigilsec.com> <20230613094413.364aaa8c@smaug.local.partim.org> <26E1759F-08FA-430D-8F89-BDC6C3DC4B9D@vigilsec.com> <20230613150156.29022a0e@glaurung.nlnetlabs.nl> <ZIitpTWScXigugLD@feather.sobornost.net>
To: Job Snijders <job=40fastly.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3731.600.7)
X-RIPE-Signature: 059faafd1cc22ebb05e1592c815fe1e1141c80a61b00f6a2115b38267f894eeb
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/a4SxsMpt-gwh7OSbwabKsEiH0rI>
Subject: Re: [Sidrops] I-D Action: draft-ietf-sidrops-aspa-profile-15.txt
X-BeenThere: sidrops@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: A list for the SIDR Operations WG <sidrops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sidrops>, <mailto:sidrops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sidrops/>
List-Post: <mailto:sidrops@ietf.org>
List-Help: <mailto:sidrops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sidrops>, <mailto:sidrops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jun 2023 18:04:57 -0000

Hi Job,

> On 13 Jun 2023, at 10:55, Job Snijders <job=40fastly.com@dmarc.ietf.org> wrote:
> 
> On Tue, Jun 13, 2023 at 03:01:56PM +0200, Martin Hoffmann wrote:
>> Russ Housley wrote:
>>> I do not think we want to have decode failures if the INTEGERS are
>>> not in sort order.
>> 
>> I agree, but in the past the consensus in this group has been to
>> rigorously reject objects that have something wrong with them. By that
>> consensus, an ASPA with unsorted provider ASNs would be rejected on
>> grounds of violating the MUST further down. In which case it might as
>> well be rejected during decoding.

I agree with Martin's perception of the opinion of the group. Having the SET
may get us a little bit more implementation resiliency here.

> 
> It seems not every deserializer implementation rejects DER during
> decoding if the DER contains a SET OF (unsorted, duplicate) INTEGERS.
> 
> Example:
> 
> $ echo 310f020107020102020109020107020103 | xxd -r -ps | openssl asn1parse -inform DER
>    0:d=0  hl=2 l=  15 cons: SET
>    2:d=1  hl=2 l=   1 prim: INTEGER           :07
>    5:d=1  hl=2 l=   1 prim: INTEGER           :02
>    8:d=1  hl=2 l=   1 prim: INTEGER           :09
>   11:d=1  hl=2 l=   1 prim: INTEGER           :07
>   14:d=1  hl=2 l=   1 prim: INTEGER           :03
> $ echo $?
> 0
> 
> I suspect the trouble for the deserializer in the above example is that
> there is ambiguity in the input data: what encoding rules apply?
> 
> With relying parties being unable to rely on (potentially missing)
> implicit behaviour of decoders, it seems better to me to specify the
> structure of the ASPA eContent data using a SEQUENCE OF, and be explicit
> in describing the canonical form. This will help avoid potential
> inconsistencies between implementations.

I have implemented the current (draft 15) ASN.1 and requirements that yield a
deterministic form  for both validation and in a signer, but I do not mind
changing this to a SET.

Kind regards,
Ties