Re: [netconf] Paul Wouters' Discuss on draft-ietf-netconf-ssh-client-server-38: (with DISCUSS and COMMENT)

Kent Watsen <kent+ietf@watsen.net> Tue, 05 March 2024 01:35 UTC

Return-Path: <0100018e0c40495f-08a2cfee-39e8-4565-95c7-a1b4ffca1c6d-000000@amazonses.watsen.net>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7EEE8C1CAF2E; Mon, 4 Mar 2024 17:35:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 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, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, 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 (1024-bit key) header.d=amazonses.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 Sz7HxU9KdQAr; Mon, 4 Mar 2024 17:35:25 -0800 (PST)
Received: from a8-88.smtp-out.amazonses.com (a8-88.smtp-out.amazonses.com [54.240.8.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9961BC1C4DBF; Mon, 4 Mar 2024 17:35:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1709602523; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=EDEh0BIJuI82I0LD/SLQ6ODsccZ4zckGBvPnLA9OXck=; b=iRS+9guJ+QGXU2qplnMVJ4gc2fu7bliuhOKsT4XTEfDY6oxb866RMPrJrelCoO3O lrS5vUZHoUmnHyR7ihgTDbBUy7mcerswIA9yZFnFRPMzujTqthMSfh1WPa0pd5nXD5l 8ALOLsUYW2TnlXSJ+TqmBZOJSVkyVTIYlAyAUE7Q=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100018e0c40495f-08a2cfee-39e8-4565-95c7-a1b4ffca1c6d-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_AA12EDC0-0032-4B6D-88EA-F82310068229"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\))
Date: Tue, 05 Mar 2024 01:35:23 +0000
In-Reply-To: <CAGL5yWb2D1Sh8X_u-Ef0vjTOk-YJ9yWC32jcf2RREmZ0Q2Qf5w@mail.gmail.com>
Cc: The IESG <iesg@ietf.org>, draft-ietf-netconf-ssh-client-server@ietf.org, "netconf-chairs@ietf.org" <netconf-chairs@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>, "Per Andersson (perander)" <perander@cisco.com>, Mahesh Jethanandani <mjethanandani@gmail.com>
To: Paul Wouters <paul.wouters@aiven.io>
References: <170915108720.25797.11710201625758724143@ietfa.amsl.com> <0100018dfc51682b-6ce95f8b-3682-4582-b3f7-b107f08fbd38-000000@email.amazonses.com> <CAGL5yWax8pfsjrcQkoRn5n9NAda6NWcHYbnTMnpFUnNJFprf6w@mail.gmail.com> <0100018e052818da-14f2fa1d-c6ed-4237-ab9e-59cf1e60ba60-000000@email.amazonses.com> <CAGL5yWb2D1Sh8X_u-Ef0vjTOk-YJ9yWC32jcf2RREmZ0Q2Qf5w@mail.gmail.com>
X-Mailer: Apple Mail (2.3774.400.31)
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2024.03.05-54.240.8.88
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/PQ7UN5s8Wv2DLEMVGeCn3Dy8ezo>
Subject: Re: [netconf] Paul Wouters' Discuss on draft-ietf-netconf-ssh-client-server-38: (with DISCUSS and COMMENT)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Mar 2024 01:35:29 -0000

Hi Paul,

Something seems wrong with the quote-levels in your response.
I added "[Paul writes]” to where I see your messages below.


> On Mar 4, 2024, at 8:10 PM, Paul Wouters <paul.wouters@aiven.io> wrote:
> 
> 
> On Sun, Mar 3, 2024 at 11:31 AM Kent Watsen <kent+ietf@watsen.net <mailto:kent%2Bietf@watsen.net>> wrote:
> 
> [cut all the agreements and non-issues]
> 
>> I’m confused, where are these ‘@‘ variations defined?   They are not defined in the Encryption Algorithm Name registry here:
>> https://www.iana.org/assignments/ssh-parameters/ssh-parameters-17.csv
>> 
>> So I believe the SSH protocol uses "namespaces" for some algorithms. If there is no "@" symbol it means the IETF / IANA
>> namespace. But OpenSSH has its own namespace with its own entries. That's why I thought it might be useful to add these
>> to ensure people are aware that this is valid syntax as well.
> 
> Oh, this?  https://www.rfc-editor.org/rfc/rfc4250.html#section-4.6.1
> 
> Now I understand...
> 
> I understand now what you mean about the local names having the ‘@‘ character.
> 
> I fixed the YANG by creating new typedefs enabling the various algorithm values to either be from the IANA-defined registry or be a local name (containing the ‘@‘ character.
> 
> I updated both examples in Section 2.2 to include the local names "ssh-rsa@openssh.com <mailto:ssh-rsa@openssh.com>" and "aes256-gcm@openssh.com <mailto:aes256-gcm@openssh.com>”.
> 

[Paul writes]
> This did not make it into draft-ietf-netconf-ssh-client-server-39 ?

It will be in -40.   I was going to publish it today, but was waiting to hear back from other ADs first...


> Eg AES-CBC-SHA2, the "SHA2" part is the integrity aka mac.
>> For AEAD algorithms such as AES-GCM and CHACHA-POLY, the integrity/mac part is integral to the encryption algorithm, so it has no separate "mac".
>> So my question was, when using an AEAD, what is expected for the <mac> field? Should it be empty? Should it be absent? Should it contain a value "none"?
>> So I was wondering if guidance should be given here about what is valid/allowed and what is not.
> 
> Okay but, unless I’m mistaken, the guidance is clear (though possibly wrong).  The YANG says that the value must be one of the values from the underlying IANA registry (or a local name containing ‘@‘).  For reference, the “supported-algorithms” node lists all of the algs the SSH-server supports.
> 
> To this end, you are right that IANA's AEAD alg names do not encode a MAC algorithm (e.g., SHA2).  Using your language, the "<mac> field" could be said to be “empty" or “absent”.   I don’t see how this is handled in practice.  I checked RFC 5647 to no avail.
> 
> I think that the allowed values are well-defined.  How the AEAD algs set a MAC to use seems to be outside the scope of this document.  Agreed?

[Paul writes]
> The MAC is internal to the AEAD. What this means though is that an encryption method that is an AEAD MUST NOT also specify a mac. And if you
> specify an AEAD and non-AEAD encryption algorithm, only the non-AEAD needs the mac entry. I am not entirely [sure] if the current syntax is good enough for these.

I’m sorry this is taking too long, but can you please provide a concrete example?

Is your comment related to https://datatracker.ietf.org/doc/html/rfc5647#section-5.1:

     If AES-GCM is selected as the encryption algorithm for a given
     tunnel, AES-GCM MUST also be selected as the Message Authentication
     Code (MAC) algorithm.  Conversely, if AES-GCM is selected as the MAC
     algorithm, it MUST also be selected as the encryption algorithm.

???



>> It is but the text "secret" is not a TYPE but a VALUE. Eg you are using a secret of "secret". I wasn't sure if that was very clear. That also does not make it
>> entirely clear of the secret is cleartext or some other format (without reading 7317). If you used "ExampleSecret", that would be more clear.
> 
> Changed examples to use the value "example-secret” instead.
> 
> That also did not make it into -39 ?
> 
> I'll wait with updating my ballot until we understood each other regarding the "@" namespace and <mac> topics.
> 
> Have I provided sufficient response above?


[Paul writes]
> Yes, but I don't see all the promised changes in the latest version?

They will be in -40.   I was going to publish it today, but was waiting to hear back from other ADs first.   Sort of good thing too, since now we still have open the AEAD thread...


> Paul

Kent