[Ppm] Seeking WG consensus on DAP changes for httpdir review

Tim Geoghegan <timgeog+ietf@gmail.com> Tue, 16 January 2024 23:20 UTC

Return-Path: <timgeog@gmail.com>
X-Original-To: ppm@ietfa.amsl.com
Delivered-To: ppm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 120E5C19ECBB for <ppm@ietfa.amsl.com>; Tue, 16 Jan 2024 15:20:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 (2048-bit key) header.d=gmail.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 iCKTJl8r1NKH for <ppm@ietfa.amsl.com>; Tue, 16 Jan 2024 15:20:35 -0800 (PST)
Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 3E938C17C884 for <ppm@ietf.org>; Tue, 16 Jan 2024 15:20:35 -0800 (PST)
Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-559cef15db5so439125a12.0 for <ppm@ietf.org>; Tue, 16 Jan 2024 15:20:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705447233; x=1706052033; darn=ietf.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Rlls0f1qhbsswTC7qVtthz1RWruJZWodK0CKSY0927I=; b=NvmAAqw+oHOb6E/9corEf3cV6FE2XecvHPrSQEUH7RfbH0YvifdCC0KZW1LnKmHfQC DZwwkLzU0R/wuXjRJSOA/+v5GX+Si+YVPjbKuh03icCLqcxoGj5xLjp5YuAa/SJQprov XpC6k4NoRYFhKBoXhUEqRcMcIFFHqo1osSmDkmrCkEzf6IQ2b8sOT6h6M7qRg2tUBiyf 52FvdzHtCBQAMO814jUnhQRQKohHXiOGzs2T525u7DwvUfvjUBPruvLZ9HJ4lLU2nYIw BsRPteA20K3oXue9apFjJOzs+eU4G8di3Lx4r+DeT+q5xzRmwHNruwWGMsadwpyfu0EP 7PUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705447233; x=1706052033; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Rlls0f1qhbsswTC7qVtthz1RWruJZWodK0CKSY0927I=; b=UVKyV2DLXO9LJrAXjx8tLAjZOlwx7rlPj3Mw2iaxXi0vYo0wdbeV6sl14EBvGONEhp bZKTri9AvJJ7cKGhJXIi8tp45NVlqHljVr+F87/gO+Uf0vyb7EQy4yNNS0QEyZS4zR8o s2+1vztFQ6X8j7JRTUgBIsJTlnGJvLPuHFVdDB38otA7sAPM3UvoqY+JuscRbX1r+uRD k6uhVy1AkOWDWoxicTZP8z+q8niFqI6rjb3xUauWhYqMyJBEBJJxn8+w4HZl+eoedCgc pHgpDtd32h0otgmCSsrwYkuYmQpykVSGsUVnrhWmqEiHRgF4sYo3fCEdN3Yblfz8La50 7wOw==
X-Gm-Message-State: AOJu0Yyr0L9y6WvhzDdfdzxVpUXZBycgJB4Ae6BMruS1xhg6jH9n+wGA aFxm940DYMVlVHN52ZuJ2wsZWEGz76256v9AzmN+CF2ydLQ=
X-Google-Smtp-Source: AGHT+IF4Lug8J5omV/+9RixbAImAiOycc0kLhtwpiy9ttZZLoLVQPNM4OoWliOGrverCD6qdg8u/TRByWKo+oe88yAE=
X-Received: by 2002:a05:6402:2281:b0:559:3b49:4a14 with SMTP id cw1-20020a056402228100b005593b494a14mr4403822edb.9.1705447232575; Tue, 16 Jan 2024 15:20:32 -0800 (PST)
MIME-Version: 1.0
From: Tim Geoghegan <timgeog+ietf@gmail.com>
Date: Tue, 16 Jan 2024 15:20:20 -0800
Message-ID: <CACsY-OdvMD36rVM2WN+SuLyB15kgsO75dpGQgdC+BrzVeh5+RA@mail.gmail.com>
To: ppm <ppm@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007b1cb3060f186036"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ppm/x5mYJUbUYp5ePuL3K-WM0JWqlcs>
Subject: [Ppm] Seeking WG consensus on DAP changes for httpdir review
X-BeenThere: ppm@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Privacy Preserving Measurement technologies <ppm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ppm>, <mailto:ppm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ppm/>
List-Post: <mailto:ppm@ietf.org>
List-Help: <mailto:ppm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ppm>, <mailto:ppm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Jan 2024 23:20:39 -0000

Hello all,

Late last year, the PPM chairs requested that the HTTP directorate review
DAP's utilization of HTTP. httpdir's Mark Nottingham was kind enough to
share the early review toward the end of the year ([1]), which has been
discussed in some detail in the list ([2]).

We've already taken some changes to DAP suggested in the review, but now
there's a few outstanding items where I (in my capacity as an editor of
DAP) feel there isn't yet sufficient WG consensus to either motivate a
change or determine which change we should choose. What I want to do here
is surface a few specific questions among the various things discussed in
[2] and get clear consensus to move forward with.

# Upload request path and method

Currently, report uploads consist of a PUT request to
{leader}/tasks/{task-id}/reports. This isn't quite right because there's no
GETtable resource that results from this. I have a PR up ([3]) which
addresses this by hoisting the report ID into the request path and removes
it from the request body. Another, simpler choice would be to change the
request method to POST, note that the request is idempotent and change
nothing else.

See the linked PR for some discussion of the tradeoffs. At the moment, I'd
say the consensus is leaning toward changing the method to POST but other
opinions are welcome!

# RFC 6570 URI templates

DAP defines a very simple syntax for URI templates in [4]. RFC 6570 ([5])
defines a rich syntax for URI templates that is more than sufficient for
DAP's needs but includes many features we wouldn't use. What we've got
works fine so I am inclined to stick with it, but we could choose to use
RFC 6570, too. At the moment, the consensus leans toward not doing this.

Note that besides establishing consensus in favor of doing this, **we also
would need a volunteer to make the DAP changes to adopt RFC 6570**.

# Greater resource URI flexibility

It was also suggested that instead of having DAP mandate specific URI
templates, we could instead require aggregators to expose a JSON document
which would contain URI templates, allowing individual implementations or
deployments to use different request paths. This is akin to the directory
resource in ACME ([6]). Personally I don't think this is necessary, and
wouldn't want to introduce an extra HTTP roundtrip into interactions like
report uploads. But the WG, especially members with more experience
deploying HTTP servers than I have, should get a chance to weigh in. Once
again, **a volunteer would be needed to design the new resource and write
the new protocol text**. At the moment, I'd say the consensus is not to do
this.

Looking forward to hearing from you all,
Tim

[1]:
https://datatracker.ietf.org/doc/review-ietf-ppm-dap-09-httpdir-early-nottingham-2023-12-29/
[2]: https://mailarchive.ietf.org/arch/msg/ppm/JaaD-6XqGP8GclS26-mtAC77tX8/
[3]: https://github.com/ietf-wg-ppm/draft-ietf-ppm-dap/pull/543
[4]:
https://datatracker.ietf.org/doc/html/draft-ietf-ppm-dap-09#name-resource-uris
[5]: https://datatracker.ietf.org/doc/html/rfc6570
[6]: https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.1