Re: [Trans] Gossip URL version

Andrew Ayer <agwa@andrewayer.name> Wed, 15 March 2017 21:48 UTC

Return-Path: <agwa@andrewayer.name>
X-Original-To: trans@ietfa.amsl.com
Delivered-To: trans@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3E127129C03 for <trans@ietfa.amsl.com>; Wed, 15 Mar 2017 14:48:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=andrewayer.name
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 qYy8gnUKXx_e for <trans@ietfa.amsl.com>; Wed, 15 Mar 2017 14:48:36 -0700 (PDT)
Received: from alcazar.beanwood.com (alcazar.beanwood.com [70.85.129.230]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 70C2F129C26 for <trans@ietf.org>; Wed, 15 Mar 2017 14:48:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=andrewayer.name; s=beanwood20160511; t=1489614512; bh=WNr9JhG1q25/cuQPjIPHJxv9JFWDzBRWn40Xk8iKg9Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=iiEmgoTPzisAnfbFdIP8McP6lu2AWqUnX8fkZsF4+gHLhEtaESHnUSldXdK3uRlb2 09aXMSm6Vwj1+j/5sReanUP6u+UXjN2GGZYiSTcf0mXU705rfRxLQakKveR6syV7et W9Zg0AfSVsWRoZAG6L6gLOPoretagwMqIU7983fynjdKqPHQg8x6htENChj6mHB9ZW nm8wJpnnwqMtcmHzoti6fttqtWl8d/OYvfC/eGlnUTRCqypn+A2IsrUIlba2uhcSDY 6od1MKMkRsgaVQmuAOlnWl2i7s8yiJ2aYn0If7sG4sQDO1IJ3q+/4FkxPfrNItn4X4 n6rDTwzDqYwSQ==
Date: Wed, 15 Mar 2017 14:48:32 -0700
From: Andrew Ayer <agwa@andrewayer.name>
To: Linus Nordberg <linus@sunet.se>
Cc: Kurt Roeckx <kurt@roeckx.be>, trans@ietf.org
Message-Id: <20170315144832.8dd517ff9b5010035a17fe49@andrewayer.name>
In-Reply-To: <87varauv5t.fsf@nordberg.se>
References: <20170315195838.iypfur5rg4bgysq6@roeckx.be> <87varauv5t.fsf@nordberg.se>
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/trans/0ZjB7m0-I8wOD0L1801YxteFbO0>
Subject: Re: [Trans] Gossip URL version
X-BeenThere: trans@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Public Notary Transparency working group discussion list <trans.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/trans>, <mailto:trans-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/trans/>
List-Post: <mailto:trans@ietf.org>
List-Help: <mailto:trans-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/trans>, <mailto:trans-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Mar 2017 21:48:37 -0000

On Wed, 15 Mar 2017 21:44:46 +0100
Linus Nordberg <linus@sunet.se> wrote:

> The gossip protocol should work for both CT v1 and CT v2. If it
> doesn't, we should fix that. If that's not possible, let's define a
> gossip protocol version two.

The sth-pollination protocol defined in draft-ietf-trans-gossip-04
could work with v1 STHs, but section 8.2.4 says it contains an
array of v2 STHs:

"sths - an array of 0 or more fresh SignedTreeHeads as defined in
[RFC-6962-BIS-09] Section 3.6.1."

For this reason, I've been implementing draft-ietf-trans-gossip-00,
which uses v1 STHs and uses the URL .well-known/ct/v1/sth-pollination.

Should I be using the URL defined in -04 instead?

Incidentally, -04 is not entirely clear how STHs are represented.
RFC6962-bis no longer defines a JSON representation for STHs.  Instead
STHs are returned in JSON responses as base64-encoded SignedTreeHeads.
Does this mean that the sth-pollination protocol should use a JSON
array of strings, possibly mixed with JSON objects for v1 STHs?

Regards,
Andrew