Re: [Acme] ACME breaking change: Most GETs become POSTs

Richard Barnes <rlb@ipv.sx> Fri, 31 August 2018 15:54 UTC

Return-Path: <rlb@ipv.sx>
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 4994F130E20 for <acme@ietfa.amsl.com>; Fri, 31 Aug 2018 08:54:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ipv-sx.20150623.gappssmtp.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 ANYKiTkHkUSy for <acme@ietfa.amsl.com>; Fri, 31 Aug 2018 08:54:14 -0700 (PDT)
Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (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 AE151130DD1 for <acme@ietf.org>; Fri, 31 Aug 2018 08:54:14 -0700 (PDT)
Received: by mail-oi0-x236.google.com with SMTP id k81-v6so16382024oib.9 for <acme@ietf.org>; Fri, 31 Aug 2018 08:54:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipv-sx.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b3tcY7kipp0yB5nWkb806TWDd2VNaamfK/tx2vubVhY=; b=NseP4kWkmGlIGmJcqD6FY9y3Ok6/gJyuc2RWRUvBCIMs3GwTXt1NiWLzbW1dmdqvuT rKehYMV2FkoK31qOkuXCYj/6TgELS47ZeyHhei1yPk59QGwL8099Dsq7Qwpc8A4BFHhi Dr2SyP+08qDrhOrffGpqi9uwjN9CU4wST8+ePBTisvurwLOfUYOkb+ishA9KinegQh9j kQisz08ZV3lZ24BFsjsZgarqpEvJa6r3tOk0uq39ul2N7PgtwGr0Zx6Sukqvi+eNnP4P ZUIM4w4LHcbjybQ7/gdxsWH4hz80cJXchga+3kq8SYad16/ff3hQo4KJYeFUK/7AwFSK +bxw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b3tcY7kipp0yB5nWkb806TWDd2VNaamfK/tx2vubVhY=; b=V77kmUHDgyYNkJw6RbNiW2jBCfNLAVVftHNKYRyCRm+BUDcgHEsg78VfpGUB7CZKK9 jr6U/GJ9DwaAcUv3tekgYw0ivRzdYWMC0ifyQRb5XX8t4xnMDy3bqawpRFr2Nd8tZ/ML RCPaiCg7D1r7g8a2Nlt4qCBTmo0KIjSJasCRGQfUZuQhlodpD1RjJcoH87ZpL9ffK8fN 7FisZti1C04uABhnWZw8tfPweYAmMlxxo0/GmB89iWd3sk66U4xlmCLXgBlsmFT7po/H Nau8oqMpz/SvKZJDs0v5w2dIOWX1BjaWp0QbHPsQJjePA1tNctjUNGXBsQY6JbUsMtrC sIUw==
X-Gm-Message-State: APzg51DhDExb4cH314OA3gYQjbY4O+wK9QDTPn6uOkT9sGrwNeIT1TaJ jE/NMSJqLwLQCPN16/kEo7TrqpviATP+VkNxKwXx7Q==
X-Google-Smtp-Source: ANB0VdagBTi2LHjerpe0YdWCCuL5Uv3NKimYzmhQstBVw2tJ5ap0rZHmuPcKJKu4/BVmea1erFDv+tKZ+IBB3Y9sI4U=
X-Received: by 2002:aca:4ed3:: with SMTP id c202-v6mr8423327oib.92.1535730853824; Fri, 31 Aug 2018 08:54:13 -0700 (PDT)
MIME-Version: 1.0
References: <c33184f3-4e64-b7ea-babb-d29e2307f1f3@eff.org>
In-Reply-To: <c33184f3-4e64-b7ea-babb-d29e2307f1f3@eff.org>
From: Richard Barnes <rlb@ipv.sx>
Date: Fri, 31 Aug 2018 11:54:02 -0400
Message-ID: <CAL02cgRD=UgsaDeWN9hy2YXN=CLLQpt+zgaZKPTqDpoiMi0hqw@mail.gmail.com>
To: Jacob Hoffman-Andrews <jsha@eff.org>
Cc: IETF ACME <acme@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000035d580574bd346d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/acme/rGu9Ywvf3rhFWjrFhazrs066IFU>
Subject: Re: [Acme] ACME breaking change: Most GETs become POSTs
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.27
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, 31 Aug 2018 15:54:16 -0000

I have updated the pull request here with a couple of major changes:

* Instead of using the "typ" header parameter to signal POST-as-GET, the
client signals a POST-as-GET request by sending an empty JWS payload.  It
seems like all of the actual-POST requests we have send a JSON object, so
this should be a reliable distinguisher.

* GET requests are now allowed for certificate resources, with a
recommendation for CAs to use capability URLs if they want access control.

* Servers MUST return a 405 if they get a GET for a resource other than
directory/newNonce/certificate.

The last change makes this a harder break for current clients/servers.  But
it's only breaking in the sense that they're not in compliance with the
RFC; you can operate a non-RFC-compliant service, no protocol police.  And
I think it results in a cleaner, more reliable definition here.

--Richard


On Thu, Aug 30, 2018 at 7:20 PM Jacob Hoffman-Andrews <jsha@eff.org> wrote:

> ACME currently has unauthenticated GETs for some resources. This was
> originally discussed in January 2015[1]. We decided to put all sensitive
> data in the account resource and consider all GET resources public, with
> a slant towards transparency.
>
> Adam Roach recently pointed out in his Area Director review that even
> when the contents of GET URLs aren’t sensitive, their correlation may
> be. For instance, some CAs might consider the grouping of certificates
> by account to be sensitive.
>
> Richard Barnes proposes[2] to change all GETs to POSTs (except directory
> and new-nonce). This will be a breaking change. Clients that were
> compatible with previous drafts, informally called ACMEv1 and ACMEv2,
> will not be compatible with a draft that mandates POSTs everywhere. It
> will be a painful change, since the ecosystem just started switching to
> ACMEv2, which looked to be near-final.
>
> I think this is the right path forwards. ACME will be a simpler, better
> protocol long-term if all requests are authenticated. However, if we’re
> taking this path we should aim to come to consensus and land the final
> spec quickly to reduce uncertainty for ACME client implementers.
>
> [1] https://github.com/letsencrypt/acme-spec/pull/48#issuecomment-70169712
> [2] https://github.com/ietf-wg-acme/acme/pull/445/files
>
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme
>