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

sree lakshmi <vssreelakshmi24@gmail.com> Fri, 17 May 2024 12:58 UTC

Return-Path: <vssreelakshmi24@gmail.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 38405C180B58; Fri, 17 May 2024 05:58:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.834
X-Spam-Level:
X-Spam-Status: No, score=-1.834 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JsL1SZLJYgco; Fri, 17 May 2024 05:58:03 -0700 (PDT)
Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 45A40C1519AB; Fri, 17 May 2024 05:58:03 -0700 (PDT)
Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3c9c67c059bso53691b6e.3; Fri, 17 May 2024 05:58:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715950682; x=1716555482; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gEmOjz/gsRfUL68i2wwqQHPGOSOxB6oIgtrIqRS8H2M=; b=Z51iVVyXrg+jxOvO8a7J4utfzZKhRkUAS4jUN9HwCnly5tgcab0qWZ69xPfuoxFNNU 1t2KCuNiqlcKRnV02TOY6d+4kYlXujEXMybtSB1uJlMDdJd97+e7500Bpegumwsf1DbY z/l3j7lIPLLQHYilTZKNKzKGvLa1opUTqdv3ocEFJaNYSd+LfwdaVlKzbU+sv9sXwD/i 1shZt9qRTPoICNnM+2hsPQjwvF9TQBwBNkqsOyigbn9hK3QW8Pv3zSmkwsanTimp8CC7 T8hmRML7dVLzpmozllpCb85KeRuh1Pwazp4yYE73exmXziAQ331jvg7yCeEVtyB7lpJQ uGgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715950682; x=1716555482; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gEmOjz/gsRfUL68i2wwqQHPGOSOxB6oIgtrIqRS8H2M=; b=GXkelD6VZVSh8vHr2BPDo20/hBkI907aOePma2R06ZDyLDK5HSElWSyyIQpU/NSf/s 8bU9EwYOahu4+EssTnj1su1pGF7i1aZZlAQ+Ty8O3GZ3910kUlp5DFyGE9AkOttNGCuB 23/SB94XhPV4UjESezjS7YcMP/gVCQq2MaIJ97zRFAQHNdWDCSKw3YMpl6ZhO4XXWmEg tVJn/16SEz++NHGWgcxd6e4lJVSz8s1nb/QxLapZ215GNwpZIPfk/8sQNjAtWVb+oaBN C2h+esHq1iCL51TVcwWNAgnrUPkWfGjNdOFJL+GqxApFaVbFn4OjTWxJ5+qfSJKABhN2 ewaA==
X-Forwarded-Encrypted: i=1; AJvYcCV2JxPby9RHSEyOoT8CThGBV1jltfKb5+a5wFGaunvcKWQ5S+XyRUnGejkWYHzPmT1IUx+GEHE67Axc5S8=
X-Gm-Message-State: AOJu0Yx/9J/BWqpmlCDc1M1yFMQ8XfT3RB4gaUj9TGdGtBjUninfcjE6 He7/ueS/DHkHoMtSibRXRfNzJJIA1XpnjPqMxVbc/05/94ie3dwC40fZ/CPLqwymlQLxYpcxKdE XzHlyFpKXdXI4Km4qwdtN1753pET0PDTLn5I=
X-Google-Smtp-Source: AGHT+IFokMTqJ9OZQoLsAcl28J3iHDSrkUBNm7IQ7L0VyG8//LBTG+0Dcz8aUb5ApnDxiyAD18hf1yWVZNY/6uJ2Fgo=
X-Received: by 2002:a05:6870:9724:b0:23c:7b1b:ba3a with SMTP id 586e51a60fabf-24172f71327mr30329667fac.42.1715950680647; Fri, 17 May 2024 05:58:00 -0700 (PDT)
MIME-Version: 1.0
References: <ZkcwAS3WGgbEhrmS@hephaistos.amsuess.com>
In-Reply-To: <ZkcwAS3WGgbEhrmS@hephaistos.amsuess.com>
From: sree lakshmi <vssreelakshmi24@gmail.com>
Date: Fri, 17 May 2024 14:57:24 +0200
Message-ID: <CADdEg3CogSOATYOq69xfUdeot88r3ZQO0JQRwET=1aYm3XwBqA@mail.gmail.com>
To: Christian Amsüss <christian@amsuess.com>
Content-Type: multipart/alternative; boundary="000000000000c5b3bd0618a5e69f"
Message-ID-Hash: FKV2LVGLCIODK3LWEEA7ACJEQKHFYDTC
X-Message-ID-Hash: FKV2LVGLCIODK3LWEEA7ACJEQKHFYDTC
X-MailFrom: vssreelakshmi24@gmail.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/vb5Fuf1yoOtQhwVZcJW0ozh1zng>
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>

