Re: [dnssd] SRP deletes?

Tom Pusateri <pusateri@bangj.com> Mon, 26 August 2019 00:46 UTC

Return-Path: <pusateri@bangj.com>
X-Original-To: dnssd@ietfa.amsl.com
Delivered-To: dnssd@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 84F25120020 for <dnssd@ietfa.amsl.com>; Sun, 25 Aug 2019 17:46:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bangj.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 QZxaOUvF5MMa for <dnssd@ietfa.amsl.com>; Sun, 25 Aug 2019 17:46:16 -0700 (PDT)
Received: from oj.bangj.com (69-77-154-174.static.skybest.com [69.77.154.174]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 89E4812001E for <dnssd@ietf.org>; Sun, 25 Aug 2019 17:46:16 -0700 (PDT)
Received: from [172.16.10.104] (mta-107-13-246-59.nc.rr.com [107.13.246.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by oj.bangj.com (Postfix) with ESMTPSA id 1796533332; Sun, 25 Aug 2019 20:46:15 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bangj.com; s=201907; t=1566780375; bh=vbHIc/uTIdJsU3S9jOzSthsVO7BvRnCwFDcG0Maab60=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=ckWutN4DbNuqSvc5WeG3BFK+q0OVbFGb2LSOtAiq8KKzIkIw9+gEEIvUIjgVVW9cS +MYYep2toc/Mc26qw4O7sX70oTEUIZEtaqoy5ClZRdw52RP+LdxTvGmq1C6Uh8ItKU unclFOJwXKsviw1WZ3BPan5b3BRVGBHPNFDmv0hvc/COCQELskUY+v0K5SWhmKKb4R fWGukbxK21b8e6bzzJgG+BfaBmH2q5Sye5bFJkHRyChtBcooAxOXkb/f2D23sSc+xT 4He/no7Jiq+gcrT6F4TJTa8JJVhHLhUrCExbO+NznjoGi9FW/LLNXHdXJ6G1nFnoBH Uq0Sucapr4Z4Q==
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3578.1\))
From: Tom Pusateri <pusateri@bangj.com>
In-Reply-To: <5B1EC8BE-7492-4D3D-AF58-142378E63AAE@fugue.com>
Date: Sun, 25 Aug 2019 20:46:14 -0400
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, DNSSD <dnssd@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <03C30161-2520-4A6F-A52F-18034D2141A0@bangj.com>
References: <13320.1566690111@localhost> <5B1EC8BE-7492-4D3D-AF58-142378E63AAE@fugue.com>
To: Ted Lemon <mellon@fugue.com>
X-Mailer: Apple Mail (2.3578.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/VSa1zMgVROR2v0EN3m8XhyN6zIw>
Subject: Re: [dnssd] SRP deletes?
X-BeenThere: dnssd@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of extensions to DNS-based service discovery for routed networks." <dnssd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnssd>, <mailto:dnssd-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnssd/>
List-Post: <mailto:dnssd@ietf.org>
List-Help: <mailto:dnssd-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnssd>, <mailto:dnssd-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Aug 2019 00:46:19 -0000

Eventually, the records (whether directly or through an SRP Proxy) get into an authoritative DNS server. If you want special behavior in response to an RFC 2136 Update at the authoritative, then you’ll need to specify that. Otherwise, the KEY can be deleted along with any of the other records.

Tom

> On Aug 24, 2019, at 7:58 PM, Ted Lemon <mellon@fugue.com> wrote:
> 
> I think there’s no need for a delete key operation. The main point is that we don’t want services to show up in dialogs if they aren’t present. 
> 
> Sent from my iPhone
> 
>> On Aug 24, 2019, at 19:41, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
>> 
>> 
>> Ted Lemon <mellon@fugue.com> wrote:
>>> I’ve been hacking on an SRP mDNS proxy, and I realized that we didn’t
>>> actually specify a mechanism whereby a service can delete itself when
>>> it goes away.  This means that once an advertisement is present, it
>>> will be present until it expires.
>> 
>> If it's not a cool/useful name, then perhaps, who cares?
>> 
>>> This isn’t how regular mDNS works: with regular mDNS, if the service
>>> isn’t there anymore, it’s not advertised anymore, and indeed if there
>>> is a clean shutdown, mDNSResponder will send a “goodbye” packet to let
>>> any consumers of the service know that it’s not there anymore.   I
>>> don’t really know how often it will be the case that there will be a
>>> clean shutdown in an SRP client, but it seems to me that it’s probably
>>> correct to specify this.
>> 
>> It seems that deleting an entry comes with more security risk that creating
>> them.  But, we have DNSSEC signatures, so it shouldn't be much of a problem.
>> 
>>> What do people think about this?
>> 
>>> Also, at present one of the characteristics of FCFS naming is that KEY
>>> records are kept longer than other records, so that the name can be
>>> held even when the service is not available.   So I’m thinking that a
>>> service delete would generally leave the KEY record alone.
>> 
>> So, delete removes the name, but not the KEY RR, so the name can be reclaimed
>> much easier, and nobody else can take the name until it expires.
>> 
>> Are there two forms of delete then?  One of which deletes the KEY RR so that
>> it can be claimed by another.  Consider replacing the "printer".
>> 
>> If not that, then is there a mechanim where the new "printer" can put itself
>> in line to claim "printer" when the old holder expires. Until then, it is
>> printer-02 or some such?  The point is to facilitate the user who wants it
>> called "printer", but the old device is not quite gone yet.
>> 
>> --
>> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>> -= IPv6 IoT consulting =-
>> 
>> 
>> 
> 
> _______________________________________________
> dnssd mailing list
> dnssd@ietf.org
> https://www.ietf.org/mailman/listinfo/dnssd