Re: [Uta] Updated TLSRPT (WGLC Comments)

"Brotman, Alexander" <Alexander_Brotman@comcast.com> Tue, 27 March 2018 00:20 UTC

Return-Path: <Alexander_Brotman@comcast.com>
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 6BF95126BF7 for <uta@ietfa.amsl.com>; Mon, 26 Mar 2018 17:20:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.912
X-Spam-Level:
X-Spam-Status: No, score=-1.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=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 SJd7UZnSV7Oc for <uta@ietfa.amsl.com>; Mon, 26 Mar 2018 17:20:20 -0700 (PDT)
Received: from vaadcmhout02.cable.comcast.com (vaadcmhout02.cable.comcast.com [96.114.28.76]) (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 6860E120726 for <uta@ietf.org>; Mon, 26 Mar 2018 17:20:20 -0700 (PDT)
X-AuditID: 60721c4c-c0e6a7000000248e-47-5ab98e4361e2
Received: from VAADCEX45.cable.comcast.com (vaadcmhoutvip.cable.comcast.com [96.115.73.56]) (using TLS with cipher AES256-SHA256 (256/256 bits)) (Client did not present a certificate) by vaadcmhout02.cable.comcast.com (SMTP Gateway) with SMTP id 08.62.09358.34E89BA5; Mon, 26 Mar 2018 20:20:19 -0400 (EDT)
Received: from COPDCEX24.cable.comcast.com (147.191.124.155) by VAADCEX45.cable.comcast.com (147.191.103.222) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Mon, 26 Mar 2018 20:20:18 -0400
Received: from COPDCEX19.cable.comcast.com (147.191.124.150) by COPDCEX24.cable.comcast.com (147.191.124.155) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Mon, 26 Mar 2018 18:20:17 -0600
Received: from COPDCEX19.cable.comcast.com ([fe80::3aea:a7ff:fe36:8380]) by COPDCEX19.cable.comcast.com ([fe80::3aea:a7ff:fe36:8380%19]) with mapi id 15.00.1365.000; Mon, 26 Mar 2018 18:20:17 -0600
From: "Brotman, Alexander" <Alexander_Brotman@comcast.com>
To: Ayke van Laethem <ayke@aykevl.nl>
CC: "uta@ietf.org" <uta@ietf.org>
Thread-Topic: [Uta] Updated TLSRPT (WGLC Comments)
Thread-Index: AdOz6S4F+Qux5gLkRyOzRgSRC93MkgARfW4AABUB0TAD2oQFgABcsHwg
Date: Tue, 27 Mar 2018 00:20:16 +0000
Message-ID: <9d6eea0c447b4957b7bb0f1c7d78260f@COPDCEX19.cable.comcast.com>
References: <9f5f768d703542d4aeb3c4b57993f922@COPDCEX19.cable.comcast.com> <B99685F5-3DC4-462D-9131-004CEF008262@dukhovni.org> <ac7328bb37d74060bc1b122ff55da5bd@COPDCEX19.cable.comcast.com> <CAHZoaj6sG1070a-QiJkxWLKeLNNPe_49SPHJ5d9FNz5+JgFWOA@mail.gmail.com>
In-Reply-To: <CAHZoaj6sG1070a-QiJkxWLKeLNNPe_49SPHJ5d9FNz5+JgFWOA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [96.114.156.9]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Forward
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsWSUOxpoevctzPKYO5keYuv+/eyWpw62szo wOSxfPtENo8lS34yBTBFcdmkpOZklqUW6dslcGX87bnIWPDNseL8x3PMDYxzHLoYOTkkBEwk FvfNYOxi5OIQEtjOJLGy9z0zhHOIUWLvze1MIFVgzvF9ShCJk4wSm1ZMYgZJsAlYSbz93w5m iwioSnxpugDWwCygKLFl4XVWEFtYwFCi8eVZqBojidOn50DZbhKPzi8DquHgYAHqXbDbCsTk FfCSaFjsDrGqg0ni553HYCM5BQIlbnzfzAJiMwqISXw/tQZqlbjErSfzmSC+EZBYsuc8M4Qt KvHy8T9WCNtAYuvSfSwQtoLE+3+n2EB2MQtoSqzfpQ9z8ZTuh+wgNq+AoMTJmU9YIF7Xkth7 YxfUGHGJw0d2sE5glJqFZPMshEmzkEyahWTSAkaWVYw8lmZ6hoYmekYWeuZmmxhBsVgk47OD 8dM0j0OMAhyMSjy8nE07o4RYE8uKK3OBIc7BrCTCyzd/R5QQb0piZVVqUX58UWlOavEhRmkO FiVx3pkhQNUC6YklqdmpqQWpRTBZJg5OqQbGrqigkiVan+6Y3ZaZoOp+7OTjVdYndQWvfTxY 1tS+OV/1p7/4Cu/JZZeaqtjnnlLfeW5757vtQrs2iHmwLGR5bruYJ1Nql2OKT9xhqwXizzvO 7xD4uvfwjDI23yWT2dS/ZZvuPRZ6Q23FjuyXHDP637teFFyZ4Vh16sKz3547lb0m/vOMazWQ VmIpzkg01GIuKk4EACrHt6jBAgAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/uta/xen3fDhgmdtZabRM18pJjYAWLKc>
Subject: Re: [Uta] Updated TLSRPT (WGLC Comments)
X-BeenThere: uta@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 27 Mar 2018 00:20:23 -0000

Ayke,

At one point, these two were a single draft, but there's more utility possible with having TLSRPT separate.  To answer your scenarios below:

1) The site may not be able to process reports, or may not want the information, but they could still want to move toward a policy  of ensuring mode=enforce or have a TLSA published.  The MTA-STS draft mentions that if the site also publishes TLSRPT, they could receive reports. 
2) The site could still have TLSA records or general TLS failures.  While the sending site would not validate the MTA-STS policy, there could be other items causing reports show failures.
3) I believe 2 and 3 are similar situations.

