ratelimit headers draft: forbid using timestamps

Roberto Polli <robipolli@gmail.com> Mon, 07 October 2019 15:11 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E53B31208BF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 7 Oct 2019 08:11:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.751
X-Spam-Level:
X-Spam-Status: No, score=-2.751 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 QygOMX7TwOiq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 7 Oct 2019 08:11:33 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (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 89B7B1208AC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 7 Oct 2019 08:11:33 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1iHUcv-00015O-QD for ietf-http-wg-dist@listhub.w3.org; Mon, 07 Oct 2019 15:08:45 +0000
Resent-Date: Mon, 07 Oct 2019 15:08:45 +0000
Resent-Message-Id: <E1iHUcv-00015O-QD@frink.w3.org>
Received: from mimas.w3.org ([2603:400a:ffff:804:801e:34:0:4f]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <robipolli@gmail.com>) id 1iHUcu-00014k-JX for ietf-http-wg@listhub.w3.org; Mon, 07 Oct 2019 15:08:44 +0000
Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <robipolli@gmail.com>) id 1iHUct-00077H-GT for ietf-http-wg@w3.org; Mon, 07 Oct 2019 15:08:44 +0000
Received: by mail-vs1-xe2e.google.com with SMTP id d204so9098177vsc.12 for <ietf-http-wg@w3.org>; Mon, 07 Oct 2019 08:08:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=dCFrrzQuSWJASbGUU0qm+v+R0WwTwMNpA66z16EXlvA=; b=AyrMJ/Y6xYbunFKiKUYNkD823PnXCqTNiCYgkEETRHHWddoFS+hBU9cP65BzwDD7T+ 7QZ/SKSmrH7q1btQgi5m2V6UV6Dm1hT/vmGRqdTlhRHW1HeSubC2XOJsIfnOH3Z7OYLT 7+izt02S59P/XngUV1D70oF0pqxOUfo0UKaB/X39C4o0lQAhB8lJSmE84ef3QPnTKnPV crIaRJqo6pRL5GekBy7lv4bTFs+I4V+cHNTWhXlZT1sisRZiNAvaDqhiBECdGjWkuWl9 9olw5IfB8zyr+k/V9zdoyjzuwb/Vlf1cs1ocxJKROZ0ACTu547jxX849z6D0FAYx/yJ+ ScpQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=dCFrrzQuSWJASbGUU0qm+v+R0WwTwMNpA66z16EXlvA=; b=LXjjCrqfrZ3paKh6reqcLy7zrHGUyueOJnd8gngUfPfbtspsrCrkzNKEVnaFI2sg4w 4kaogzltWd1twU0tVWMz4fJUy644n58/U0k5W76i4JviEm4C8J2d+O6jAtc0zMnzcTm2 nYdCVXuXThRjaZCCFPxDrloYrULOHPXnmWTzyzc+OAVlXoqQU/cmUTplulzQLOuNYBa9 tHgkMyVfMipM5AO706xCHSEhdaL4kcqd8qHb6s88jOi66MxIHanMd9K6pprlcgCgb1KW 7XH6vTQmVTHmbh0ju6s6K+wm6kFQdnl7Y4q5608DdVDMq9zEPG7EeZ9tS3YmSolC0THz J/zA==
X-Gm-Message-State: APjAAAUv0lRwu4ZEY/y6Qt3VOWIlrGlVXYmswNhh9WCzsF1aglWHnyOM 40ZSVVSku4icCElJN+fFjhJidyF9WLzIc4skYDJsXW62Eoo=
X-Google-Smtp-Source: APXvYqwwHy4e08rCELmRyqjgBs1GhwtKlHXz1kUEdMEu/J26jo+T8jQc8UiYT3WDiATGP/mOSvkLvNi4mdjcqS8PmEM=
X-Received: by 2002:a67:fbd8:: with SMTP id o24mr15532509vsr.180.1570460901570; Mon, 07 Oct 2019 08:08:21 -0700 (PDT)
MIME-Version: 1.0
From: Roberto Polli <robipolli@gmail.com>
Date: Mon, 7 Oct 2019 17:08:09 +0200
Message-ID: <CAP9qbHXEVZ9Wn4kR=jJq=nwK4WFRhWwZsB1roeGQYZdreYaAzQ@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Cc: Alex Martinez <amr@redhat.com>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::e2e; envelope-from=robipolli@gmail.com; helo=mail-vs1-xe2e.google.com
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=1.833, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1iHUct-00077H-GT ad4a8652b6206245e4dcefae3be22b8d
X-Original-To: ietf-http-wg@w3.org
Subject: ratelimit headers draft: forbid using timestamps
Archived-At: <https://www.w3.org/mid/CAP9qbHXEVZ9Wn4kR=jJq=nwK4WFRhWwZsB1roeGQYZdreYaAzQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37041
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi @all

while standardizing ratelimit headers [1],
we are considering to only support the delta-second notation
eg:

RateLimit-Reset: 5    ; quota resets in 5 seconds

And forbid other formats like:

RateLimit-Reset: 1570459715
RateLimit-Reset: Tue, 15 Nov 1994 08:00:00 GMT

This is also because both UNIX Timestamp and IMF-fixdate
require proper working ntp, which is:

- subject to skew and adjustment;
- not necessarily aligned b/w client and server.

Your feedback on the issue below would be precious:

- https://github.com/ioggstream/draft-polli-ratelimit-headers/pull/62

Thanks for all your help,
R.

[1]: https://github.com/ioggstream/draft-polli-ratelimit-headers