Re: [Trans] Long Poll

Eran Messeri <eranm@google.com> Thu, 21 March 2019 16:04 UTC

Return-Path: <eranm@google.com>
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 25D34131450 for <trans@ietfa.amsl.com>; Thu, 21 Mar 2019 09:04:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.5
X-Spam-Level:
X-Spam-Status: No, score=-17.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 6WWyo-BNUBur for <trans@ietfa.amsl.com>; Thu, 21 Mar 2019 09:04:27 -0700 (PDT)
Received: from mail-yw1-xc2e.google.com (mail-yw1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17952131368 for <trans@ietf.org>; Thu, 21 Mar 2019 09:04:10 -0700 (PDT)
Received: by mail-yw1-xc2e.google.com with SMTP id v127so5125552ywe.13 for <trans@ietf.org>; Thu, 21 Mar 2019 09:04:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PllxSdX5ZSSgJhkGOv8PzXcWR1uNXoXSOlpJ2WmpiSQ=; b=Mm8nGiiSjNbgTot5shfFo4T7iJ2qWcTFok7X1bZnL4mzgbdC/+ZrmipCNPvneCiASZ az81zOJiEcOo8jg5qbKHF8widSvcFXjagtr4ppJjfH3wXP2Sq2MPlWqHgrpB3GsOWnOk s+WaQ3Ub64Fg5t0eL35T14k89a+29vsQ/yJIa87cIWnaLNBWPIjLnRRzEfyZXfa5x0SX yfqkK6OngRChGAVQC1eEE20w8CCPW8xfyRvMqGWLxwpwXiNSIum9BaXmi+SUxUK2k4MK RXp96L1YDDFO9UWib+cremZkxQpHlA1I3S57iNtDDxDzbEcnlbhrVVqv2/i7/T10wumh p7bg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PllxSdX5ZSSgJhkGOv8PzXcWR1uNXoXSOlpJ2WmpiSQ=; b=Y3ld0JUs1/WDoyBAp6qgkSAovUeIbvtWdIQbNDuBDLRRy49wq/irS8C5QPPb55t7dO CDlPI0uOyTMDv/Drwtvo/Fb92khKOs9BbWChODz8Q7aQy3c0L0wq+4sJXY6Gs2QybaXk tRjrXMhtZOwt2xZAKlIGmFBTb8eVKJgrURSjJmd6vkgw1NDLZoK3V4yHJXcyJaR+MZbC r90UH4QuaKSMjI877oKKSGbsOyGXwgYzLdPHQT0bOPwOKqSdRoiMkfcDeFZedRrVlmOt GgL5eq86UkbSdkpzDo3abMKdv1wrzbq8dBx7IaatvApNRJm1hp0oAUnGNvXyEUufc7u+ eV3g==
X-Gm-Message-State: APjAAAUWbkP1sTUpFRDPsK5fJwn+eA/PkQbGugmGFwtEzj+DlECIsolo Q6CpPHRNtJgcOAvyZCw6+S77rzQxWSxyNkW1BkEKBQ==
X-Google-Smtp-Source: APXvYqy32CLT+3ij3OpKBqbGHuAIcch8OTkS9zqjx3GzN/D+FdatWWN32RA0lfcP/QENifK56KeXScGCLKbOPXS42Jo=
X-Received: by 2002:a81:9484:: with SMTP id l126mr3583698ywg.209.1553184248942; Thu, 21 Mar 2019 09:04:08 -0700 (PDT)
MIME-Version: 1.0
References: <1553165248.1179.0@smtp.gmail.com>
In-Reply-To: <1553165248.1179.0@smtp.gmail.com>
From: Eran Messeri <eranm@google.com>
Date: Thu, 21 Mar 2019 16:03:44 +0000
Message-ID: <CALzYgEfEgO2R_SwsAE-UtqV0rPAX9trcREt2jCTw_i1OHsXQFg@mail.gmail.com>
To: Evgeny <xramtsov@gmail.com>
Cc: "trans@ietf.org" <trans@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000006e386205849ce313"
Archived-At: <https://mailarchive.ietf.org/arch/msg/trans/mUoPNoDdlML8sTHRAG-__5kCnL0>
Subject: Re: [Trans] Long Poll
X-BeenThere: trans@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 21 Mar 2019 16:04:36 -0000

To put simply, the answer is no, there's no "long poll" endpoint and no
plan to add it to the spec.

The reason is it doesn't make sense to ask for new entries unless you know
they're there - by first calling get-sth to learn of a new tree head.

Generally the protocol is designed for auditing for tree consistency by a
client/monitor that observes STHs, fetches entries for the tree at the
specified size and validates the root hash published matches the one
calculated from the entries.

IIRC there are monitors that offer a polling service.

On Thu, Mar 21, 2019 at 10:47 AM Evgeny <xramtsov@gmail.com> wrote:

> I briefly read the rfc6962-bis I-D and didn't find whether it is
> possible to continuosly receive new entries. In Section 5.2 there is
> "/ct/v2/get-entries" request, but seems like it instantly returns
> entries or just an empty result. Is it possible to retrieve new entries
> via "long poll"? If not, is it planned to add this functionality to the
> spec? I find it weird to constantly issue GET requests in a loop.
>
> _______________________________________________
> Trans mailing list
> Trans@ietf.org
> https://www.ietf.org/mailman/listinfo/trans
>