Re: [jose] JOSE and signed REST requests

Anders Rundgren <anders.rundgren.net@gmail.com> Tue, 02 August 2016 15:19 UTC

Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4F92812D56D for <jose@ietfa.amsl.com>; Tue, 2 Aug 2016 08:19:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham 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 omZcqLCEweiM for <jose@ietfa.amsl.com>; Tue, 2 Aug 2016 08:19:22 -0700 (PDT)
Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::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 9AE2F12D137 for <jose@ietf.org>; Tue, 2 Aug 2016 08:19:22 -0700 (PDT)
Received: by mail-wm0-x236.google.com with SMTP id f65so413583458wmi.0 for <jose@ietf.org>; Tue, 02 Aug 2016 08:19:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=QIcd9onbic/Jie/S+tZ20KTDEPFheY8b3Hep4zdMhxg=; b=vDZfu3DCADvc3pt+8lG3WdBc7YRdqz77eBwzar9dNUeUjGY0ufqHYzkeQrNyOkFjjm r2c6VHQzUpAx2/HomtpUfTXP5Mkv1kIAs4p2QII33QIvRWP/Ty6GHXAD1CIYwfK1pGx2 OudeVPXT3qmv9nhkeru/CwOEtVSFxJTE3WcIaxHQVfMYhxAweqVhmI+GOCR4cEgDDol4 OLD+Y1Y6fhPc9ltOyzR1vIzQ9lyvrm31zepPKbfglvNnLzZBpBf6VGNwTTbohcJe4fVG udgH1Tt1s4kzln5p0oQsZU2MDQsOesQ/+MTKVXiJC7oH4KK8trObHjWhUwH6lUbqUR6I 9BQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=QIcd9onbic/Jie/S+tZ20KTDEPFheY8b3Hep4zdMhxg=; b=CNIyugycQynw0vH/te+IsSIzPkAbup035wwTdh5OO76pTtPbV8laOGtNBP2VE88fA8 eEW8+NNOFmlF8eGPD+2NsmFxaAZ/8DQ1ZQsf9Y95wy1uV0VOBZIixx5vMMxwFowuFKQR PEufHIq+r31h8/AUv4vHUtUCGsH+81RQvU5ekb5G9flo6aXD46cqh/dgOhdT+30/Nk56 F5z+dhqumPnp6zSrAmdheEFLeJhZBGwUo6c79e56u4nYig4Rma1jaqoj6n1SMQQuHUZn m/nFaxWGeRRrwDXBgY7tUoUj/u28ILbWrdDnn2n3RC1C2+KfQWIcd6URQ4DtUYto+1qG 3jqA==
X-Gm-Message-State: AEkoouuhGdiwxzRoiDq0WMLLSOzP9Xrd+12JHm/usm6mtlC0xyoGm1oXwpzGgJIDGdi93A==
X-Received: by 10.28.125.5 with SMTP id y5mr19720404wmc.103.1470151160720; Tue, 02 Aug 2016 08:19:20 -0700 (PDT)
Received: from [192.168.1.79] (124.25.176.95.rev.sfr.net. [95.176.25.124]) by smtp.googlemail.com with ESMTPSA id c139sm22613057wme.4.2016.08.02.08.19.19 for <jose@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Aug 2016 08:19:20 -0700 (PDT)
References: <216bb90e-15d5-efd6-e014-024f06af24f2@gmail.com> <48681c51-a1f2-ff43-9af4-521248b29af3@mit.edu> <d838a1dc-6871-ad09-d31c-fc5b9aa02286@gmail.com> <SN1PR0301MB164549BD76157CA2987F2162F5050@SN1PR0301MB1645.namprd03.prod.outlook.com> <935629E3-26CC-4ED2-8589-29242375B765@mit.edu>
To: "jose@ietf.org" <jose@ietf.org>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <20529ae6-75b0-c949-9c37-511b84611bf4@gmail.com>
Date: Tue, 2 Aug 2016 17:19:17 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <935629E3-26CC-4ED2-8589-29242375B765@mit.edu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/1otr4iG6ChZVULhRrLkvnTgrLgY>
Subject: Re: [jose] JOSE and signed REST requests
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Aug 2016 15:19:24 -0000

Thanx everybody for providing so much information, I really appreciate it!

FWIW, the self-contained "RESTless" request scheme I mentioned would in a HTTP context look like this:

     POST /transact HTTP/1.1                           // Always POST and to a single URL/partner
     User-Agent: Java
     Host: payments.mybank.com
     Content-Type: application/json
     Content-Length: 1234

     {
       "@context":"some-name-space",
       "@qualifier":"some-object-type",                  // "Operation"
          .
      other message properties
          .
       "signature":{}                                    // Covers the entire JSON object
     }

Including the target URL in the message seems like a reasonable addition which I have yet to perform.

Anders