Re: [httpapi] Discussion of adopting Content-Warning header

Asbjørn Ulsberg <asbjorn@ulsberg.no> Thu, 28 January 2021 09:35 UTC

Return-Path: <asbjorn@ulsberg.no>
X-Original-To: httpapi@ietfa.amsl.com
Delivered-To: httpapi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 073C03A147B for <httpapi@ietfa.amsl.com>; Thu, 28 Jan 2021 01:35:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ulsberg.no
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 cpgXbyDpA3TG for <httpapi@ietfa.amsl.com>; Thu, 28 Jan 2021 01:35:30 -0800 (PST)
Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (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 071DD3A1466 for <httpapi@ietf.org>; Thu, 28 Jan 2021 01:35:29 -0800 (PST)
Received: by mail-qk1-x732.google.com with SMTP id a7so4600035qkb.13 for <httpapi@ietf.org>; Thu, 28 Jan 2021 01:35:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ulsberg.no; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=P6rdE0Nkg4p/wbwi72VQ0D+WHQbrhtnlswkL55x9VJk=; b=lanfa6xMavLJD66nhzQ0az/hbg3emq3TXF0nwQzCmdXi/8s/u9fvOc0nXNGDNZkzGr AQOLMkyFZZMwMzosrtfd1SpinCwyeP06touBLS10kGxOaQxXiWURPAfl6cVcCPQiwsy9 sm8imGT10xs2QUSkhFfklsrFvoWNego5H8cj3qr9cCcS+ufx9WuaOLY01ApBlhWf15A7 aWKpBye+yjKsDu4IepQ77WCUgM/Xr1keud3n75EYt9DrTBYcyuwFLwoEWP7n5jBZrXt1 hD4+nSLixbvOxoTsm1c2m6LCT/Ao38WzlLMV2eW18tRAhrHew5oZWcDdwbe3vN4qUetY s+/w==
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:content-transfer-encoding; bh=P6rdE0Nkg4p/wbwi72VQ0D+WHQbrhtnlswkL55x9VJk=; b=QlrCokiGs7XpfiUv+fnviwDu+Wil22t8qmWz9S6eycsCM7LAYoNYB74NDp3Q+I53MX PoVkAobNgt8z2DkEp71sHsPDH/dEBvXyi+/9qpsyOP/6K9lmaHnGOfhlhEsXctyX7kGN mVcdG55RmRc76zPWS/0yEodZzCKIwy0E4s2Uw3OpqLISgxOz5sqB+Qn659l3X2tZ3EjW gcDSefrUj/gDPjL7l7s0U7IBdkst6BAHxhmn5pSF2/kzfHHqDAzD1IxA5xMlgTa9tzj/ ByoXdLT6kPPwVJWiavJhrcMRs/HjtWFKzswEw3bwzYMJjiq+hXkg1gBUC/BrIrrX/NdV ttHg==
X-Gm-Message-State: AOAM531a4AFGs2uWhmGUtliZzJL63Ig2vYM+NbZfyNkOT3ujkuFlKTDA T7aTfTx19VPRrm+mQ177/3NuDEfv3jxRRQ==
X-Google-Smtp-Source: ABdhPJwSN1URUKaaJHTkz2NoaJcRMboGCyX2xUW5pz8LxQeWzBG/TO1ujwodso2GFSj4KcTR5+KVFQ==
X-Received: by 2002:a37:6848:: with SMTP id d69mr10259422qkc.257.1611826528655; Thu, 28 Jan 2021 01:35:28 -0800 (PST)
Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id 196sm3124828qkl.4.2021.01.28.01.35.27 for <httpapi@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 01:35:27 -0800 (PST)
Received: by mail-yb1-f175.google.com with SMTP id k4so4832210ybp.6 for <httpapi@ietf.org>; Thu, 28 Jan 2021 01:35:27 -0800 (PST)
X-Received: by 2002:a5b:410:: with SMTP id m16mr23222857ybp.451.1611826527284; Thu, 28 Jan 2021 01:35:27 -0800 (PST)
MIME-Version: 1.0
References: <88ED49DB-E081-4C97-9FB9-080A1C585435@akamai.com> <C6EF74FA-4987-48EB-8F7B-74EB54C295CD@mnot.net> <CAEQcYZhF4X9c+4zknGvCQgW4mgcemMTG66dhH6S7=9bVDjmeYQ@mail.gmail.com> <C3A31FE3-A2DA-4A8C-B18E-0D1DFD999E12@mnot.net> <CAMRHeuxYb215q5M0e2UPNA2d=DSv0D8VeXEKH2NZUqTXOMUmhg@mail.gmail.com>
In-Reply-To: <CAMRHeuxYb215q5M0e2UPNA2d=DSv0D8VeXEKH2NZUqTXOMUmhg@mail.gmail.com>
From: Asbjørn Ulsberg <asbjorn@ulsberg.no>
Date: Thu, 28 Jan 2021 10:35:16 +0100
X-Gmail-Original-Message-ID: <CAEdRHi7EShj3cNqkQpNsMHsYvOqrEu2LY9qOimZ-DL1SCL=OgQ@mail.gmail.com>
Message-ID: <CAEdRHi7EShj3cNqkQpNsMHsYvOqrEu2LY9qOimZ-DL1SCL=OgQ@mail.gmail.com>
To: Roberto Polli <roberto@teamdigitale.governo.it>
Cc: Mark Nottingham <mnot@mnot.net>, "httpapi@ietf.org" <httpapi@ietf.org>, André Cedik <andre.cedik@googlemail.com>, "Salz, Rich" <rsalz=40akamai.com@dmarc.ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/httpapi/whQn-K6ePPCujcnF5VveYn9TCUE>
Subject: Re: [httpapi] Discussion of adopting Content-Warning header
X-BeenThere: httpapi@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Building Blocks for HTTP APIs <httpapi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/httpapi>, <mailto:httpapi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/httpapi/>
List-Post: <mailto:httpapi@ietf.org>
List-Help: <mailto:httpapi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/httpapi>, <mailto:httpapi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Jan 2021 09:35:34 -0000

3 tor. 28. jan. 2021 kl. 09:50 skrev Roberto Polli
<roberto@teamdigitale.governo.it>:

> imho there is a general interest in a replacement of the `Warning`
> header (eg. to set alerts in payload-agnostic monitoring systems).

I also envision the utility of intermediaries adding Content-Warning
to indicate trouble understanding the request or response in one way
or another, which may lead to a much better developer experience when
these intermediaries are added to a request or response pipeline.

> My suggestion to André - that may still not address Mark's concerns - is to:
> 1- dis-entangle his proposal from the `Content` (eg. `Api-Warning`)

+1. I think "Warning" is a good name, but think it has greater utility
in being general and content type agnostic. Think about a reverse
proxy being configured to perform CSS minification, for instance; if
it fails parsing the CSS, it can leave the CSS untouched but add a
Warning in the response regarding the syntax error it encountered.

> 2- retain the "warning-type" registry, which can specify the type of
> warning including content-warning

On first skimming of the draft, I actually thought the "type" was
equal to "type" in RFC 7807, i.e. a URI. I was both surprised and a
bit disappointed to learn that was not the case.

I think having a registry for different warning types adds needless
friction and bureaucracy, without providing much benefit. Using a URI
like in RFC 7807 allows the same types already minted for problem+json
to be reused, allows for distributed and friction-free creation of
types and makes it possible for type URIs to be dereferenced directly
in order to read more about why the warning occurred and how it can be
remedied.

-- 
Asbjørn Ulsberg           -=|=-        asbjorn@ulsberg.no
«He's a loathsome offensive brute, yet I can't look away»