Hi Christian,

Thank you for your input. I like your idea on Figure 5, to make the DO talk
to the AS directly rather than sending a large payload to the client. 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. We could elaborate this step where we can send the large
signed statement to the AS to register the client to ACE framework. Later
as you suggested, the DO can POST a link pointing to the RS. This step
could be considered as a delegation step as well, from the DO to its
trusted client. Yes, I agree this would be a better protocol flow for
the constrained
client. 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.

Yes, indeed with this we could at least solve the AS validation problem and
the client can avoid the initial unauthorized resource request to RS. Yes,
as part of the POST link we must include AS URI, the AS's credential, the
audience and scope and the key ID (or Client ID(there is a similar step in
OAuth dynamic client registration step as well)) that the AS assigned.
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.

Yeah, the two solutions in section 4.2 require the RS and client can query
another online entity when connecting with each other. With this new
approach, we no longer need them.

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.

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

L1:draft-ietf-ace-workflow-and-params-01 - Alternative Workflow and OAuth
Parameters for the Authentication and Authorization for Constrained
Environments (ACE) Framework
<https://datatracker.ietf.org/doc/draft-ietf-ace-workflow-and-params/>

/Sree
*SREELAKSHMI V S*

PhD Student in Industrial Electronics
Luleå University of Technology (LTU)

97187 Luleå, Sweden.
3822





On Fri, May 17, 2024 at 12:23 PM Christian Amsüss <christian@amsuess.com>
wrote:

> Hello Sreelakshmi, authors, ACE,
>
> I've read draft-vattaparambil-ace-wg-poa-device-reg-00 and think it
> provides a valuable contribution to ACE, especially if it grows to
> actually propose an interface to the client registration problem.
> I am not sure that the proposed solution has the ideal work flow, but
> nonetheless, the WG should concern itself with this. (In particular,
> looking at figure 5, I'd rather have the DO talk to the AS rather than
> send a relatively large signed statement to the client that the client
> then relays to the AS -- the client needs to stay small and carry little
> data).
>
> The use case I'm looking into it for is to enable CoRE dynlink [1] (yes
> it's long expired, but I still think we should go on with it), where a
> constrained device is told to act as a CoAP client and pull or push data
> from one resource to another resource, possibly even without
> understanding the role of that resource. (My favorite example is that
> it'd be used to tell a physical temperature control dial to PUT its
> value to a heating control's set-point resource). In practice, picking
> up PoA terminology, the device owner POSTs a link pointing to the RS
> into the binding site resource of the Client, annotated with some
> additional metadata. As the Client is previously unaware of the RS or
> its AS, with PoA, the owner would register the Client at the AS, and
> then add AS metadata into that POST.
>
> (At least) in this case, the AS validation problem has an almost trivial
> solution: As part of the POSTed link (which points to the RS resource),
> the DO would include a bundle of the AS URI, the AS's credential, the
> audience and scope that it should request and possibly also a key ID
> that the AS assigned to the client credentials the DO obtained from the
> AS during client registration (as an optimization to not make the client
> send its credentials by value -- in my scenario this is all run on
> EDHOC, and KIDs make it really really compact).
>
> This way, the unencrypted pre-flight request is completely avoided, and
> we don't need any of the two solutions proposed in 4.2 -- instead, the
> (AS URI, AS credentials, audience, scope) bundle is conveyed to the
> client as part of its mandate to perform some specific task on the RS.
>
> It may even be dangerous *not* to bundle those, if the DO is not just
> "the" device owner but just a user that has some control over the
> client: If there were multiple such users that both have some authority
> over the AS different ASes (or within the same AS), then a less
> privileged user might install some low-authorization PoA into the
> client, but then direct the client to an RS resource where the
> unauthorized initial request redirects the client to use the
> high-authorization PoA installed by a different user.
>
> Best regards
> Christian
>
> [1]: https://datatracker.ietf.org/doc/html/draft-ietf-core-dynlink-14
>
> --
> To use raw power is to make yourself infinitely vulnerable to greater
> powers.
>   -- Bene Gesserit axiom
>