Re: [dispatch] Éric Vyncke's No Objection on draft-ietf-dispatch-javascript-mjs-12: (with COMMENT)

Mathias Bynens <mths@google.com> Mon, 03 January 2022 12:43 UTC

Return-Path: <mathiasb@google.com>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E62813A12DD for <dispatch@ietfa.amsl.com>; Mon, 3 Jan 2022 04:43:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.099
X-Spam-Level:
X-Spam-Status: No, score=-17.099 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, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=unavailable 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 WsX2vMg9WQy7 for <dispatch@ietfa.amsl.com>; Mon, 3 Jan 2022 04:43:29 -0800 (PST)
Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 CB2A73A12DE for <dispatch@ietf.org>; Mon, 3 Jan 2022 04:43:29 -0800 (PST)
Received: by mail-pf1-x429.google.com with SMTP id u20so29317183pfi.12 for <dispatch@ietf.org>; Mon, 03 Jan 2022 04:43:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DgMHS8XVAUyIDIx0UYaIkBiS1AvyonYrvnOTlFYE2Ds=; b=BNTWfEoKtc2YlA9437S05/FmtZ7o4ehmaB30+oCz3wqxTK0Uv00a71b8ITdj3Il2Su kc1mrbFWNz0Eotop+DuHQHti13+CKBZXtdPcCKdS/Rkg5IANTVUANsYFTKecWhkK6umm ldX3bB1pLbX4FwC/rn24X7vDVeur6c8gITwVB7Dki8o0JirDfVBXTpKIt53oIxEOG3VL N2b5gWeF1hVPQNjSvXQyvMVarLC5mGsGqHrzCtQ5R2jyCV37KfdseRLoAmk03iCKNiVW 43OEEqchpM985vzYZrCkb1Sbnzre9MwbnrtCkznRHhL0D/imY3/x4SjO4gB9fyS1KvfG JRGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DgMHS8XVAUyIDIx0UYaIkBiS1AvyonYrvnOTlFYE2Ds=; b=gk+nrbu26c8wno0ztFhC5coZqscyAdMgEwqdjXME1IIZnVApwiQJOpKHr1AXkSsAA1 dJgkUB00zU+UsEbnPiyKowwbLISmsS52f/j42FpTrsSD9OiCBOwPL8CIVuoG7gvpqFNU eIcZo1y1Z5Tn2bhoLCBPuT5SM5oZdC1ixrNuFUU93Ot1NcAWqNI+CiyO8Gt6mS7FSWf7 CTpgrqhyK7wlh6Ws/bgPaOWOLN6vXEA4lFtH+MorcEjje4PPCJbZ5dRAIWRwvNiI/Czh SFK9XsyLZxMcO46PJ4o/ZzekIohwhuNGvshkPLAYSbX2g6gosCyuWuiRNumZE3bzpISs Pssw==
X-Gm-Message-State: AOAM532ixiBlO9KrPBL45ErivKhQ8/78ZGQACqfZ3fjBlMt3gxJsVC9F Zu0WLlzTxGIxKX1gMPrUY+u70I6ABwUmvMoksnRp8g==
X-Google-Smtp-Source: ABdhPJwZG3Dx7XYyVydsXfqtIpTlaPvdTUiDXMcAp5rVdnXufxEO6e18GSacMS69u9+x5bxtkyzjxAZY32wDeqe5Jdk=
X-Received: by 2002:a62:150f:0:b0:4ba:bac8:e8c5 with SMTP id 15-20020a62150f000000b004babac8e8c5mr45929246pfv.22.1641213806746; Mon, 03 Jan 2022 04:43:26 -0800 (PST)
MIME-Version: 1.0
References: <164121216097.11389.15651087256093939724@ietfa.amsl.com>
In-Reply-To: <164121216097.11389.15651087256093939724@ietfa.amsl.com>
From: Mathias Bynens <mths@google.com>
Date: Mon, 03 Jan 2022 13:43:14 +0100
Message-ID: <CADizRgaZE3TRKdH-uCruOikGGEnH1wQF2X6rtqmnLRHKiUKMMQ@mail.gmail.com>
To: Éric Vyncke <evyncke@cisco.com>
Cc: The IESG <iesg@ietf.org>, draft-ietf-dispatch-javascript-mjs@ietf.org, dispatch chairs <dispatch-chairs@ietf.org>, DISPATCH WG <dispatch@ietf.org>, Ben Campbell <ben@nostrum.com>
Content-Type: multipart/alternative; boundary="000000000000f40d6505d4acdd6b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/CIrKIgaAjmhOqkEUuJQRFmW_JaM>
Subject: Re: [dispatch] Éric Vyncke's No Objection on draft-ietf-dispatch-javascript-mjs-12: (with COMMENT)
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dispatch/>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Jan 2022 12:43:34 -0000

Thanks for taking a look, Éric. On behalf of the authors, I’ll respond to
your comments inline:

On Mon, Jan 3, 2022 at 1:16 PM Éric Vyncke via Datatracker <noreply@ietf.org>
wrote:

> Éric Vyncke has entered the following ballot position for
> draft-ietf-dispatch-javascript-mjs-12: No Objection
>
> When responding, please keep the subject line intact and reply to all
> email addresses included in the To and CC lines. (Feel free to cut this
> introductory paragraph, however.)
>
>
> Please refer to https://www.ietf.org/blog/handling-iesg-ballot-positions/
> for more information about how to handle DISCUSS and COMMENT positions.
>
>
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/
>
>
>
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
>
> Thank you for the work put into this document.
>
> Please find below ssome non-blocking COMMENT points (but replies would be
> appreciated even if only for my own education), and some nits.
>
> Special thanks to Ben Campbell for the shepherd's write-up including the
> section about the WG consensus for this update and on RFC 4329.
>
> I hope that this helps to improve the document,
>
> Regards,
>
> -éric
>
> == COMMENTS ==
>
> -- Section 3 --
>
> Is TC39 so well-known by the IETF community that no expansion/explanation
> is
> required?
>

TC39 is the standards body in charge of ECMAScript, a.k.a. the JavaScript
language. The only mention of “TC39” in the draft gives the following
context:

```
   The TC39 standards body for ECMAScript has determined that media
   types are outside of their scope of work [TC39-MIME-ISSUE].
```

What would you consider to be missing? Happy to expand on this.


> -- Section 5 --
> This security section is pretty extensive (good thing) and I wonder
> whether it
> is relevant to this document as it is not related to the media types
> themselves
> but more on the scripting language itself.
>

Two notes:

1. The security section builds upon the one from RFC4329 (
https://datatracker.ietf.org/doc/html/rfc4329#section-5) which our draft
aims to supersede. Removing it would be a regression.
2. I see your point — the security risks are *mostly* related to the
language. IMHO the security section is still worth including, as for e.g.
browser implementations, the MIME type is what determines whether a given
resource is processed as a script or not. Thus, failing to respect the
media types as stated (e.g. accepting additional, non-standard media types
as if they were JavaScript) would constitute a security risk.

== NITS ==
>
> -- Section 4.2 --
> Suggestion, add "else" on steps 2 and 3 to be clear.
>

This section was inherited from RFC4329 as-is, and we’ve been hesitant to
make changes to it. However, this change seems small and harmless enough,
so I’ve prepared a patch here:
https://github.com/linuxwolf/bmeck-ids/pull/59