Re: [Ecrit] planned-changes: two questions

Brian Rosen <br@brianrosen.net> Mon, 30 August 2021 21:57 UTC

Return-Path: <br@brianrosen.net>
X-Original-To: ecrit@ietfa.amsl.com
Delivered-To: ecrit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 72BAD3A23F3 for <ecrit@ietfa.amsl.com>; Mon, 30 Aug 2021 14:57:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=brianrosen-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 Rn1AdDfJ6fgN for <ecrit@ietfa.amsl.com>; Mon, 30 Aug 2021 14:57:47 -0700 (PDT)
Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 AC8AB3A23EF for <ecrit@ietf.org>; Mon, 30 Aug 2021 14:57:47 -0700 (PDT)
Received: by mail-io1-xd29.google.com with SMTP id b10so22145559ioq.9 for <ecrit@ietf.org>; Mon, 30 Aug 2021 14:57:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brianrosen-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0exZFY8oJ0eWupRJPIDHYmvESFO2r7ebMeX49GUZpH8=; b=RfBFAuywHMatRrh/WGWpryGJCxkWoUcBR8Oz6yCL8ryIub1OtNu854EeHIURVXxMbb eKsbD6agNcDGDIs7qtMqP1JpIOhzYLgDpOGtkwdd9ENPpBXUF41JfRZ4PPJ38EiV618r ybiYjeppjvyjjAeGA9cE2fMiTgv9V89HRvbgluK+Z32XVoqW6B/w1Sq0jR52P0Do9Nr3 AkEWI7J7/h9JzPfh4zAc+LP5BvGkCiWwjIwiV5GBQLdz7/KysRv11UXeRB4io/dzF34U B649dV3N8tecsyXAPyK+7v74y+v2gcMM3SFt/aS7H/F+4v1Mu98XAiQG5f4nXL0BigtO d5NQ==
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=0exZFY8oJ0eWupRJPIDHYmvESFO2r7ebMeX49GUZpH8=; b=a2mrZfdJ2jB11kFV8FUQdDco5IEdZsL+YixQj+rQIdsBpnBiAnzqBIEBJPZV4GmV4m JWdfAFx68CTBpCGXiUesXuFFBQj8COcLyEiWHubr49EZtne5Gc4jPnq4u0LYm/7Y7HYr Ru3oRti2CpiZq4FiNTnD738OpHAmCr/vWGzYVWn2Rov8AHY978SVhkuz8y+uUn/v8rV/ JDOyGAlfFzFgd77T6dWdwdeRpXCaoDDu01zm3tEopFRzpRm5XJ2NZeZVZGD31mR05FUK S5azCAJQFkaBHrUpPVDaOmIw8vK8AFefuLPlgdR5V0oOlYbDOPm36pSDAiXjMb2Rmzig v/Og==
X-Gm-Message-State: AOAM53126Z/cR9MO6gfXXO8l2wJ9c1uarYAeNNHyMkAkK7IoitITyGgX Y93N7w7P/8Urnaw/wdqaNyTjloAXtw2zkWrm3vCZHR5h9IZmSQ==
X-Google-Smtp-Source: ABdhPJzhpX9VdNZgvN2rkNc46z5t4xd4lffXjhPh4FWEnfbONIIrjzarJ8124Z6rzxTIsF4K/yLr+5C0IuOOeK67Uks=
X-Received: by 2002:a5d:8d1a:: with SMTP id p26mr5226858ioj.141.1630360665236; Mon, 30 Aug 2021 14:57:45 -0700 (PDT)
MIME-Version: 1.0
References: <A0FC259C-DF34-4496-9013-422006278DA6@randy.pensive.org> <FB2A33E8-E146-404B-B150-1496C40510EF@brianrosen.net> <0B800196-C284-45B6-B1A4-75A9CDB505BC@randy.pensive.org>
In-Reply-To: <0B800196-C284-45B6-B1A4-75A9CDB505BC@randy.pensive.org>
From: Brian Rosen <br@brianrosen.net>
Date: Mon, 30 Aug 2021 17:57:34 -0400
Message-ID: <CAOPrzE3=4WRSVQsxc4kH6nEckOJGr1ERDG+FbaqDOZfbnJPLqQ@mail.gmail.com>
To: Randall Gellens <rg+ietf@randy.pensive.org>
Cc: ECRIT <ecrit@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000004eb74505cacdec76"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ecrit/i2eZDxATO-67AnXuWeJsaCSC-iQ>
Subject: Re: [Ecrit] planned-changes: two questions
X-BeenThere: ecrit@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Emergency Context Resolution with Internet Technologies <ecrit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ecrit>, <mailto:ecrit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ecrit/>
List-Post: <mailto:ecrit@ietf.org>
List-Help: <mailto:ecrit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ecrit>, <mailto:ecrit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Aug 2021 21:57:55 -0000

