[Anima] GRASP prototype support for DULL mode

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 21 September 2020 04:37 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1CD423A1386 for <anima@ietfa.amsl.com>; Sun, 20 Sep 2020 21:37:22 -0700 (PDT)
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 VK35y7La84nU for <anima@ietfa.amsl.com>; Sun, 20 Sep 2020 21:37:20 -0700 (PDT)
Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) (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 ACD0C3A135C for <anima@ietf.org>; Sun, 20 Sep 2020 21:37:20 -0700 (PDT)
Received: by mail-pg1-x532.google.com with SMTP id l191so7940112pgd.5 for <anima@ietf.org>; Sun, 20 Sep 2020 21:37:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=Zl0w1kBbFo7eZPhY1jm8WIba++1EYk51it8+dCfUlho=; b=M7zhFIMrC7dwSUoK25prLEnp82BlnLX+TGPK381C5FJuAEch8XhaHJjI1a81tBedHX AffFc96Md0UuU1bbHIU/ZusI38k5wonjGEqozR9/KsG0huUk/kgybn6RA4lozhJ+myLC siDVAN7m+isUbvJxl0eCnCGnL1ZxcvT8fRQzR5cKZ5We5q8LS3EzG6FkigUiWuo2Qa5h I7nHg8BuUFB0YAyWT16jjIFwG/UX/KuyG4j/7p0LhfgTU/J8LiGj6po93tx7tSLdlmbt W1szf7nj0HB/6yYTRQRQsAgchnWuFMFcR+tJmQZ7gkj1kVjgD2ctglJmnMAKlSUYK+fe QlOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:organization:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=Zl0w1kBbFo7eZPhY1jm8WIba++1EYk51it8+dCfUlho=; b=rsKEAPXBHY7GenEYOrhwXcCUevxN8L1ckvFYNLmB1TWlCOyyXjzvoDDHC5zwwZPkD/ ptP4AdFJS+TyXoZM5qCF+/NQREV+qsnGTOfDgdDGekbgxLCIUIB84SoUqVR6nmG6yNZ1 FskO6So4kHjyXfBhr9PYR61gT7DdoSuGZCRUxKUEF+650QsIJFYKodhiKBhnGeQ6RFZZ SjV/2S7ZwuIy3Jx6to/CTwe1bMAgLmZy/KbLh3f/7SeS6xEALp0gsmfW35IjOnQPWh45 gMXYb9rW/ypl87GScKZxlUcBG0ROqpbCiz1nrGBKGD2hyOlk/90oaSwb4Ve0WGlBCwAw zK3w==
X-Gm-Message-State: AOAM533hzuBav6P+GBCji7sMoVW7euX5KBT4DSlyn6rD8VQTRyiKIHFV iyjfddvDU+qixKURgIWaj5oe6m37nrw=
X-Google-Smtp-Source: ABdhPJzr5iNVZ/wNsVQNafFW5CIkTIQQrDF+6MsQeYP+X/Qa7n0iI/2Q66CI6v/tvbHaW0gZs7NQWw==
X-Received: by 2002:a17:902:b590:b029:d1:cbf4:bcdc with SMTP id a16-20020a170902b590b02900d1cbf4bcdcmr32767542pls.29.1600663039845; Sun, 20 Sep 2020 21:37:19 -0700 (PDT)
Received: from [192.168.178.20] ([151.210.138.136]) by smtp.gmail.com with ESMTPSA id d6sm9469365pjw.0.2020.09.20.21.37.17 for <anima@ietf.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Sep 2020 21:37:19 -0700 (PDT)
To: Anima WG <anima@ietf.org>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Message-ID: <ac516107-d657-d470-52c8-23569a276e12@gmail.com>
Date: Mon, 21 Sep 2020 16:37:15 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/P6nCyNsIIIY4Bfokqdoa1JdPXDc>
Subject: [Anima] GRASP prototype support for DULL mode
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Sep 2020 04:37:28 -0000

With the ACP draft now close to approval, I've just done what I should have done 3 years ago, i.e. coded support for the DULL (insecure link-local) mode of GRASP that both BRSKI and ACP make use of. I had no trouble following the rules in the GRASP spec, and the code has been tested using the dummy BRSKI ASAs that I wrote three years ago.

As always, this is *demo* code for prototyping and checking purposes, not production code. But for Python lovers everwhere, the updated code is in the files acp.py and grasp.py at https://github.com/becarpenter/graspy and the updated documentation is graspy.pdf

(One point I noticed is that a BRSKI proxy is required to run *two* instances of GRASP, one a DULL instance communicating with on-link pledges, and the other one a secure instance communicating with the BRSKI registrar. That's a bit awkward to do as my Python code is structured, so I cheated on that and also used DULL to communicate with the registrar. That isn't a problem with the spec.)

Regards
   Brian