Re: [OPSAWG] re opsawg-tacacs-yang & ietf-system user-authen-order

"Joe Clarke (jclarke)" <jclarke@cisco.com> Wed, 20 November 2019 09:11 UTC

Return-Path: <jclarke@cisco.com>
X-Original-To: opsawg@ietfa.amsl.com
Delivered-To: opsawg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D8FE31208BC for <opsawg@ietfa.amsl.com>; Wed, 20 Nov 2019 01:11:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=kO4m6bnz; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=D8aiDfYn
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 mVX_ChQhUPvC for <opsawg@ietfa.amsl.com>; Wed, 20 Nov 2019 01:11:07 -0800 (PST)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1ADB11208A2 for <opsawg@ietf.org>; Wed, 20 Nov 2019 01:11:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2222; q=dns/txt; s=iport; t=1574241067; x=1575450667; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=UOf9icWMBsL3O2712oQTa6lJ0twbhAhGHv8LT+v0d70=; b=kO4m6bnzd1Dn0850ulG3tLcJeu513WZfWNkOVgbNX/UtjJSsOkP85D5Z ldcNVEWEScfqXB/ogBZU7NL5+uBHUuwRIGxo/dHflFzTVkZP/N89qYATM X21W44eX4+dmg6Klma1roe3W9zPQaXzK6jFU79kqG9z0nM9BXBOY5fC39 4=;
IronPort-PHdr: 9a23:7RWlTxXq5kIjuF2aOK7TjMU2f93V8LGuZFwc94YnhrRSc6+q45XlOgnF6O5wiEPSA92J8OpK3uzRta2oGXcN55qMqjgjSNRNTFdE7KdehAk8GIiAAEz/IuTtank4F8BLTlxo13q6KkNSXs35Yg6arw==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AJAADLAtVd/4QNJK1lGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYFqBQEBAQELAYFKUAWBRCAECyoKhCCDRgOEWoYZgl6YAIEugSQDVAkBAQEMAQEtAgEBhEACF4IPJDQJDgIDDQEBBAEBAQIBBQRthTcMhVEBAQEBAgESEREMAQE3AQQLAgEIGAICJgICAjAVEAIEDgUigwCCRwMOIAEDpRkCgTiIYHWBMoJ+AQEFgkmCPBiCFwmBDigBjBQYgUA/gTgfgkw+hCUBAQgWgxAygiyQE54aCoIrjECJDxuFUpQ/hyyhJAIEAgQFAg4BAQWBUjmBWHAVOyoBgkFQERSRGoNzilN0gSiLYIEiAYEOAQE
X-IronPort-AV: E=Sophos;i="5.69,221,1571702400"; d="scan'208";a="664714421"
Received: from alln-core-10.cisco.com ([173.36.13.132]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 20 Nov 2019 09:10:58 +0000
Received: from XCH-RCD-018.cisco.com (xch-rcd-018.cisco.com [173.37.102.28]) by alln-core-10.cisco.com (8.15.2/8.15.2) with ESMTPS id xAK9AwVs012371 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 20 Nov 2019 09:10:58 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-RCD-018.cisco.com (173.37.102.28) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 20 Nov 2019 03:10:57 -0600
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 20 Nov 2019 03:10:57 -0600
Received: from NAM04-CO1-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 20 Nov 2019 03:10:56 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sn87N/03SLAd2iuXuZXuFQFWYfq/Qe66d3Dxalb+OILJwSvMrf/BNSjeAn1foFZ6cZ/1qmX1o2lwj3IDiGkV3r1/C2lNxml3Q+8z9WkPXhCntDhcEWETEiHekVUasaOC/51ZklRAAF637UcH1wZNmzxCtsTB/KeDoes0USE2UwBnz15W8Ya++JwQkRpt+1mXSkoXfcOEPL0hcvG4fuo8TEesxLSNJrZwXuNm84ss37SzthjZKQYmL8bBeL1FS61dI/2VWa8ecsjaJcJdZ5Iqx+HwaEh1J9MRCV6x5YmuaU6PFWUSW+2PIijrn6K9ZCAW5k9yJI8ETICceBtP7n9W1g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UOf9icWMBsL3O2712oQTa6lJ0twbhAhGHv8LT+v0d70=; b=ffmAgiwRrFQbgHd3Wc9PA5OB2gm7HO4lu7+66USyWOzVBsjuCNnmyBXbvhRh6jguQvQUSeawTuE+XntczYfvtKEMgO6oW9yWpTnAod23kRQVmWIWfTExT1VNKDFe3McAjw1nAE0Y7IIxRgCv7e6GjkN6LTHXEQfxE4jIkM+0Q8R6ROCs0fHSRvtyji47XKCsT76tKMBBAAiN+jxluLmHm/bTjoyCLccp1eEsnlw65YVZ9rr9YvFWiFea8e8NqeWn1A99Yl0hSOC/1EV7an7lUTyoZ3rtc34e406nAgBEcvrgc5/Dqh9epWNEkkvCN8379OjAqKsTWEiXa9IC/fAVGA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UOf9icWMBsL3O2712oQTa6lJ0twbhAhGHv8LT+v0d70=; b=D8aiDfYnU1S7oP7RA6DYGa8GQloG1fBpXzYLxK+yhpSn+vsZjgSsEmT/zrVBc01VZoZo3FauwATGVoNhlc8EVKF4ekJJ7kp14pe+p7dl81civphWuGG2EW7CqztVK8s4QAIuuH7MVsdt6f7Mnn5fo37/WQH5hfViVfczaHch0+c=
Received: from BN6PR11MB1667.namprd11.prod.outlook.com (10.172.23.12) by BN6PR11MB4116.namprd11.prod.outlook.com (10.255.131.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17; Wed, 20 Nov 2019 09:10:55 +0000
Received: from BN6PR11MB1667.namprd11.prod.outlook.com ([fe80::499:8548:e967:458e]) by BN6PR11MB1667.namprd11.prod.outlook.com ([fe80::499:8548:e967:458e%12]) with mapi id 15.20.2474.015; Wed, 20 Nov 2019 09:10:55 +0000
From: "Joe Clarke (jclarke)" <jclarke@cisco.com>
To: john heasley <heas@shrubbery.net>
CC: "Wubo (lana)" <lana.wubo@huawei.com>, opsawg <opsawg@ietf.org>
Thread-Topic: [OPSAWG] re opsawg-tacacs-yang & ietf-system user-authen-order
Thread-Index: AQHVn1EmTy6mXPNIwkqu28KSNyZFj6eTiJkAgAA5DgCAAASJAA==
Date: Wed, 20 Nov 2019 09:10:55 +0000
Message-ID: <DBF7E11F-FF91-479B-BD9F-F3AE591A8D41@cisco.com>
References: <20191120031745.GC49549@shrubbery.net> <96C3F282-036F-4F04-BB1A-B18407AEE502@cisco.com> <20191120085440.GD38915@shrubbery.net>
In-Reply-To: <20191120085440.GD38915@shrubbery.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=jclarke@cisco.com;
x-originating-ip: [31.133.158.107]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: ad86810a-2437-4d1f-4974-08d76d998ce2
x-ms-traffictypediagnostic: BN6PR11MB4116:
x-microsoft-antispam-prvs: <BN6PR11MB4116D3D5F121F7DB5A74359CB84F0@BN6PR11MB4116.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 02272225C5
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(366004)(376002)(396003)(346002)(136003)(189003)(199004)(25786009)(33656002)(14454004)(2906002)(86362001)(36756003)(478600001)(54906003)(99286004)(66066001)(6116002)(3846002)(8936002)(316002)(81166006)(81156014)(8676002)(5660300002)(446003)(186003)(26005)(4326008)(6436002)(6246003)(6506007)(71200400001)(76176011)(14444005)(71190400001)(256004)(11346002)(66446008)(64756008)(66556008)(66476007)(102836004)(2616005)(476003)(486006)(229853002)(6512007)(6486002)(6916009)(7736002)(305945005)(66946007)(53546011)(91956017)(76116006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR11MB4116; H:BN6PR11MB1667.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: ExE/hp7AGHYDqftkOvxzY8yPcqXdxvZ2nHORQIMtPLUGXSe27nVJNl0RBx36DeiVgkNYVGRvbqFuemQEhXp6GBE4gTdX5N2KQaFHYUC28YA8Kg+1Hf+Vqz25ntXWODHOyuNJiC+65U8bSTBBnE6eWIb1/PU07sNpYunIWqBxH9TieyX7BxAt0mbb80uCgdq83NZh3B15zwpwS0VqSqpFX6ueja4qNyF4prH7E7f+nu4+XKK0JNt2tbIqu6pRPBYJOSyp1PtRlcTH07RMI5y2zagZ0QEL7mT4TpTIrHr3RVTabMMgTJvh9zFOnlgHb1lmUIUaaaLJvLvNBT/NtnxAbp02h8tHxFyofQrGM9t1Sz7zBGOEDuwCoN+3qYJFUfuqA9zb4k3T50TKy19LvoRKgTfYxmRetnxThH+DgUmHHb8KGUBl7WahSma+LFc5/uxC
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <92EC4513821C4D4EBB71FD62B3F2E0B3@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: ad86810a-2437-4d1f-4974-08d76d998ce2
X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Nov 2019 09:10:55.5139 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 6QGcigodIPMrXI5Su7+xy8wey7ofI3jp5zxBaAP0ErgsdMDGTJQfFtITmObyJqAYnGtxwp3oHV0NJdwiUX2zhQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB4116
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.28, xch-rcd-018.cisco.com
X-Outbound-Node: alln-core-10.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/opsawg/ejH12pewG9WRH6Du-jtd7A6jH5U>
Subject: Re: [OPSAWG] re opsawg-tacacs-yang & ietf-system user-authen-order
X-BeenThere: opsawg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: OPSA Working Group Mail List <opsawg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/opsawg>, <mailto:opsawg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/opsawg/>
List-Post: <mailto:opsawg@ietf.org>
List-Help: <mailto:opsawg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/opsawg>, <mailto:opsawg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Nov 2019 09:11:09 -0000


> On Nov 20, 2019, at 03:54, john heasley <heas@shrubbery.net> wrote:
> 
> Wed, Nov 20, 2019 at 05:30:29AM +0000, Joe Clarke (jclarke):
>> Lada replied on YANG docs with a suggestion for the T+ module authors.  While we can’t affect the authentication-order node, the tacacsplus container could be defined like:
>> 
>> augment "/sys:system" {
>> container tacacs {
>>   must "not(derived-from-or-self("
>>      + "../sys:authentication/sys:user-authentication-order, 'tacacs')"
>>      + "or server";
>>   list server {
>>      ...
>>   }
>> }
>> }
>> 
>> In this manner, T+ can provide enforcement.  Lada also mentioned that this would have been a better way of handling RADIUS in ietf-system.  Certainly this could be an item for a .bis, but not sure if this alone is worth taking on that work.
> 
> That would be an improvement, but I still assert that this constraint is
> not necessary nor desired - tacacs nor radius - if I'm reading that
> correctly (XPATH often confuses me).

This XPath looks at the authentication order list to see if any node in it is “tacacs” (or tacacsplus in what we’d want).  If so, it enforces at least one server to be specified.  So I think you’re reading it right.  I agree, it likely isn’t required.  It does, however, get someone to think about properly configuring T+ if they are going to enable it in the order.  So it’s a nice to have.

> 
> ps. parens imbalanced?

Yeah, yeah :-).  Mac Mail caused some weirdness.  Also, note, this is “pseudo-code” as we will want to use “tacacsplus” instead of just “tacacs”.

Joe