Re: [Sidrops] proposed, revised text for Section 6

Tim Bruijnzeels <tim@nlnetlabs.nl> Thu, 07 May 2020 10:40 UTC

Return-Path: <tim@nlnetlabs.nl>
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 C5F473A0B7E for <sidrops@ietfa.amsl.com>; Thu, 7 May 2020 03:40:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nlnetlabs.nl
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 kJpvZFHVDjM6 for <sidrops@ietfa.amsl.com>; Thu, 7 May 2020 03:40:07 -0700 (PDT)
Received: from dicht.nlnetlabs.nl (dicht.nlnetlabs.nl [185.49.140.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A2E653A0B7F for <sidrops@ietf.org>; Thu, 7 May 2020 03:40:07 -0700 (PDT)
Received: from [IPv6:2001:981:4b52:1:1cf9:f327:7f8b:f81b] (unknown [IPv6:2001:981:4b52:1:1cf9:f327:7f8b:f81b]) by dicht.nlnetlabs.nl (Postfix) with ESMTPSA id 4D1AF2D32A; Thu, 7 May 2020 12:40:05 +0200 (CEST)
Authentication-Results: dicht.nlnetlabs.nl; dmarc=fail (p=none dis=none) header.from=nlnetlabs.nl
Authentication-Results: dicht.nlnetlabs.nl; spf=fail smtp.mailfrom=tim@nlnetlabs.nl
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nlnetlabs.nl; s=default; t=1588848005; bh=BaeuJgVJRZD+VrE/+mpuD66qXpWghnj4TMCfAvh+iS8=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=pPHRgeyXCf8dEb0Gq+7AUpNyrm/y/7xwhwbAifWNuODJsaF01kSzk7+SZRUfdbUxj P6wT/ezXlQEaN/SMjwZBd4tsP0ismELxmgpyFf792s5xsmGk/D2q8syAhBKprSb011 GpE3i+qAiynw5xYbEPsP/GjhdKa2oOvNXrhgzdKU=
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\))
From: Tim Bruijnzeels <tim@nlnetlabs.nl>
In-Reply-To: <526818da-c518-52d7-f9bf-799f1eb6637e@verizon.net>
Date: Thu, 07 May 2020 12:40:04 +0200
Cc: sidrops@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <8816E312-F721-48E9-A025-C3409CCE27A3@nlnetlabs.nl>
References: <557f0928-c7b1-4b8d-b3b6-078733f7ef8a.ref@verizon.net> <557f0928-c7b1-4b8d-b3b6-078733f7ef8a@verizon.net> <20200505121353.GB93200@vurt.meerval.net> <526818da-c518-52d7-f9bf-799f1eb6637e@verizon.net>
To: Stephen Kent <stkent=40verizon.net@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3608.60.0.2.5)
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/1qlOKMWtNBCMA_pdj3b5YqJrxtw>
Subject: Re: [Sidrops] proposed, revised text for Section 6
X-BeenThere: sidrops@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 07 May 2020 10:40:09 -0000

Hi Steve, all,

> On 5 May 2020, at 22:09, Stephen Kent <stkent=40verizon.net@dmarc.ietf.org> wrote:
> 
>>> 6.5. Mismatch between Manifest and Publication Point
>>> 
>>> If there exist valid signed objects associated with a CA instance and
>>> they do not appear in any current, valid manifest for this CA
>>> instance, these objects MUST be ignored by an RP, and a warning MUST
>>> be issued.
>> Are we sure about the above? The above approach would preclude us from
>> using the current valid manifest to determine which .roa files should be
>> deleted from the local system, right?
> I'm not an implementer, but can't one delete cached roa files based on them not appearing in the current, valid manifest?

We may be intending the same thing here. Generally speaking I am in favour of not deleting any objects because of rsync --delete, or updates / withdraws in RRDP only. So add things only, and delete them when you have seen a signed statement that the objects are no longer relevant.

The repository server is essentially untrusted by the RP, or should be! Definitely when using rsync, but RRDP with self-signed HTTPS is also highly questionable. Changing RRDP to say that TLS Verification MUST be done can help a bit, but even then there are issues with web TAs, and it could be that the repository server itself is compromised.

But details around this can be complicated. I don't think that we can specify one way to do deal with this that will be acceptable to all RP implementation. There is more than one way to do it, and therefore it may be better to specify the boundaries of what an RP MAY or MAY NOT do regarding caching.

I think the following consideration should be kept in mind:

1) stale/expired mft

Do NOT just delete things because the CA did not issue / you did not see a new current MFT. Only delete if you see a new current MFT that confirms that something is no longer relevant.

2) poisoning

Be careful if you rely on the SHA256 hashes only. I could include your object on my MFT and then remove it in an update. This should not remove your object from the cache.

3) key rolls

New keys may publish updated delegated .cer files under the same name. Be careful when just relying on the URIs.

4) require confirmation: rsync delete / RRDP update/withdraw?

If delegated .cer files are removed, should their content also be removed? Maybe. But what if this is a temporary issue at the parent? The child would not typically re-publish things. You will not see a new delta.

There is something to be said for deleting objects only if they are removed at the repository *AND* they are actively removed by a new manifest.

I have some ideas about how I would make this work if I were to implement something, but I do not presume that that would be the only or best way.

Note that different implementations regarding this will lead to differences in the availability of cached objects. But they would not lead to different validation outcomes based on the same set of objects.


Tim