[Ace] Re: PoA based Device Registration (draft-vattaparambil-ace-wg-poa-device-reg): Support, suggestions

Christian Amsüss <christian@amsuess.com> Fri, 17 May 2024 13:57 UTC

Return-Path: <christian@amsuess.com>
X-Original-To: ace@ietfa.amsl.com
Delivered-To: ace@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0D2FAC1D4CF4; Fri, 17 May 2024 06:57:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.899
X-Spam-Level:
X-Spam-Status: No, score=-6.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qIEJdr9J5H5V; Fri, 17 May 2024 06:57:53 -0700 (PDT)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1F0F0C14F6BA; Fri, 17 May 2024 06:57:49 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by smtp.akis.at (8.17.2/8.17.2) with ESMTPS id 44HDvjSp083065 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 May 2024 15:57:45 +0200 (CEST) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host 095129206250.cust.akis.net [95.129.206.250] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (hermes.lan [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 127073A7DE; Fri, 17 May 2024 15:57:45 +0200 (CEST)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:6b53:33e8:97f6:e185]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id C4104355AC; Fri, 17 May 2024 15:57:44 +0200 (CEST)
Received: (nullmailer pid 24307 invoked by uid 1000); Fri, 17 May 2024 13:57:44 -0000
Date: Fri, 17 May 2024 15:57:44 +0200
From: Christian Amsüss <christian@amsuess.com>
To: sree lakshmi <vssreelakshmi24@gmail.com>
Message-ID: <ZkdiWBibm7Z8VqGy@hephaistos.amsuess.com>
References: <ZkcwAS3WGgbEhrmS@hephaistos.amsuess.com> <CADdEg3CogSOATYOq69xfUdeot88r3ZQO0JQRwET=1aYm3XwBqA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="RVNNu7seh67v771W"
Content-Disposition: inline
In-Reply-To: <CADdEg3CogSOATYOq69xfUdeot88r3ZQO0JQRwET=1aYm3XwBqA@mail.gmail.com>
X-Scanned-By: MIMEDefang 2.86
Message-ID-Hash: 6SZUIROBNLNXCK6T3GUZKTSMXR4U6FMJ
X-Message-ID-Hash: 6SZUIROBNLNXCK6T3GUZKTSMXR4U6FMJ
X-MailFrom: christian@amsuess.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-ace.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: draft-vattaparambil-ace-wg-poa-device-reg@ietf.org, ace@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Ace] Re: PoA based Device Registration (draft-vattaparambil-ace-wg-poa-device-reg): Support, suggestions
List-Id: "Authentication and Authorization for Constrained Environments (ace)" <ace.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/yDaPrlZT5aNW7tRW053_w0D3Gss>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ace>
List-Help: <mailto:ace-request@ietf.org?subject=help>
List-Owner: <mailto:ace-owner@ietf.org>
List-Post: <mailto:ace@ietf.org>
List-Subscribe: <mailto:ace-join@ietf.org>
List-Unsubscribe: <mailto:ace-leave@ietf.org>

Hello Sree,

On Fri, May 17, 2024 at 02:57:24PM +0200, sree lakshmi wrote:
> In this draft, we have assumed a pre-established mutual authentication
> step between the DO and the AS. We haven’t explained it in detail
> because it is an assumption.

The assumption I've been working on is that DO is enrolled to the AS as
a C. Either the authorizations the AS associates with the DO have a
"this may be delegated" flag on them, or the AS simply treats itself as
an RS, where some C (such as the DO) are authorized to utilize the
"register more clients and transfer some authorizations" interface.

As I understand the interfaces we lack, the OAuth dynamic client
registration covers both the creation of a client and giving it the
right scope; for ACE I hope we can do something much slimmer.

> I read a new alternative protocol flow of ACE (L1), this will even
> decrease the load on the client side. We can discuss. I will look into the
> CoRE dynlink you mentioned. Will see how we can use it.

The alternative flow can certainly be a good simplification in some
cases.

It would be a *great* simplification if by the mere request from the DO
it could already issue the token and install it on the RS, and refresh
it on expiry (for this would free the C from the need to ever actually
perform the C-AS protocol). Some prior chats indicate that this would
contradict the ACE architecture where the AS needs to prove that C
actually has that key, but let's discuss that more. (Personally I don't
see anything wrong with the AS issuing a token to C blindly -- the token
will be bound to the key included, and success of EDHOC proves
possession of that key to the RS).

If that larger simplification is possible, the data the C receives from
the DO would not even include AS details any more, but instead would
contain details of the token response (eg. rs_cnf).

> We also do not like to send the credentials in plaintext, we can go with
> EDHOC with key identifiers, but I am not well aware of how this works and
> how to show this in the protocol flow diagram. We can have a discussion on
> this.

The credentials are not sent in plain text in EDHOC: the initiator's
credentials (ie. the token) would only be revealed to the RS after C has
verified that the RS just presented the right rs_cnf.

> The problem with bundling of the AS URI, AS credentials, audience, scope;
> we haven’t thought about it in this way. We had a small thought on multiple
> entities and the scalability of the solution.

Multiple entities definitely make this more complex. If the RSes can be
expresed as a group audience, tools like rs_cnf2 (also from
ace-workflow-and-params) could help.

> We can meet in Paris, me and Olov will participate in person:)

Looking forward to that!

BR
c

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom