Re: [Sidrops] Fwd: New Version Notification for draft-ymbk-9020-update-00.txt

Job Snijders <job@fastly.com> Wed, 07 December 2022 10:41 UTC

Return-Path: <job@fastly.com>
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 20D2BC14F723 for <sidrops@ietfa.amsl.com>; Wed, 7 Dec 2022 02:41:17 -0800 (PST)
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 (1024-bit key) header.d=fastly.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 GAvDaNfyzsvs for <sidrops@ietfa.amsl.com>; Wed, 7 Dec 2022 02:41:12 -0800 (PST)
Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 B9771C14F733 for <sidrops@ietf.org>; Wed, 7 Dec 2022 02:41:12 -0800 (PST)
Received: by mail-ed1-x52d.google.com with SMTP id d20so24353555edn.0 for <sidrops@ietf.org>; Wed, 07 Dec 2022 02:41:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MFErhLmD/NEcUiQUZo/UXiRhCkyf465QQrBj5IPJ4us=; b=OfzabEdhfA7dT9w0p+MdPdYsnWHHN+bbqKwJjvWxsBs7kBpced7Yh6BjS0nxcyyVEQ bIIL/7xSgfVaapUL/UEat7bJvqrbyYTpdTGus1PrL5UqiGLO9wdFQBtUcRi6FIm6UqzD O//vREA9HBD77pJMqAnpXfSNo3+/ZH+ek/uRk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MFErhLmD/NEcUiQUZo/UXiRhCkyf465QQrBj5IPJ4us=; b=HgGQNsyVpAOUMw2mhPRzukw0KT7kilFzjjtqtHo2nTp2Wn02jDWCfy2gKB8CdeAM78 8fdb2/gq3B3sBMNqmBDJWj75F8MWWK8y9cAWXNEzt9tIrnRCOhxuFBgQJeFnPzKTfY7k wpV71+gl5kztA0Yvyje1ywYSPMESiDkHPj1wtsChNIhKdpKanMQf3cqKQSQuKc9bSwzV 4vBd4IM/NBbzfVkdjAV+UgHBKiosLNRISMozMzDcKVHVS1Rt/Ljh3hcJZdQUsix4VGD2 Uw1DrEvXkDMVZI7m3SGSuY6NX8LW78NHwCujM8ykm5EGDm/8bqMSZ8eEpIB4CLpgUH93 GoJQ==
X-Gm-Message-State: ANoB5pnH5ym2Rn09KUazX5LcTp+ZQsyOJpqYOsjFAz72pBRNC5mhXz2X 40W5DMBXhGoQCZsgcHyrAih7Cg==
X-Google-Smtp-Source: AA0mqf4DEcxbEZcboSptPPJOsUx8/pq6TQfapMMI4Bps+Js+MUlzQYsilM2lVOfdnuZ2WgmYAS+Teg==
X-Received: by 2002:a05:6402:3785:b0:461:e598:e0bb with SMTP id et5-20020a056402378500b00461e598e0bbmr18662728edb.21.1670409670375; Wed, 07 Dec 2022 02:41:10 -0800 (PST)
Received: from snel ([2a10:3781:276:1:16f6:d8ff:fe47:2eb7]) by smtp.gmail.com with ESMTPSA id k2-20020a17090632c200b0078db18d7972sm8220147ejk.117.2022.12.07.02.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 02:41:09 -0800 (PST)
Date: Wed, 07 Dec 2022 11:41:07 +0100
From: Job Snijders <job@fastly.com>
To: Randy Bush <randy@psg.com>
Cc: SIDR Operations WG <sidrops@ietf.org>
Message-ID: <Y5Btw4hzJkXhPwBz@snel>
References: <167034950072.33870.15369000849097187246@ietfa.amsl.com> <m2h6y89yz4.wl-randy@psg.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="OR0m9eXi88jnHo9a"
Content-Disposition: inline
In-Reply-To: <m2h6y89yz4.wl-randy@psg.com>
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/pGDPErlW1oONVKfxm8jcutYG7os>
Subject: Re: [Sidrops] Fwd: New Version Notification for draft-ymbk-9020-update-00.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: Wed, 07 Dec 2022 10:41:17 -0000

