Re: [spfbis] WGLC: draft-ietf-spfbis-4408bis-14 - Fully parse record *first*

Kurt Andersen <kboth@drkurt.com> Mon, 22 April 2013 14:40 UTC

Return-Path: <kurta@drkurt.com>
X-Original-To: spfbis@ietfa.amsl.com
Delivered-To: spfbis@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3B09A21E808F for <spfbis@ietfa.amsl.com>; Mon, 22 Apr 2013 07:40:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7mIKvCnC77OV for <spfbis@ietfa.amsl.com>; Mon, 22 Apr 2013 07:40:17 -0700 (PDT)
Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by ietfa.amsl.com (Postfix) with ESMTP id A936C21E8063 for <spfbis@ietf.org>; Mon, 22 Apr 2013 07:40:16 -0700 (PDT)
Received: by mail-we0-f179.google.com with SMTP id u3so3473895wey.38 for <spfbis@ietf.org>; Mon, 22 Apr 2013 07:40:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drkurt.com; s=20110616; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=wL71GEDqP0oq0BOsFHjH1Gl+Q6JSVr0TmBWZzC+4AQk=; b=eBJVEJCoGuTHH6OjzqYzc7sf1al/RF1fpyL/qLJ2tv21+uoyA8Ed8rhctSWLukbbkD ybyQEua8OKpaL3fbjLcZCl++HnORIClOYmGckVr7RjYPkyA4UTIhOCdSIlGog3oAiVfZ wSoRH4A0xqyArr3DHWBIvJ/hxNbtOX3g5ZHmY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=wL71GEDqP0oq0BOsFHjH1Gl+Q6JSVr0TmBWZzC+4AQk=; b=Gboyy9y6Yrsf680sVAdxxrMR3n5WDS7bXrix8Sz33Nn0dCsk1aHbkXMUfZ1ewp35i3 Skb00CE0Do2IAY8AkqSWOCcWkCMqjhSjnhUyGoHXkQ3Tf1MlpPvJjcIankjgN9S2QuhF HlKypq0Vocy6OtqfWZ+NK/CPnQBheGBFykhzoAdEYm8oyHiXQRg3HEkoNMEGlvuoZlcP +5/+r4/+HXDyBk+SAiD/w8qHfwj6TMvXVI/Z5Uz/3NLHEfvGcqNXLhM0eF3ojisTtmIL iugvk/FyAUzhqUojasY17BkZ8tB0MiEE1XFhZ3j8mxKpDPPN9Fj4F+rGNRHgCz7OYIUV +Rsw==
MIME-Version: 1.0
X-Received: by 10.194.11.70 with SMTP id o6mr53187624wjb.29.1366641615137; Mon, 22 Apr 2013 07:40:15 -0700 (PDT)
Sender: kurta@drkurt.com
Received: by 10.194.65.98 with HTTP; Mon, 22 Apr 2013 07:40:14 -0700 (PDT)
In-Reply-To: <17085583.vi2SDUBAix@scott-latitude-e6320>
References: <20130409062431.GK24624@mx1.yitter.info> <6.2.5.6.2.20130416214029.0c16f0b8@resistor.net> <517490A6.5020502@gathman.org> <17085583.vi2SDUBAix@scott-latitude-e6320>
Date: Mon, 22 Apr 2013 07:40:14 -0700
X-Google-Sender-Auth: 9aOoqcoHPagybq6VHASqpTEBymM
Message-ID: <CABuGu1pebsfi+1JHRYoOmm1Q3xft2paOGi3zwXbxHjbR3tmnKw@mail.gmail.com>
From: Kurt Andersen <kboth@drkurt.com>
To: Scott Kitterman <spf2@kitterman.com>
Content-Type: multipart/alternative; boundary="047d7b5d456c0184e304daf40cd7"
X-Gm-Message-State: ALoCoQl9kVjVMvcTHVIpj80qPcVUXTNPXeAz10O6vH0lBEHfBLlXEQntKfZtXs0z6WvdX3e5TG2y
Cc: "spfbis@ietf.org" <spfbis@ietf.org>
Subject: Re: [spfbis] WGLC: draft-ietf-spfbis-4408bis-14 - Fully parse record *first*
X-BeenThere: spfbis@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: SPFbis discussion list <spfbis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spfbis>, <mailto:spfbis-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/spfbis>
List-Post: <mailto:spfbis@ietf.org>
List-Help: <mailto:spfbis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spfbis>, <mailto:spfbis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Apr 2013 14:40:18 -0000

That leaves the ambiguity of handling -all in embedded (include:) records.
What should be done if the sample foobar mechanism is being referenced in
an included record?

--Kurt


On Mon, Apr 22, 2013 at 7:04 AM, Scott Kitterman <spf2@kitterman.com> wrote:

> On Sunday, April 21, 2013 09:21:42 PM Stuart Gathman wrote:
> > On 04/17/2013 12:50 AM, S Moonesamy wrote:
> > > As Scott mentioned, things have been very quiet for this WGLC.  It
> > > helps if there are people who read the draft as you did above as I can
> > > determine whether the working group reviewed the draft and is ok with
> it.
> >
> > Minor nit:
> >
> > Section 5.1
> >
> > Mechanisms listed after "all" MUST be ignored.
> >
> > Sure, section 4.6 says
> >
> > If there are any syntax errors
> >     anywhere in the record, check_host() returns immediately with the
> >     result "permerror", without further interpretation.
> >
> > But an implementer could misinterpret this as saying the following
> > should get Fail rather than PermError:
> >
> > v=spf1 mx -all foobar
> >
> > Section 4.6 doesn't make it clear you have to parse everything
> > (returning permerror on syntax errors), and only *then* interpret. The
> > wording makes it sound like you could parse and interpret one term at a
> > time, stopping when you get a match or syntax error.
>
> I would tend to favor the MUST be ignored over the returns immediately
> with a
> permerror (yielding the opposed view of the preferred result from yours).
>  I
> think this confirms there's an ambiguity in the current draft.
>
> If I take your view that it's better to raise the error (unknown
> mechanism),
> the perhaps changing the 5.1 language would help.  Adding the sentence
> before
> in, for more context:
>
> > Mechanisms after "all" will never be tested.  Mechanisms listed after
> "all"
> > MUST be ignored.
>
> Perhaps if we combine those it helps:
>
> > Mechanisms after "all" MUST not be tested.  Mechanisms listed after "all"
> > will be ignored for all purposes except syntax error evaluation.
>
> Does that help?
>
> Scott K
> _______________________________________________
> spfbis mailing list
> spfbis@ietf.org
> https://www.ietf.org/mailman/listinfo/spfbis
>