Encryption beyond ws-security: JWE, encrypted content-coding, CMS or else

Roberto Polli <robipolli@gmail.com> Tue, 29 September 2020 16:01 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6B8A33A0EE1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 29 Sep 2020 09:01:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.75
X-Spam-Level:
X-Spam-Status: No, score=-2.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 dhs7MnDbyP4Y for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 29 Sep 2020 09:01:02 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9095E3A0EDA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 29 Sep 2020 09:01:02 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kNI1E-0003qW-HN for ietf-http-wg-dist@listhub.w3.org; Tue, 29 Sep 2020 15:58:20 +0000
Resent-Date: Tue, 29 Sep 2020 15:58:20 +0000
Resent-Message-Id: <E1kNI1E-0003qW-HN@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <robipolli@gmail.com>) id 1kNI1A-0003pt-8N for ietf-http-wg@listhub.w3.org; Tue, 29 Sep 2020 15:58:16 +0000
Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <robipolli@gmail.com>) id 1kNI18-0008PY-Iz for ietf-http-wg@w3.org; Tue, 29 Sep 2020 15:58:15 +0000
Received: by mail-io1-xd2a.google.com with SMTP id j2so5330843ioj.7 for <ietf-http-wg@w3.org>; Tue, 29 Sep 2020 08:58:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=o6LRfXEPn8OwlH9iMhbJdn+KxewPK2yTPX/V8pENfa0=; b=e0jBDGT4dXytwIocA+eMkIzLeNwcF5zVmt9wN9GvB94neiAsYaPE8c5aebSyQZFbd4 BKA8lvmMDLoGFKbcIhLSKl4rxll0lbbA2YdOrURbu9kffGqMz1EAwwfqcDZY+0fXBjJL Qco2Rf1MXMZzCNJpxtgH/3glTLOszkRWx7C7D+DPOGXkv0qbmWAyrmRwgZsUW3c63zGq OKUosufJ55tBiP8bCOo5oSQMIV8WVjAMJ5OHB4nOlZINC+KqUiC6DKFsk3POy2SwG6Lt lekQRKLmrMrBScdY2h6UyqtCB0gxGwzB54jLBssHpMQBXJCMaucw2okwtNb3NlENBnzK wF/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=o6LRfXEPn8OwlH9iMhbJdn+KxewPK2yTPX/V8pENfa0=; b=GS+FTlgnKKqHZLeFd1S9tjtmUgU/AWfPhMJkxWiYjFu9BqyafM3s80vZGU6AJTaloO /KUkPrb7uZdEFVWdx0Sq+bqLd3U7bGl0W7k5mJof1dxMB3MUDrvCHsXXdYbBC9Kh2Mse 6H8fWcZYzWy+OGzAFRl6bIebcMYbq2BHKaxiFAbOEVky6pxUts5oa7xsvxrCYWWIsAsT dV7Z8tKZ8e3d5gKZ039Xc4oTuNd1oiZ2cpRB4ACwYdMAI5Lp21+4/kYy9t/+x0PdG22d 7MG1VxVhi7ScXItNvThWsktGzw+2rXbuzeKtma0+DC8Pncl70EWY47idMjzuVtWpwshH 71jw==
X-Gm-Message-State: AOAM531kwAH5pGTHWSF/mOFuhBMnGPjTIi3Obo5TcBf4eW/ZELBbGxgA IaCVTGMU1SsbIRX+HnWk+ebRa+8OOOTxolMUCpMv2XeG0hNwpA==
X-Google-Smtp-Source: ABdhPJwQsT8kiBh0drtZQ+ssgNd4pHzw8dXMmeRbK6dPgcaDCMe/SCX+9bHVVnVreBkKN9JCZmkXGFpkl2W53JQSiE4=
X-Received: by 2002:a05:6602:2f07:: with SMTP id q7mr2986792iow.191.1601395083299; Tue, 29 Sep 2020 08:58:03 -0700 (PDT)
MIME-Version: 1.0
From: Roberto Polli <robipolli@gmail.com>
Date: Tue, 29 Sep 2020 17:57:52 +0200
Message-ID: <CAP9qbHU-Nkd-3rtL5zb1=C7Uvf+4Pb=ws73R7NF6q_2eVysrTg@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Cc: Alexander.Hoose@fitko.de
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::d2a; envelope-from=robipolli@gmail.com; helo=mail-io1-xd2a.google.com
X-W3C-Hub-Spam-Status: No, score=-5.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1kNI18-0008PY-Iz a6e393d72fa8ecf78180edd6e7ecb3f6
X-Original-To: ietf-http-wg@w3.org
Subject: Encryption beyond ws-security: JWE, encrypted content-coding, CMS or else
Archived-At: <https://www.w3.org/mid/CAP9qbHU-Nkd-3rtL5zb1=C7Uvf+4Pb=ws73R7NF6q_2eVysrTg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38067
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi @all,

I'm trying to find a suitable way to replace ws-* for encrypting
payload bodies with some other specification more suitable to a REST
approach.
It seems that the enterprise industry is still fond of JWE - but  I'd
avoid it if I can, considering that a good library like google/tink is
not going to implement it
https://github.com/google/tink/issues/342#issuecomment-658450381
moreover the specs

Leveraging the content-coding feature of HTTP, there's rfc8188 which
seems interesting: still I don't know how many implementers are in the
wild. Don't know if that mechanism can be extended to PKI encryption.
Another solution could be CMS / S-mime.

What do you think/use/suggest?

Thanks and regards,
R.