Dear Randy, others,

Thank you for working on this.

On Tue, Dec 06, 2022 at 10:19:27AM -0800, Randy Bush wrote:
> Name:		draft-ymbk-9020-update
> Revision:	00
> Title:		A Minor Update to Finding and Using Geofeed Data
> Document date:	2022-12-06
> Group:		Individual Submission
> Pages:		23
> URL:            https://www.ietf.org/archive/id/draft-ymbk-9020-update-00.txt
> Status:         https://datatracker.ietf.org/doc/draft-ymbk-9020-update/
> Htmlized:       https://datatracker.ietf.org/doc/html/draft-ymbk-9020-update
> 
> Abstract:
>    This document specifies how to augment the Routing Policy
>    Specification Language inetnum: class to refer specifically to
>    geofeed data comma-separated values (CSV) files and describes an
>    optional scheme that uses the Routing Public Key Infrastructure to
>    authenticate the geofeed data CSV files.

Looking at the RFC 9092 vs draft-ymbk-9020-update-00 diff the proposed
update indeed seems very small:
https://author-tools.ietf.org/diff?doc_1=rfc9092&doc_2=draft-ymbk-9020-update-00

I reported on the issue of RFC9092 being underspecified
https://mailarchive.ietf.org/arch/msg/opsawg/JXjxCA14BkW4DWyVoUMwqDvB17I/
and I'm happy to see this step forward to disallow 'inherit' elements. 
However, I'd like to see two additional constraints incorporated in an
9092-update:

1/ disallow AS Identifiers Delegation extensions in Geofeed EE certs.
2/ disallow SubjectInformationAccess extensions in Geofeed EE certs.

Elaboration:

1/ The motivation to disallow AS Identifiers stems from the observation
that 'the other option' (to ignore the extension if present) may lead to
interopability issues.

Imagine a scenario where an ASId listed in the Geofeed EE cert is not
covered by its parent. Some Geofeed validator implementations might
ignore the extension (and the erroneous ASId value contained therein)
altogether; and some implementations cannot trivially ignore the AS
Identifiers extension (for example consumers of libcrypto's
X509_verify_cert()), which leads to inconsistent results.

Thus, I propose adding something along the lines of:

    "The Autonomous System Identifier Delegation Extension [RFC3779] MUST
     be absent."

2/ Because Geofeed authenticators are not distributed through the global
RPKI repository system, the Subject Information Access (SIA) extension
makes no sense in the Geofeed authenticator's X.509 EE certificate. The
authenticator cannot be retrieved at the URIs in the SIA.

To simplify the profile for both producers and consumers, I'd suggest to
incorporate the following:

    "The SubjectInformationAccess Extension [RFC5280] MUST be absent."

Finally, ...

I've attached a .diff file which can be applied to draft-ymbk-9020-update-00.xml
to update the example TA/CA/EE certificates, CRLs, and CMS signatures to
conform to both RFC 9092, the additional 'inherit' constraint in
draft-ymbk-9020-update-00, and the two constraints I listed above;
additionally, a minor issue with the Basic Constraints extension is
fixed.

The new example is cryptographically valid.

    $ rpki-client -t example-ta.tal -f geofeed.csv
    File:                     geofeed.csv
    Hash identifier:          13Imr3rnt7OY9NRvCUKycaL7CGoIdvghtRnua9UuzwU=
    Subject key identifier:   07:E9:9A:FE:A1:8E:1C:B6:E1:5C:2D:D6:B8:8A:7E:B8:1C:7D:83:C0
    Certificate serial:       0
    Authority key identifier: 38:16:01:03:46:A3:40:E1:75:DA:15:50:0A:C8:BA:EA:9A:18:4E:FC
    Authority info access:    rsync://rpki.example.net/repository/3C6B33E5709C073A868C95D955B0F56E37821D7B.cer
    Geofeed valid until:      Dec 07 10:19:15 2023 GMT
    Geofeed CSV records:
        1: IP: 2001:db8::/32 (NL,,,)
        2: IP: 2001:db8::/48 (NL,NL-NH,Amsterdam,)
    Validation: OK
    
Kind regards,

Job