Re: [Acme] Optional "Wildcard" authorization field

Sophie Herold <sophie_herold@hemio.de> Fri, 02 March 2018 20:46 UTC

Return-Path: <sophie_herold@hemio.de>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4566F12D7F1 for <acme@ietfa.amsl.com>; Fri, 2 Mar 2018 12:46:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.311
X-Spam-Level:
X-Spam-Status: No, score=-4.311 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_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hemio.de
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 HOkpaVwFrQ99 for <acme@ietfa.amsl.com>; Fri, 2 Mar 2018 12:46:47 -0800 (PST)
Received: from mail.hemio.de (mail.hemio.de [136.243.12.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 44956127010 for <acme@ietf.org>; Fri, 2 Mar 2018 12:46:47 -0800 (PST)
Received: from user.client.invalid (localhost [136.243.12.180]) by mail.hemio.de (Postfix) with ESMTPSA id CE81F9B for <acme@ietf.org>; Fri, 2 Mar 2018 21:46:45 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hemio.de; s=20170414; t=1520023605; bh=P/odqsBXi1+UNeU40o+vZ1/TEg//HscL7rbNnmnoTK4=; h=Subject:To:References:From:Date:In-Reply-To:From; b=GZ5VcaHKna4Ik8E8vHDYg97PrwMzXUy9Wmcayk3TBX1XDd457UrHD2GN2xgy/FjvN 9zyYAREdkz3+G9P+sFFzyBLWbonEnW1zpyTA5ugdcM6YLzkaivZV8vhuGTTAra8V0H APOcuE4EILkfwEdlVUC/7TQLPG0AFXKfH6E88YnzeD4XcFyMOFtqDs0y9dyxS03GcZ gwLXMwxMEDbmamRUtgfKuu+AQ0vy0LTUk1jAV1O3PDAftbhUlGo9iFvicWrt2FNB0W sP4MxMQ3gJC2empXq6jaIvy2e3r5OATgSt02U178NE+LS9jETOkZJROX3vCctEEdAk IS/c7eBydEGww==
To: acme@ietf.org
References: <CAKnbcLjuVPZa5P2FZa_cKAGmk1dP6ezrv3AgWSp9KK5HCzxPbg@mail.gmail.com> <CAL02cgQwZzKXvPsWr=tAbB-bi2s-gw3+TtJwkawHoEEb=6MiFw@mail.gmail.com> <CAKnbcLiQdjaPN32j8WOo5vhvfoTvHPYZj5pictb47ZTWvmJXYA@mail.gmail.com>
From: Sophie Herold <sophie_herold@hemio.de>
Message-ID: <09d9ab58-2b1b-5515-8313-128705e86437@hemio.de>
Date: Fri, 02 Mar 2018 21:46:45 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <CAKnbcLiQdjaPN32j8WOo5vhvfoTvHPYZj5pictb47ZTWvmJXYA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/acme/jA0vLo-u6GvC1DvToRgO5U6gcAg>
Subject: Re: [Acme] Optional "Wildcard" authorization field
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Mar 2018 20:46:49 -0000

On 02/03/18 18:32, Daniel McCarney wrote:
> Richard: That's up to the client and the situation. In the linked Certbot
> issues there were questions about error output/UX. In this case if the
> client saw an error attached to an authorization with the identifier `{
> "type": "dns", "value": "example.com"}` and the authorization had
> `wildcard: true` the client could say "Failed to authorize *.example.com:
> blah blah blah" or otherwise use the knowledge to inform their actions
> (whatever they may be).

This sounds like you want to provide the order identifiers that
triggered this authorization within the authorization object?

I think, in general it is just a guess that exmaple.com + wildcard means
that the order contains *.example.com. This depends on which
authorizations are created for which order identifiers, which is not
specified by acme.

In principle, several order identifiers could lead to a single
authorization I guess? For example, if sub1.example.org and
sub2.example.org lead to just an example.org authorization. Therefore
"orderIdentifiers", as I call it here, needs to be a list:

   {
     "status": "valid",
     "expires": "2015-03-01T14:09:00Z",

     "identifier": {
       "type": "dns",
       "value": "example.org"
     },

     "orderIdentifiers": [
       {
         "type": "dns",
         "value": "*.example.org"
       }
     ],

     "challenges": [
     …

Best,
Sophie