Re: [Anima] Adam Roach's Discuss on draft-ietf-anima-bootstrapping-keyinfra-22: (with DISCUSS and COMMENT)

Brian E Carpenter <brian.e.carpenter@gmail.com> Fri, 12 July 2019 03:31 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 58DEF12001E; Thu, 11 Jul 2019 20:31:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.703
X-Spam-Level:
X-Spam-Status: No, score=-0.703 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, PDS_NO_HELO_DNS=1.295, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 X9tORQ0hDGeT; Thu, 11 Jul 2019 20:31:03 -0700 (PDT)
Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (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 1E2C1120019; Thu, 11 Jul 2019 20:31:03 -0700 (PDT)
Received: by mail-pg1-x543.google.com with SMTP id f25so3869428pgv.10; Thu, 11 Jul 2019 20:31:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GGwDS0JZmiKTYLHUJTa3zYieRl5vAHAyOgYCoTFmBFY=; b=ZLWGTN5dIXdsypjS5lyJ/ZVguMd0sJhtP7FhvHKotaKiuLUX4sHNwsZA4DFDPRkfIX qYiuLROikrIxi/geFhrEPjXx/1GQVIVOCuQF+wgUPvQ8b3tsT+grY07noTNjLvFvxrTj Z6gZ4bhTYlb6nTjl8r/eAvFOug48Yy6LqT1hWujFXTUDGLTQ4zl/fqcARTlWRZdPEdsD xMapqobQnweyIJ3U87Oof9Mj4YK6fsbXOF4vzU3+/PXyKQCM8ZC1O+teWDQfyY0eiRU1 h8zJdjv2i54qLb//fYWLSZATQH+z3+vDLCU8qGWieErcE24VX0goIfuj875IAz/bUqJj +mIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GGwDS0JZmiKTYLHUJTa3zYieRl5vAHAyOgYCoTFmBFY=; b=cBZIcXOYpXPjfCYXKG+MmgZibceyqw5QZi/RzEnZW/qlmweixf0WHnLiOh1/3NW382 t5dxsQX4oxANERUyltVKqdPx+B62B25DqewmzL0U+BL0Kf+dwRT6IZ2MKMqXcrobFGSY iUGH2mhKnx2MkV6fB6eI9bmOLMD+62/Ajg99sxcrHcQQijZRL3KVA5dhSM9WhTCoJfGW hw0d8cdivu2lXiGdhm/3cG8pXWW0b+jqom7ByRu26RBnH6sfQ4Q5K8bm+/A25x+bmW0H pQ240ias5t4Zyck8Z6RpihqIBKXs7eDQC/RYWHewEJIbKDoF6eP5I3Z1jCJrz84wlskG 8sbQ==
X-Gm-Message-State: APjAAAUKUQwQMNAR17ilw49vbFcqqbctwmWgVDalNt/P7pEJM3+BhHEe br7+YamNfpU3xeDNxVV0drenXq5m
X-Google-Smtp-Source: APXvYqxsbPruT6cV5wwrkVkx9+G/CEObQepgo71bOAJCjOMGQ4jWllO+0yWhg2kqIOt6xsQKPnX2vQ==
X-Received: by 2002:a17:90a:37e9:: with SMTP id v96mr8706227pjb.10.1562902261996; Thu, 11 Jul 2019 20:31:01 -0700 (PDT)
Received: from [192.168.178.30] (32.23.255.123.dynamic.snap.net.nz. [123.255.23.32]) by smtp.gmail.com with ESMTPSA id 30sm19313946pjk.17.2019.07.11.20.30.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 20:31:01 -0700 (PDT)
To: Adam Roach <adam@nostrum.com>, Michael Richardson <mcr+ietf@sandelman.ca>
Cc: draft-ietf-anima-bootstrapping-keyinfra@ietf.org, Toerless Eckert <tte+ietf@cs.fau.de>, anima@ietf.org, The IESG <iesg@ietf.org>, anima-chairs@ietf.org
References: <156282703648.15280.17739830959261983790.idtracker@ietfa.amsl.com> <20219.1562875510@localhost> <d25962d9-22ae-e6c3-f0d3-6eaf2ad36ec1@nostrum.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <13c64298-fe6e-2d71-9523-3d0cce340463@gmail.com>
Date: Fri, 12 Jul 2019 15:30:56 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2
MIME-Version: 1.0
In-Reply-To: <d25962d9-22ae-e6c3-f0d3-6eaf2ad36ec1@nostrum.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/faHUtp3parl4xXvBaKr41LMGHvs>
Subject: Re: [Anima] Adam Roach's Discuss on draft-ietf-anima-bootstrapping-keyinfra-22: (with DISCUSS and COMMENT)
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Jul 2019 03:31:04 -0000

On 12-Jul-19 10:52, Adam Roach wrote:
> On 7/11/19 3:05 PM, Michael Richardson wrote:
>> <#secure method=pgpmime mode=sign>
>>
>> Adam Roach via Datatracker <noreply@ietf.org> wrote:
>>      > §5.8:
>>
>>      >> Rather than returning the audit log as a response to the POST (with a
>>      >> return code 200), the MASA MAY instead return a 201 ("Created")
>>      >> RESTful response ([RFC7231] section 7.1) containing a URL to the
>>      >> prepared (and easily cachable) audit response.
>>
>>      > The DISCUSS portion of my comment on this text is that it is unclear about how
>>      > the URL is to be returned. It can just as easily be interpreted as returning
>>      > it in a "Location" header field as it could as returning it in the response
>>      > body -- or maybe somewhere else entirely (e.g., a link relation).  This
>>      > ambiguity will cause an interop issue. Please be explicit about precisely how
>>      > the value is conveyed.
>>
>> I see how this could be confusing.
>>
>>      > While not part of the DISCUSS, I also have a fairly serious comment on the
>>      > phrasing and citation of  "return a 201 ("Created") RESTful response
>>      > ([RFC7231] section 7.1)". Section 7.1 points to the top-level discussion of
>>      > Control Data header fields, rather than any general discussion of RESTful
>>      > responses.  It's worth noting that the term "RESTful" never appears in RFC
>>      > 7231, so it's really unclear what section this was attempting to target.
>>      > Perhaps 6.3.2?
>>
>> Yes, that's what we are trying to target.
>> I guess we also latched onto section 7.1.2 ("Location")
>>
>> Can you point me to another document that tries to specify the same thing.
>> If we shouldn't say we are trying to be RESTful, what should we say?
> 
> 
> "HTTP", but even that may be unnecessary in this case.
> 
> REST means... something. Exactly what depends on who you ask. In 
> practice, the least controversial thing to do is avoid the term; 

I am unbelievably happy to read that. I thought it was forbidden to be
an unbeliever in RESTfulness.

> and, if 
> you're trying to describe a specific quality (e.g., idempotence), say so 
> explicitly.

In the simplest possible terms, isn't the quality we require that
an operation has unambiguously succeeded or unambiguously failed?
But in fact, simply deleting the two occurrences of "RESTful"
seems appropriate.

    Brian

> 
> For this document, I don't think you really care much the purported 
> properties of REST -- by any definition -- and I suspect you don't 
> conform to them, for at least some number of mutually incompatible and 
> religiously-held definitions of that term.
> 
> In any case, I don't think the reference adds anything to the text, 
> regardless of whether it points to 7.1.2 or to 6.3.2. So I would propose 
> something along the lines of:
> 

>     Rather than returning the audit log as a response to the POST (with 
> a 200
>     (OK) response code), the MASA MAY instead return a 201 (Created) 
> response
>     containing a "Location" header field that indicates the location of the
>     prepared audit response. This allows the audit response to appear at a
>     location that enables caching.
> 
> 
> If that says something other than what you meant, let me know, and I'll 
> try to fix it.
> 
> /a
> 
> _______________________________________________
> Anima mailing list
> Anima@ietf.org
> https://www.ietf.org/mailman/listinfo/anima
>