Does that answer some of your questions?

--
Alex Brotman
Sr. Engineer, Anti-Abuse
Comcast


-----Original Message-----
From: Ayke van Laethem [mailto:ayke@aykevl.nl] 
Sent: Saturday, March 24, 2018 5:56 PM
To: Brotman, Alexander <Alexander_Brotman@cable.comcast.com>
Cc: uta@ietf.org
Subject: Re: [Uta] Updated TLSRPT (WGLC Comments)

Hi all,

Something that's been confusing to me is: if and how does the SMTP-TLSRPT specification depend on the MTA-STS specification?
The "mode" field of the policy controls whether any report should be generated (if there is a TLSRPT policy too), but the SMTP-TLSRPT specification itself does not mention this dependency at all.
In fact, I wonder why the MTA-STS policy would affect report sending anyway.

Consider these cases:
1. There is a policy with mode=testing and no TLSRPT policy
    - obviously no report is generated, because there is no address to
      send it to
2. There is a policy with mode=none and a TLSRPT policy
    - according to the MTA-STS spec, no report should be sent, but the
      TLSRPT spec is silent on this
3. There is no STS policy at all, but there is a TLSRPT policy
    - I'm guessing reports have to be sent, even though there is no
      STS policy that says so, in case DANE is used

It would make most sense to me if report sending only depends on the presence of the TLSRPT policy (the TXT record) and not at all on the active MTA-STS policy mode.
There may be a special case to not send reports if there is a MTA-STS policy mode=none *and* DANE is not in use (how do you determine exactly DANE is not in use?), but IMHO this should be documented in the TLSRPT spec.

Ayke


2018-03-05 14:09 GMT+01:00 Brotman, Alexander <Alexander_Brotman@comcast.com>:
> Updated draft in a short while.
>
> --
> Alex Brotman
> Sr. Engineer, Anti-Abuse
> Comcast
>
>
> -----Original Message-----
> From: Uta [mailto:uta-bounces@ietf.org] On Behalf Of Viktor Dukhovni
> Sent: Sunday, March 04, 2018 3:08 PM
> To: uta@ietf.org
> Subject: Re: [Uta] Updated TLSRPT (WGLC Comments)
>
>
>
>> On Mar 4, 2018, at 1:47 PM, Brotman, Alexander <Alexander_Brotman@comcast.com> wrote:
>>
>> Hello folks,
>>
>> We used the feedback from folks during the WGLC and have submitted a new version.  This is mostly editorial changes or minor inconsistencies.  We did also remove any relation between the TLS-Report-Submitter and the filename.  If you have any comments, please let us know.  Thank you.
>>
>> https://www.ietf.org/id/draft-ietf-uta-smtp-tlsrpt-16.txt
>
> Almost there, but a couple of editorial nits:
>
>         4.4
>
>             o  "policy-string": A string representation of the policy,
>
> Since it is no longer a "string representation" of the policy, but rather an array of strings, at least the description should probably change to:
> "An encoding of the policy as a JSON array of strings" or some such.  You could also rename the element to "policy-array", but I don't feel strongly about that.
>
>         4.5.  Policy Samples
>
>            Part of the report body includes the policy that is applied when
>            attemping relay to the destination.
>
>            For DANE TLSA policies, a JSON array of strings each representing the
>            RDATA of a single TLSA resource record as a space-separated list of
>            its four TLSA fields; the fields are in presentation format (defined
>            in RFC6698 Section 2.2) with no internal spaces or grouping
>            parentheses:
>
>            ["3 0 1
>            1F850A337E6DB9C609C522D136A475638CC43E1ED424F8EEC8513D747D1D085D",
>            3 0 1
>            
> 12350A337E6DB9C6123522D136A475638CC43E1ED424F8EEC8513D747D1D1234"]
>
> There's a missing open double-quote for the second "3 0 1".
>
>            For the MTA-STS policy, an array of JSON string will 
> represent the
>
> s/array of JSON string will represent/JSON array of strings that represents/ just as in the DANE paragraph above.
>
>            policy that is declared by the receiving site, including any errors
>            that may be present.  Note that if there are multiple MX records,
>            they are not included as an array.
>
>            [
>            "version: STSv1",
>            "mode: report",
>            "mx: mx1.example.com",
>            "mx: mx2.example.com",
>            "mx: mx.backup-example.com",
>            "max_age: 12345678"
>            ]
>
> I reformatted the JSON array with one element per line for clarity (putting the square brackets on separate lines), I think you should do the same both here, and in the DANE example:
>
>            [
>            "3 0 1 1F850A337E6DB9C609C522D136A475638CC43E1ED424F8EEC8513D747D1D085D",
>            "3 0 1 12350A337E6DB9C6123522D136A475638CC43E1ED424F8EEC8513D747D1D1234"
>            ]
>
> The comment about MX host patterns not being included as an array may be a confusing.  It might be clearer to say:
>
>   Note that where there are multiple "mx" values, they must be listed as separate
>   "mx" elements in the policy array, rather as a single nested "mx" sub-array.
>
> --
>         Viktor.
>
> _______________________________________________
> Uta mailing list
> Uta@ietf.org
> https://www.ietf.org/mailman/listinfo/uta
>
> _______________________________________________
> Uta mailing list
> Uta@ietf.org
> https://www.ietf.org/mailman/listinfo/uta