[dnssd] SRP Update - removing individual services (draft-ietf-dnssd-srp-06)

Abtin Keshavarzian <abtink@google.com> Thu, 17 December 2020 22:55 UTC

Return-Path: <abtink@google.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 A41843A07F4 for <dnssd@ietfa.amsl.com>; Thu, 17 Dec 2020 14:55:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.7
X-Spam-Level:
X-Spam-Status: No, score=-15.7 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 6cfzlUEkTq2B for <dnssd@ietfa.amsl.com>; Thu, 17 Dec 2020 14:55:20 -0800 (PST)
Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 2A0873A07F0 for <dnssd@ietf.org>; Thu, 17 Dec 2020 14:55:19 -0800 (PST)
Received: by mail-qt1-x82e.google.com with SMTP id z9so81147qtn.4 for <dnssd@ietf.org>; Thu, 17 Dec 2020 14:55:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=ondiwTwuWH3l+nxhxz9Q8XWzGGYsk3o3qDDKu6VyaBg=; b=jeJnuBVY8Q/tI1OH9+FuuzMGlh2ip74U2TjUcVpVB7M7qudSUeY4AKpkPcdR1NwS6x OyXIz8oPyJxH2eiL0IGaFwocdSDY98Bj1NrMnU6yoTlhuNaTVnWh/+MNN0cthroO1bNk fa6fO9cgaDvOMNnxk0HOXookzzjmm93zHoSoCIw9wCW60xu+/1Nv1ro8vyTObr9h7fny vjAbGUzn4xYdCexvL4SOXMatH+41W30miwLuoXm19dhk9zZMDXWcHuU/6wbr7uFIrqEA HtiBoFOYWVSZLgV6chrgHPwJ3gLxQ92E/ncO6iRTpvmY0o6ulX5u4aVKhph/X1XWJ1nm 1RQQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ondiwTwuWH3l+nxhxz9Q8XWzGGYsk3o3qDDKu6VyaBg=; b=Vysty+6uUcoyLKtNQxiY8ophzQ5EdQ7moVnrrMx6UZYe95b2Rl5OkZq394m0Xwkmqn 9QSMuYaPRpEAVJ4IMuA/TW3e69KW1c/6H4DGvurVNWj5I3/Vq4GdRJcUdUhK92aLyfTM O5uTfiHguDMea2p6tcXGT7MxvELH3mRAbZis5dn5DVyneFXN9HIhGkJ3q7/ShOPyKxoU 5gDlyC4MaEctL1OiDlv9PQvaVpKuUwjyimrSFVwSCX/S8S5wor3PQ1U2FGVuJgAtWrd4 NrEgxYidq4E3i1eomy07NmedOrxl/pDoLRxfQHlfSr3mNLvGtrS4YTWl1KgoLbXhrhIR rQPg==
X-Gm-Message-State: AOAM532S8SaC539tq2H2ChkfBur4bhtVLra5X62j2FoFYSM1Bo6Y+UQt 3YvhCHLnpjaAmp9EzYPPRTyqvxfsyF5o7H3c/8ueZi2trKpttQ==
X-Google-Smtp-Source: ABdhPJxY7fs11gTyrKmb4Ktr2s1H72ycXtI9Ov56wlQqq3MbR1mC+bqkSK+tUySJgi1YL1YwsZ62/fr5VtHvctn0s3g=
X-Received: by 2002:ac8:454e:: with SMTP id z14mr1170320qtn.120.1608245718642; Thu, 17 Dec 2020 14:55:18 -0800 (PST)
MIME-Version: 1.0
From: Abtin Keshavarzian <abtink@google.com>
Date: Thu, 17 Dec 2020 14:55:07 -0800
Message-ID: <CACce4dTbWCVwBityepJpb5FF4Rv43+DUev_0Ka+rVT9exZrJzA@mail.gmail.com>
To: dnssd@ietf.org
Cc: Jonathan Hui <jonhui@google.com>, Kangping Dong <wgtdkp@google.com>, Rongli Sun <rongli@google.com>, Ted Lemon <mellon@fugue.com>
Content-Type: multipart/alternative; boundary="000000000000c5dc5b05b6b0e2bf"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/06cM030Ra9upBtbaBoxMtvAB2mQ>
Subject: [dnssd] SRP Update - removing individual services (draft-ietf-dnssd-srp-06)
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: Thu, 17 Dec 2020 23:45:36 -0000

Hi all,

Would like to summarize some questions/discussions we had on an email
exchange (with Ted, Kangping, Jonathan, and Rongli) related to SRP and the
process for removing individual service(s).

First a quick (personal) note, I have been reading the RSP spec recently. I
think it is a very well-written and easy-to-read/follow. So I want to give
thanks and kudos to guys who were involved (Ted, Stuart, others).

-------

There may be use-cases where we want to remove a previously
added/registered service. The question is how to realize this.

I think this can be done by sending two SRP Update message:
- First one removing all services/host-info (with lease time zero)
- Followed by another SR Update re-adding services (excluding the ones
removed) and host-info

However, it'd be good if this can be done more efficiently with a single
SRP update message.

- Currently SRP considers the message to be valid if it includes zero or
more Service Discovery and Descriptions, and exactly one Host Description.
- The idea is to extend spec to allow Update msg to include Service
Discovery/Description (without Host Description) with lease time zero to
use for removing services.
- The update message needs to include the key RR and be signed.
- The server would accept the removal of service only if the key matches
the previously registered key associated with the host and the service, and
if the signature is valid.

Thoughts?

Abtin.