Re: [lamps] Fwd: [pkix] [Technical Errata Reported] RFC6844 (5200)

Corey Bonnell <CBonnell@trustwave.com> Wed, 20 December 2017 16:03 UTC

Return-Path: <CBonnell@trustwave.com>
X-Original-To: spasm@ietfa.amsl.com
Delivered-To: spasm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 980E512711E for <spasm@ietfa.amsl.com>; Wed, 20 Dec 2017 08:03:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, 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 B7U64MoEhO5U for <spasm@ietfa.amsl.com>; Wed, 20 Dec 2017 08:03:38 -0800 (PST)
Received: from seg-node-chi-01.trustwave.com (seg-node-chi-01.trustwave.com [204.13.200.201]) (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 64DDA1270A7 for <spasm@ietf.org>; Wed, 20 Dec 2017 08:03:38 -0800 (PST)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com (Not Verified[207.46.163.54]) by seg-node-chi-01.trustwave.com with Trustwave SEG (v7, 5, 7, 10058) (using TLS: TLSv1.2, AES256-SHA256) id <B5a3a89d60004>; Wed, 20 Dec 2017 10:03:35 -0600
Received: from CY4PR07MB3575.namprd07.prod.outlook.com (10.171.253.14) by CY4PR07MB3574.namprd07.prod.outlook.com (10.171.253.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Wed, 20 Dec 2017 16:03:31 +0000
Received: from CY4PR07MB3575.namprd07.prod.outlook.com ([10.171.253.14]) by CY4PR07MB3575.namprd07.prod.outlook.com ([10.171.253.14]) with mapi id 15.20.0345.013; Wed, 20 Dec 2017 16:03:31 +0000
From: Corey Bonnell <CBonnell@trustwave.com>
To: Tim Hollebeek <tim.hollebeek@digicert.com>, Jacob Hoffman-Andrews <jsha@eff.org>, "spasm@ietf.org" <spasm@ietf.org>
Thread-Topic: [lamps] Fwd: [pkix] [Technical Errata Reported] RFC6844 (5200)
Thread-Index: AQHTcFCvZLA3Ba+SlEGgXjxULsQnaqNFZbiAgAPWDYCAAufvAA==
Date: Wed, 20 Dec 2017 16:03:31 +0000
Message-ID: <B94567AD-1DB4-4508-B629-F7F760237A15@trustwave.com>
References: <20171208180055.ACB1EB81ACE@rfc-editor.org> <5AB43438-406D-482D-81DD-B9A30BE84459@vigilsec.com> <ad5b6045-84ba-32b3-7739-b2464fc40c2f@eff.org> <DM5PR14MB128950E8291574FAA0161BC8830E0@DM5PR14MB1289.namprd14.prod.outlook.com>
In-Reply-To: <DM5PR14MB128950E8291574FAA0161BC8830E0@DM5PR14MB1289.namprd14.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=CBonnell@trustwave.com;
x-originating-ip: [204.13.202.248]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; CY4PR07MB3574; 6:egWGwQuCwPkObZFTFsey6BJBKK/u6ddM5lBVoZkmrj2d2kOywuey4P6ByUb3KRaYFJzRaAY1BTujLjr8vyJhFmXIpmBWrItIluvHEtVPrrm+lHTkDcyBuFAhBR1RQwNKV4DiciCOp+IJ/Sz2KzTtc56O0fPH+TbdBaIqHHzs6aBoT6a1yuw6mwXgBvF7Pnljnldutk9ZSOCta/YyxRa6YAhDbgy6MUCrhCOBakzLMnYT710QLAJygMzOwElUhAWhErD0EVv96eKdNAtEP5nCsAkXXGVlQJYmq5/u+SvzBoysmwil+L+3TAZGIixBH4ldF4xjCY/2PYIKHXE8XTA4z5tK9gGmlhoGa8lrVceJbL4=; 5:KCeTrVoP23QvkfWzfagwbtZnGkwsSsGu4U+SMXuHRaTbQceipke2YJs59q/ICFlPdfFASHPsc6u1M0JpQLjvPLi+R8rhsXPof62XTtFXRCstH0XpT3afrUMw7oU8NqCAizPVf1sPF3+BRs/iTlX1UfSzEZrGxOCGIBBqKBYHy4U=; 24:VwLhdG/jCB0FGtLOfBsZx/FmLKLzEiTP2lw9fNa+UgyFaVjDiWkeb5lyyCWzuLB+llddmY2XGwoV1y+tJIDUIkN62ZE4zEdb4nhfuhgGctw=; 7:uYeH7yvhSCXEjEvXgPUZZAarYPd9nMoBI2qxFQ0wpBUAKgLU+pv+wSCPNMAnjb92yeVgS2Qes1JKd/OM3pnlIE7nyiKNFFS9STbL4ZebsIc4AOLhXg55cFJJEaPvAfO9Pj4pscYHZsZiQkM5JLQsdqeqDjYeQXW99Z4mHcoik2Si54JamjSiiNIUFJECdHYeBeCONR5VMAvlb1w3F+u6l1dku79ld0wRFujyscldvh7q3oPwwlHXkiEiUCTEql4X
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: 01db15e8-fc5e-471b-a6ff-08d547c3373f
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:CY4PR07MB3574;
x-ms-traffictypediagnostic: CY4PR07MB3574:
x-microsoft-antispam-prvs: <CY4PR07MB35748EFDF012475B161F5463CF0C0@CY4PR07MB3574.namprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(232896897485771)(192374486261705)(171964332516350);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231023)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:CY4PR07MB3574; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3574;
x-forefront-prvs: 0527DFA348
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(979002)(376002)(39380400002)(39860400002)(396003)(346002)(366004)(24454002)(13464003)(199004)(189003)(6246003)(80792005)(6436002)(99286004)(2906002)(229853002)(97736004)(2900100001)(77096006)(6486002)(66066001)(316002)(53936002)(110136005)(5660300001)(14454004)(81166006)(8676002)(8936002)(81156014)(93886005)(68736007)(2950100002)(25786009)(33656002)(76176011)(83716003)(53546011)(3660700001)(3846002)(105586002)(3280700002)(59450400001)(72206003)(478600001)(102836003)(6116002)(36756003)(561944003)(6506007)(2501003)(106356001)(82746002)(6306002)(6512007)(7736002)(966005)(305945005)(86362001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR07MB3574; H:CY4PR07MB3575.namprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: trustwave.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <8EBE74A6F5BC9F479BC294CE45966A33@namprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: trustwave.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 01db15e8-fc5e-471b-a6ff-08d547c3373f
X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2017 16:03:31.2187 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cb1dab68-a067-4b6b-ae7e-c012e8c33f6a
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3574
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/KU4u-utnrGZDjq7Cu9Sg_RSh1c4>
Subject: Re: [lamps] Fwd: [pkix] [Technical Errata Reported] RFC6844 (5200)
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "This is a venue for discussion of doing Some Pkix And SMime \(spasm\) work." <spasm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spasm>, <mailto:spasm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm/>
List-Post: <mailto:spasm@ietf.org>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spasm>, <mailto:spasm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Dec 2017 16:03:41 -0000

After thinking about this further, I’m in favor of using semicolons to delimit parameters, as Tim mentioned that we likely need to continue using the semicolon to delimit the identifying domain name from the parameter list due to its current ubiquity. It would be inconsistent to use a semicolon to delimit the identifying domain name from the parameter list but also mandate that parameter name/value pairs be delimited using whitespace. That being said, I like the idea that non-significant whitespace can be used in records to improve human readability.

Given that RFC 5234 prohibits the use of implicit “linear white space” in section 3.1 (http://www.rfcreader.com/#rfc5234_line204), RFC 6844 must explicitly state in the production rules that non-significant whitespace is supported. With that in mind, I believe that the ABNF production rules in RFC 6844 section 5.1 (http://www.rfcreader.com/#rfc6844_line447) for “issuevalue” should be modified to something similar to this:

issuevalue = *WSP [domain] *WSP [";" *WSP [parameters] *WSP]
parameters = (parameter *WSP “;” *WSP parameters) / parameter
parameter = tag "=" value
tag = 1*(ALPHA / DIGIT)
value = *(%x21-3A / %x3C-7E)

(The “parameter” and “tag” production rules are unchanged but I listed them here to list the relevant rules in one place.)

Note that I removed the “space” production rule, as RFC 5234 provides us with a nearly identical (differing only in the number of allowed repetitions, but the character class is the same) “WSP” rule in its core module (http://www.rfcreader.com/#rfc5234_line520). Also note that I modified the “value” rule, as we need to exclude the semicolon (ASCII code 0x3B) from the set of allowed characters in parameter values.

Thanks,
Corey
 
Corey Bonnell
Senior Software Engineer

Trustwave | SMART SECURITY ON DEMANDwww.trustwave.com <http://www.trustwave.com/>
 
2017 Best Managed Security Service Winner – SC Media

On 12/18/17, 9:41 AM, "Spasm on behalf of Tim Hollebeek" <spasm-bounces@ietf.org on behalf of tim.hollebeek@digicert.com> wrote:

    As pointed out on the cabf_validation list, the original text isn't just
    ambiguous, the RFC contradicts itself.  I don't feel too strongly either
    way, as long as it gets resolved soon, as property tags are about to become
    commonly deployed (there were several proposed uses discussed at the Taipei
    face-to-face meeting of the CA/Browser forum).
    
    I do however have a slight preference for only having a single separator
    (whitespace), not two in order to avoid confusion about what to do about
    whitespace after semicolons and around = signs.
    
    The semicolon doesn't really serve a useful purpose, though we do have to
    keep one since there are existing CAA records out there that use it.  I'd
    like the grammar to essentially be:
    
        domain ; [name = value]+
    
    with the clarification that whitespace is ignored.
    
    So my personal preference is the first style you mentioned, in line with the
    submitted errata:
    
        http://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdgMZzyv9PQ&s=5&u=http%3a%2f%2fexample%2ecom IN CAA 0 issue "http://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdldOn33-ag&s=5&u=http%3a%2f%2fexample%2enet%3b foo=bar bar=qux"
    
    It's the style I used in my proposal for industry standard property tag
    names on cabf_validation last week.
    
    -Tim
    
    > -----Original Message-----
    > From: Spasm [mailto:spasm-bounces@ietf.org] On Behalf Of Jacob Hoffman-
    > Andrews
    > Sent: Friday, December 15, 2017 9:06 PM
    > To: spasm@ietf.org
    > Subject: Re: [lamps] Fwd: [pkix] [Technical Errata Reported] RFC6844
    (5200)
    > 
    > On 12/08/2017 10:16 AM, Russ Housley wrote:
    > > http://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdlJPySquaA&s=5&u=http%3a%2f%2fwww%2erfc-editor%2eorg%2ferrata%2feid5200
    > 
    > The question here is whether CAA records with property tags should look
    > like:
    > 
    > http://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdgMZzyv9PQ&s=5&u=http%3a%2f%2fexample%2ecom IN CAA 0 issue "http://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdldOn33-ag&s=5&u=http%3a%2f%2fexample%2enet%3b foo=bar bar=qux"
    > 
    > or:
    > 
    > http://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdgMZzyv9PQ&s=5&u=http%3a%2f%2fexample%2ecom IN CAA 0 issue "http://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdldOn33-ag&s=5&u=http%3a%2f%2fexample%2enet%3b foo=bar; bar=qux"
    > 
    > (note the second semicolon)
    > 
    > I think the original text is ambiguous on the point, and since property
    tags are
    > not yet widely deployed this is a somewhat free choice. I think the
    version
    > where property tags are separated by semicolons makes more sense and is
    > less error prone. It also happens to be what Hugo Landau's draft for CAA
    > Record Extensions uses:
    > https://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdlFIyn6uOA&s=5&u=https%3a%2f%2ftools%2eietf%2eorg%2fhtml%2fdraft-ietf-acme-caa-03%23page-9
    > 
    > And what was briefly implemented in Let's Encrypt's Boulder (since rolled
    > back due to a bug):
    > 
    > https://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdgQUz3v8bQ&s=5&u=https%3a%2f%2fgithub%2ecom%2fletsencrypt%2fboulder%2fpull%2f3145%2ffiles%23diff-
    > 3efab53f2bcc543ac2e771ec882c57c1L310
    > 
    > So my feeling is we should reject this erratum and clarify in the other
    > direction, requiring semicolons between property tags. Thoughts?
    > 
    > _______________________________________________
    > Spasm mailing list
    > Spasm@ietf.org
    > https://scanmail.trustwave.com/?c=4062&d=gNO32sFHeluIcLm6XdmrAg7jw4lzJFuSdgofny-qPw&s=5&u=https%3a%2f%2fwww%2eietf%2eorg%2fmailman%2flistinfo%2fspasm