Re: [secdir] Secdir early review of draft-ietf-idr-bgp-prefix-sid-06

stefano previdi <stefano@previdi.net> Wed, 26 July 2017 13:18 UTC

Return-Path: <stefano@previdi.net>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ACE16132033 for <secdir@ietfa.amsl.com>; Wed, 26 Jul 2017 06:18:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=previdi-net.20150623.gappssmtp.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 6HopWci3yMgy for <secdir@ietfa.amsl.com>; Wed, 26 Jul 2017 06:18:45 -0700 (PDT)
Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 265E013202E for <secdir@ietf.org>; Wed, 26 Jul 2017 06:18:45 -0700 (PDT)
Received: by mail-wm0-x241.google.com with SMTP id r123so10594801wmb.5 for <secdir@ietf.org>; Wed, 26 Jul 2017 06:18:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=previdi-net.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PBEBERVFpYdiNr8F6BCUx2Dsw9PJVe/ASZ87RGMiBn8=; b=GZ8mceeRmIEW4PAqtFFYVNdWnBFOP8pCnL5+UAUpdAPADfGBuo389ZkfEt/xo4Q2+2 F3nIi7yfepfUSqgWguhIsTLSHQm65XY3tkcSgaUkqzSChhVoR4yXxk1RQReOTG+mzbUj BseVfbNcHG1UWInE7CQ9ikzBGDFcTBQAU+1CBp7D28gbMzqwicUxeMQU/wlIRsgUJVcj Suth8d0qRE4uFu4r+3WAaFRLIZ4eAnCJOmfEZE2Bld+UH+TaD8Ed+bhi0wL7KIPhdSzl sYF7GWDDtHhx0T1Ydq7Brovsu3BSUaLo3ujp1XBX61HZayhr5sFL3hkYs10xj/JLI2Qm w75Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PBEBERVFpYdiNr8F6BCUx2Dsw9PJVe/ASZ87RGMiBn8=; b=I3yhsSaNnETcSe2bRLHdz03wdMk7d4jVkoG8H/k07wO9pbQcGE7OlZpTr/J911OZD9 2w9s550fC2I9Z9fLHYmXk78RaQWPtaJ3gndD3oqXZd+V2o8imzyUHDpUjNC4OwdrDktD Cx3mzNXq2L8iTpNE6E4plAHPZ603JvokVEvIsxLcRqo63f9rxPHDROJ7ulWHH2ghsYzw GlV6oeTKQinzWw+ZXq9ZJ1RZqaTOyu7+O7I8Q025pkofrB3Ld8SKSL50hpvEJHOQU1x9 k7gv0pVJrGzd3gEdiYpnqHYAtHpQZyaucWMHE3qnBJ8HFYX+cITxHMj0B/0eI+lqtg2I bmwA==
X-Gm-Message-State: AIVw112ECJy6Je9UQPaUeRM/5AKhSDz2GeoMHGjmtNkSgIqo1MpidXWS XE6gbJsFR8faBbqb
X-Received: by 10.28.212.10 with SMTP id l10mr772480wmg.40.1501075123474; Wed, 26 Jul 2017 06:18:43 -0700 (PDT)
Received: from dhcp-10-61-103-15.cisco.com ([173.38.220.58]) by smtp.gmail.com with ESMTPSA id x98sm31558533wrb.47.2017.07.26.06.18.41 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 06:18:42 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Content-Type: text/plain; charset="utf-8"
From: stefano previdi <stefano@previdi.net>
In-Reply-To: <150071889993.20425.5273428383173596948@ietfa.amsl.com>
Date: Wed, 26 Jul 2017 15:18:40 +0200
Cc: secdir@ietf.org, iesg@ietf.org, draft-ietf-idr-bgp-prefix-sid.all@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <6A05B578-F8DE-4197-97B8-82886089782B@previdi.net>
References: <150071889993.20425.5273428383173596948@ietfa.amsl.com>
To: Brian Weis <bew@cisco.com>
X-Mailer: Apple Mail (2.2104)
Archived-At: <https://mailarchive.ietf.org/arch/msg/secdir/rMGqVloXQ1nNz6SirRfGp8ZxIvw>
Subject: Re: [secdir] Secdir early review of draft-ietf-idr-bgp-prefix-sid-06
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/secdir/>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jul 2017 13:18:46 -0000

Hi Brian,

thanks for the review. Some comments here below.


> On Jul 22, 2017, at 12:21 PM, Brian Weis <bew@cisco.com> wrote:
> 
> Reviewer: Brian Weis
> Review result: Has Nits
> 
> I have reviewed this document as part of the security directorate's ongoing
> effort to review all IETF documents being processed by the IESG. These comments
> were written primarily for the benefit of the security area directors. Document
> editors and WG chairs should treat these comments just like any other last call
> comments.
> 
> This document describes a BGP extension to signal the BGP Prefix-SID use with
> Segment Routing.  as well as the rules to originate, receive and handle error
> conditions. The BGP extension defines a new type of BGP path attribute passed
> within BGP, and does not change the security considerations of the BGP protocol
> itself.
> 
> I consider this document “ready with nits”.
> 
> The Security Considerations section reasonably states that the use of this BGP
> attribute “inherits the security considerations” of the BGP-4 RFC as well as
> the RFC defining how labels are carried in BGP-4. As an aside, those documents
> are quite old. For example, RFC 4271 says that the TCP-MD5 option is required
> to implement for authentication, but this has been replaced by a much stronger
> authentication method (TCP-AO). It would be nice if we had newer security
> considerations for BGP-4 but that advice doesn’t belong in this document.
> 
> The Security Considerations might have said something about the how an AS would
> protect itself against a peer sending the Prefix-SID attribute across AS
> boundaries, but that text is contained in useful places elsewhere in the
> document and seems sufficient.
> 
> I have only one nit, which is some confusion regarding scoping of the SID. The
> document clearly states that a SID has a limited scope within the network, 
> which is important because outside of that scope an SID value would have a
> different meaning. This is a security  consideration, because accepting a SID
> in the wrong scope could possibly cause a security issue if packets are
> forwarded to the wrong identity (e.g, the packets were intended for a firewall
> within the AS, not a service outside of the AS).
> 
> (a) Section 5.1 says it should not be advertised outside of an AS unless
> “explicitly configured to do so”. It would be nice if the conditions for
> explicitly configuring the SID to be advertised outside of the AS were
> mentioned here.


usually we don’t define these condition because they are related to each individual operator policy. What we want to be sure of is that any compliant implementation, by default, will not propagate the attribute outside the AS.

Under which conditions propagation is allowed is a local matter of the operator and how it is effectively achieved is a matter of local implementation.


> (b) The last paragraph of Section 8 says it is applicable within an SR Domain
> (i.e., more than an AS), and Security Considerations says something similar.
> 
> (c) Security Considerations speaks of limiting BGP Prefix-SID within a
> “domain”. Is that intending to say an “SR domain”?


More generally, by domain we intend the set of AS under control of the same organization/operator.


> I suspect whether an SID should be advertised outside of the AS depends on
> whether an AS is part of an “SR domain” or not, and that there's likely never a
> good case to advertise it outside of an AS unless it is part of an "SR domain".
> But it would be good if there was some text clarifying  the conditions when it
> is reasonable to share an SID between ASes.


Well, I’m not sure that would be a good idea because the conditions may vary over time and we will never be exhaustive anyway.

Thanks.
s.


>