Re: [Uta] CBOR, XML, JSON (was Re: Updated SMTP STS Draft)

Aaron Zauner <azet@azet.org> Thu, 05 May 2016 14:38 UTC

Return-Path: <azet@azet.org>
X-Original-To: uta@ietfa.amsl.com
Delivered-To: uta@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 66EF612D8BC for <uta@ietfa.amsl.com>; Thu, 5 May 2016 07:38:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=azet.org
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 RXD32tR1Zl-j for <uta@ietfa.amsl.com>; Thu, 5 May 2016 07:38:13 -0700 (PDT)
Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com [IPv6:2607:f8b0:400e:c00::235]) (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 7540112DAFB for <uta@ietf.org>; Thu, 5 May 2016 07:29:59 -0700 (PDT)
Received: by mail-pf0-x235.google.com with SMTP id 206so38553672pfu.0 for <uta@ietf.org>; Thu, 05 May 2016 07:29:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azet.org; s=gmail; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=7ratwzrjUWf9R5V6kVilgIEvzNvN3R681r21n8ee9ZA=; b=H10FyVXktw0MHSuCri60G5AWxnAb0SFoJyWlgW6m6WaYUkgjLppwCInThuHKIv2pre dqjVnwc6+F0nuEzlH9UPEBxibauMmLd0R413hLBF2g0zcmfz6hFObuRnLVfK85SiUcSg 0lit6YEqLXxhbiL8vHP2LRCHFd5hk4GiNhsZQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=7ratwzrjUWf9R5V6kVilgIEvzNvN3R681r21n8ee9ZA=; b=bQIbyNqkbWilQj0UR6zfvtJqFN7ibOzTS9SSuHfNPwix1XqxLEcxRXX3mV3p0wpQEr b+rNLgHKmGqJk8EPPaQoUG5bQn/xYbQVh2rmoJlsGJiscn4vFyVZZirK9QYeO+HsI8C2 TLA8BCKaB4VU5PAxLcliXeuHjJmVIlkPvoX0zIenfYaL12UXHva9ipcwdPsGv7zonJTk Y3cDv4lC9a45tMRqGKb65QzViw0OkhJwVvJnuwuxpV5+nwXp5LbD7r+HoFB2W8fiIOA5 /IZ2AkSmj4t/QU0ZrfYRVSUrBeWmW3b8zcAti1gsU4vIOlKfXvBLbf+n9bsznrfF1igh 7BaA==
X-Gm-Message-State: AOPr4FX16mfcdezsM8jE+Vql4oz0DhAXkb2zphJ1kcek5DexBviFDnJHS/ZVtTKLQET6qg==
X-Received: by 10.98.18.195 with SMTP id 64mr21081784pfs.152.1462458598805; Thu, 05 May 2016 07:29:58 -0700 (PDT)
Received: from [192.168.1.234] (ppp-49-237-254-226.revip6.asianet.co.th. [49.237.254.226]) by smtp.gmail.com with ESMTPSA id ba9sm14284468pab.24.2016.05.05.07.29.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 May 2016 07:29:57 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
Content-Type: multipart/signed; boundary="Apple-Mail=_C9B90A2E-0B7C-4F21-9111-100028113F1E"; protocol="application/pgp-signature"; micalg="pgp-sha512"
X-Pgp-Agent: GPGMail 2.6b2
From: Aaron Zauner <azet@azet.org>
In-Reply-To: <20160505141746.27164.qmail@ary.lan>
Date: Thu, 05 May 2016 21:29:52 +0700
Message-Id: <BF2136BB-6406-4796-8575-6C42043F37FD@azet.org>
References: <20160505141746.27164.qmail@ary.lan>
To: John Levine <johnl@taugh.com>
X-Mailer: Apple Mail (2.3112)
Archived-At: <http://mailarchive.ietf.org/arch/msg/uta/I-4F7sHw4wyiKxeeR6REB3yQGNI>
Cc: uta@ietf.org
Subject: Re: [Uta] CBOR, XML, JSON (was Re: Updated SMTP STS Draft)
X-BeenThere: uta@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: UTA working group mailing list <uta.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/uta>, <mailto:uta-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/uta/>
List-Post: <mailto:uta@ietf.org>
List-Help: <mailto:uta-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uta>, <mailto:uta-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 May 2016 14:38:15 -0000

Hi John

> On 05 May 2016, at 21:17, John Levine <johnl@taugh.com> wrote:
> 
>> Well. Depending on the channel we use for feedback, DEFLATE might be a poor option:
> 
> Well, yes, but anything can have security bugs, and I expect that the
> libraries for gzip which have been around for a decade have been
> audited a lot better than the ones for CBOR on which the paint is
> still wet.

CBOR was just an idea and what I found when searching for binary-JSON-like specs available in IETF. In general I'm fine with JSON. Just thinking about the "future work" section of draft-brotman-smtp-tlsrpt-00 and how we may make use of it in Let's Encrypt in the future as explained initially.

> People have beens mailing around vast numbers of DMARC reports, most
> of which have an application/gzip body.  If there have been attacks
> using DEFLATE bugs, nobody's gotten around to reporting them.

I'm not much worried about attacks on DEFLATE and SMTP traffic. But as I understand from the draft, there's also an option to report back via HTTPS. Here DEFLATE may become a security issue.

draft-brotman-smtp-tlsrpt-00 currently supports two feedback channels ('rua' in Section 3): "mailto" and "https".

> Perhaps it would be helpful to explain why it would be a good idea to
> invent something new rather than adapt a an existing design that works
> well in practice.

That's the point: I don't want to invent something new here. I'm interested in suggestions, that message wasn't supposed to sound like "we have to change this now to CBOR!".

Aaron