Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-model-10.txt> (A YANG Data Model for NTP) to Proposed Standardsecurity
Dhruv Dhody <dhruv.ietf@gmail.com> Mon, 08 February 2021 17:05 UTC
Return-Path: <dhruv.ietf@gmail.com>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C2B833A12B6; Mon, 8 Feb 2021 09:05:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 cna6MvN74JYE; Mon, 8 Feb 2021 09:05:46 -0800 (PST)
Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (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 3FB943A12B5; Mon, 8 Feb 2021 09:05:46 -0800 (PST)
Received: by mail-il1-x136.google.com with SMTP id y17so13383987ili.12; Mon, 08 Feb 2021 09:05:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Lnw3AXw3yKdbOZLLDYMGCcgBoIyRtJqdmdwPLvtjQ+Y=; b=d1BlLFpBAuvDQBoEjt5DBexuQrKeAHbcqqjfwXCdVI/r9Ig3OgJvdSdClQRSZTsuZW YOQnFbGNgbCvYonPQR8wCA7cwum7XacMAGkt9MbMSZjgRjPfFQBTfYn/cSBAliXsg9ku u/71Ig6P4r2/hb6JbkvX/vG5WG6jQtuSnGLNwNd+Gw7WHqlJVORb/MLppNnbBKPqDcSw BVuMsXMOlNHXJ9bDYlx5nvmzJfTwnE777uT+uLqAOcZhGRiQGG+8mn6AyxKapv1oMOnX MxC1lSB1QxIPGVs5KYKNdT25hKXwHgrOYmAE3jurVDWqufqK1ib5xQz4M2MCWKv18F4I 4bnw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Lnw3AXw3yKdbOZLLDYMGCcgBoIyRtJqdmdwPLvtjQ+Y=; b=D2G3xKEmNlqtLs3EGX1l0mdi3pTu+WnPe3EHYVE5SHl3Q7EEJn0+tk3uiuk7DFKKdx 3fW/S6KHtbJMynjGtJi/gSG4a0ZgbiMfIG76L3WOhaF4pPiNopBqdSOdM3VFm0ZRdT0h 3YD70fjsHEl9D42DQd7hVi74ZpntK5s7j20mXKTfZN9wWGDEyD1saAr7YAN9nUIoMW8E BLgLn6nDfYAVfO2LvOeYVBlX/i6sY4OBwmZbHkuCvjAiu/d4/UFIwOJTMGwKOIGFAoPS XPCFahnxlBQnnFow3cXw2RI8913nfmVYSqEsCb2/GmKp1MwYyhxH6Lmlhb3Jj8jSCChK 9Acg==
X-Gm-Message-State: AOAM532i0mGwCCk9w735YHEvCUvYw0VK64hp1rQzU60k4L6xAmwYIPd/ kRSY562jFLdi3uk9aNX5DCwGYAeec/ooZij/MFM=
X-Google-Smtp-Source: ABdhPJw9agR2/p+AVbA7DzYrK0OS5L6xUEbYB+jVdeAp81CSkskSvwhkTjBk4ZhW50hJTT7Q8M/yr/jELOG7RlpM4YM=
X-Received: by 2002:a05:6e02:20ca:: with SMTP id 10mr16820748ilq.14.1612803944699; Mon, 08 Feb 2021 09:05:44 -0800 (PST)
MIME-Version: 1.0
References: <161195994417.2651.6499166797756243533@ietfa.amsl.com> <60212265.6020204@btconnect.com>
In-Reply-To: <60212265.6020204@btconnect.com>
From: Dhruv Dhody <dhruv.ietf@gmail.com>
Date: Mon, 08 Feb 2021 22:35:08 +0530
Message-ID: <CAB75xn7tXa1BCHd=KFR9DC=+bA01R1A+X2M4oUbrF-YLx8ExJA@mail.gmail.com>
To: tom petch <daedulus@btconnect.com>
Cc: last-call@ietf.org, ek.ietf@gmail.com, ntp-chairs@ietf.org, NTP WG <ntp@ietf.org>, Dieter Sibold <dsibold.ietf@gmail.com>, draft-ietf-ntp-yang-data-model@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/5fMIHwuGS_xjLqrApAuEhyu12bw>
Subject: Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-model-10.txt> (A YANG Data Model for NTP) to Proposed Standardsecurity
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Feb 2021 17:05:48 -0000
Hi Tom, Thanks for your detailed review. Lets discuss the security first - On Mon, Feb 8, 2021 at 6:07 PM tom petch <daedulus@btconnect.com> wrote: > > This is my second response to this Last Call, about a possible security > issue. > > RFC8573 seems clear that MD5 must not be used to effect security for NTP > but this I-D imports iana-crypt-hash which allows MD5 without any > restriction, so is MD5 allowed or not? > Good question. While it is easy to restrict the use of MD5 by adding a must statement, I want to check if it is a good idea. The YANG model is written in such a way that it supports older versions of NTP as well. Would barring MD5 configuration be an issue if there are older implementations in the network still? I think perhaps adding a warning in the description is a good idea. I did a quick search and dont see other YANG models doing a check either. Would be good to get some guidance on this. > There are features defined which allow the hash in iana-crypt-hash to be > restricted but this I-D does not use them. > I didn't see any reason to use them in the NTP Yang. Can you? > Probably iana-crypt-hash should be updated - I will raise that on the > NETMOD WG list. > > The I-D also uses MD5 in a way that would appear not to be security > related, to hash an IPv6 address. > This is as per RFC 5905 - If using the IPv4 address family, the identifier is the four- octet IPv4 address. If using the IPv6 address family, it is the first four octets of the MD5 hash of the IPv6 address. > In passing, this I-D has three references to RFC7317. This is wrong - > the module is IANA-maintained and so the references should be to the > IANA website. > But even the iana-crypt-hash YANG model put RFC 7317 as a reference - revision 2014-08-06 { description "Initial revision."; reference "RFC 7317: A YANG Data Model for System Management"; } I will start working on your other comments and prepare a new version. Thanks! Dhruv > The secdir reviewer might be interested in my thoughts. > > Tom Petch > > On 29/01/2021 22:39, The IESG wrote: > > > > The IESG has received a request from the Network Time Protocol WG (ntp) to > > consider the following document: - 'A YANG Data Model for NTP' > > <draft-ietf-ntp-yang-data-model-10.txt> as Proposed Standard > > > > The IESG plans to make a decision in the next few weeks, and solicits final > > comments on this action. Please send substantive comments to the > > last-call@ietf.org mailing lists by 2021-02-12. Exceptionally, comments may > > be sent to iesg@ietf.org instead. In either case, please retain the beginning > > of the Subject line to allow automated sorting. > > > > Abstract > > > > > > This document defines a YANG data model for Network Time Protocol > > (NTP) implementations. The data model includes configuration data > > and state data. > > > >
- [Ntp] Last Call: <draft-ietf-ntp-yang-data-model-… The IESG
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Harlan Stenn
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Dhruv Dhody
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… tom petch
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… tom petch
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Dhruv Dhody
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Harlan Stenn
- [Ntp] Antw: [EXT] Re: Last Call: <draft-ietf-ntp-… Ulrich Windl
- Re: [Ntp] Antw: [EXT] Re: Last Call: <draft-ietf-… Harlan Stenn
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Hal Murray
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Dhruv Dhody
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Miroslav Lichvar
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Dhruv Dhody
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… tom petch
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… tom petch
- Re: [Ntp] Antw: [EXT] Re: Last Call: <draft-ietf-… tom petch
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… tom petch
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Salz, Rich
- Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-mo… Dhruv Dhody
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Harlan Stenn
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Benjamin Kaduk
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Hal Murray
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Benjamin Kaduk
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Harlan Stenn
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Hal Murray
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Dhruv Dhody
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Harlan Stenn
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Dhruv Dhody
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Harlan Stenn
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Harlan Stenn
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Hal Murray
- [Ntp] Antw: [EXT] Re: [Last-Call] Last Call: <dra… Ulrich Windl
- Re: [Ntp] Antw: [EXT] Re: [Last-Call] Last Call: … Harlan Stenn
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch
- [Ntp] Antw: [EXT] Re: [Last-Call] Last Call: <dra… Ulrich Windl
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Danny Mayer
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Salz, Rich
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… James Browning
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Christian Huitema
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Salz, Rich
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… Martin Burnicki
- [Ntp] Antw: [EXT] Re: [Last-Call] Last Call: <dra… Ulrich Windl
- Re: [Ntp] [Last-Call] Last Call: <draft-ietf-ntp-… tom petch