Yes, I agree.

Brian

On Mon, Aug 30, 2021 at 5:51 PM Randall Gellens <rg+ietf@randy.pensive.org>
wrote:

> Works for me, but the draft should be updated to say this (once a server
> successfully sends a notification, it deletes the URI, and the ID
> returned is entirely up to the server and might or might not be
> different on a subsequent request for the same location).
>
> --Randall
>
> On 30 Aug 2021, at 8:22, Brian Rosen wrote:
>
> > Answer 1: yes.  Since there is going to be a revalidation, just
> > deleting the setting seems right to me.
> > Answer 2: Up to server.  If I were implementing, I would hash the real
> > ID with the URI and some kind of predictable nonce.
> >
> > We probably have to say more about how the server identifies the
> > client, so that replacement of the URI works.  Could we say we use the
> > domain of the URI (the entire domain with all the dots) to identify
> > the client, and anything can occur after it (meaning a slash and
> > whatever)?  If we do that, then how would delete the notification?
> > Force there to be something other than the domain (ugly).  Explicit
> > delete request?
> >
> > Hmmm, we’ve opened a DoS attack: a rogue client stores a bunch of
> > URIs for servers it wants to victimize.  In North America we have a
> > real simple solution for that, because we have a PKI, so we know, for
> > sure, who the client is, and could restrict who we allow to store
> > URIs, but that wouldn’t be true in general.  Also, it would be nice
> > for the client to have confidence the mechanism worked before it
> > needed it.
> >
> > So
> > Let’s add a “command” to plannedChange in the findService
> > request.  And, have the client have a response to the notification
> > which is the ID (json with the 200)
> >
> >
> > The client starts by sending a command of “initialize”.  The
> > domain is the identity of the client.  The response is an immediate
> > notification to the with whatever LI was in the request and an ID.
> > The  response by the client (which is the notification web server) is
> > a piece of json containing the ID.  We can say that the LI in this
> > initialize command could be something simple like the Country Code
> > that wouldn’t get a planned change.
> >
> > Thereafter, the LoST server (notification client) periodically repeats
> > this keepalive notification every day or week with the initialize LI.
> > The client has to respond with the ID.
> >
> > The regular notification request is a command of “notify”.  The
> > server ignores a request for notification from an uninitialized
> > client.
> > The notification can be deleted with a command of “delete”.  If
> > you delete the initialize LI, then the server won’t send any more
> > notifications to that client and deletes all URIs it was saving for
> > that client.  The client would have to re-initialize to reset.
> >
> > Brian
> >
> >> On Aug 27, 2021, at 5:41 PM, Randall Gellens
> >> <rg+ietf@randy.pensive.org> wrote:
> >>
> >> I think we're moving to a model where:
> >> - In a query, a client can request to be notified when the location
> >> should be revalidated;
> >> - In the response, the server provides an ID which the client
> >> associates with the location it just validated;
> >> - The server sends a notification to the URI, containing the ID;
> >> - The client revalidates each location with which that ID is
> >> associated.
> >>
> >> Question 1: Does the server delete/inactivate the URI once it has
> >> sent the notification?
> >>
> >> Question 2: Presumably, when the client revalidates the location(s),
> >> it will again request notification.  Does the server return the same
> >> ID as before, or a different ID?  A different ID could perhaps be
> >> useful in edge cases where the server didn't send or the client
> >> didn't get the notification, but any utility seems small.  If it's
> >> the same ID, then the answer to question 1 can be that the URI
> >> remains active until the client asks to no longer be notified (by
> >> sending an empty URI?).
> >>
> >> --Randall
> >>
> >> _______________________________________________
> >> Ecrit mailing list
> >> Ecrit@ietf.org
> >> https://www.ietf.org/mailman/listinfo/ecrit
>