Re: [dane] An AD bit discussion

Mark Andrews <marka@isc.org> Wed, 26 February 2014 22:51 UTC

Return-Path: <marka@isc.org>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5E1781A0762 for <dane@ietfa.amsl.com>; Wed, 26 Feb 2014 14:51:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.548
X-Spam-Level:
X-Spam-Status: No, score=-2.548 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.547, SPF_PASS=-0.001] autolearn=ham
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 CikK01DR88_b for <dane@ietfa.amsl.com>; Wed, 26 Feb 2014 14:51:17 -0800 (PST)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) by ietfa.amsl.com (Postfix) with ESMTP id 0B3AB1A0723 for <dane@ietf.org>; Wed, 26 Feb 2014 14:51:17 -0800 (PST)
Received: from mx.pao1.isc.org (localhost [127.0.0.1]) by mx.pao1.isc.org (Postfix) with ESMTP id 2D713C94D0 for <dane@ietf.org>; Wed, 26 Feb 2014 22:51:03 +0000 (UTC) (envelope-from marka@isc.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isc.org; s=dkim2012; t=1393455075; bh=Wy9E/CCNuI6lZsHHoEOQLNucPShY/cSeS7P1575OBcQ=; h=To:From:References:Subject:In-reply-to:Date; b=iK9jLy5BtIn9zKVZbJyelmDGWCciS0Pq8VT3YytuIFrlzztUMUU0Nvxlf95EstA8O H6UyyL+DSnjd3qNvOcK6HDTIOB8ZRAVah/Zf6gxRAF1kDeohr5gvbGLnvioVGMTR+L BcWK3RR9tWuVKnfB+UO1a4N8wbadNFIjvkaTv9jk=
Received: from zmx1.isc.org (zmx1.isc.org [149.20.0.20]) by mx.pao1.isc.org (Postfix) with ESMTP for <dane@ietf.org>; Wed, 26 Feb 2014 22:51:03 +0000 (UTC) (envelope-from marka@isc.org)
Received: from zmx1.isc.org (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTP id C1B1F16005C for <dane@ietf.org>; Wed, 26 Feb 2014 22:51:55 +0000 (UTC)
Received: from rock.dv.isc.org (c211-30-183-50.carlnfd1.nsw.optusnet.com.au [211.30.183.50]) by zmx1.isc.org (Postfix) with ESMTPSA id 9473416004A for <dane@ietf.org>; Wed, 26 Feb 2014 22:51:55 +0000 (UTC)
Received: from rock.dv.isc.org (localhost [IPv6:::1]) by rock.dv.isc.org (Postfix) with ESMTP id 9A0FC106CFB5 for <dane@ietf.org>; Thu, 27 Feb 2014 09:50:59 +1100 (EST)
To: dane@ietf.org
From: Mark Andrews <marka@isc.org>
References: <alpine.LFD.2.10.1402260845520.3528@bofh.nohats.ca> <20140226194208.GA19694@solar.andreasschulze.de> <20140226212540.26889106C669@rock.dv.isc.org> <20140226214220.GH21390@mournblade.imrryr.org>
In-reply-to: Your message of "Wed, 26 Feb 2014 21:42:20 -0000." <20140226214220.GH21390@mournblade.imrryr.org>
Date: Thu, 27 Feb 2014 09:50:59 +1100
Message-Id: <20140226225059.9A0FC106CFB5@rock.dv.isc.org>
X-DCC--Metrics: post.isc.org; whitelist
Archived-At: http://mailarchive.ietf.org/arch/msg/dane/JyiaCau4WbjHWF9TA-8tJ7HTIfc
Subject: Re: [dane] An AD bit discussion
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Feb 2014 22:51:20 -0000

In message <20140226214220.GH21390@mournblade.imrryr.org>, Viktor Dukhovni writ
es:
> On Thu, Feb 27, 2014 at 08:25:40AM +1100, Mark Andrews wrote:
> 
> > The history of the AD bit in responses and it meaning.
> > 
> > RFC 1035 -> AD=0
> > RFC 2535 -> AD=0/1 (records gone through validation) 
> > RCC 3225 (DO introduced)
> > RFC 3655 -> AD=0/1 (DO=1 required, answer and authority sections all secure
> )
> > RFC 3755 (type code roll)
> > RFC 4035 -> AD=0/1 (DO=1 required, answer and authority sections all secure
> )
> > RFC 6840 -> AD=0/1 (DO=1 or AD=1 required, answer and authority sections al
> l
> > 		    secure)
> 
> Thanks, this is very useful.  It remains only to determine whether
> for platforms on which the proposed designs are being contemplated,
> one can reasonably expect the target (reachable securely, typically
> local) resolvers to support AD=1 in the query.
> 
> This information seems to me to be more likely available to the
> administrator configuring *static* resolv.conf settings, than to
> an application author or user.
> 
> Therefore, my gut reaction is that applications that want the AD
> bit need to be able to ask for it, and the stub resolver library
> determines how to get the job done with help from resolv.conf.
> 
> The stub resolver library may be able to get away with sending AD=1
> instead of DO=1 and getting a more compact reply.  And may suppress
> RRSIG elements in the answer, authority and additional sections when
> the DO=1 was used because AD=1 was not known to be supported.
> 
> This still leaves us with the question of how libresolv clients
> should signal their interest in the AD bit?  At the very least the
> application needs to know that DNSSEC support is not simply
> unavailable.
> 
> With RES_USE_DNSSEC #defined, the application knows that the run-time
> promises to send DO=1.  There needs to be a similar option bit one
> can test for at compile-time, and use to signal that the stub-resolver
> library should return AD bits without RRSIGs (or with RRSIGs not
> specifically required if it is easier to pass them along if returned).

Setting AD isn't that hard.  For DANE you aren't going to want to use
res_search() to retrieve the TLSA record so this just unwraps res_query().

	res_mkquery(...,query,...);
	query[3] |= 0x08; // set ad in request
	res_send(query,...);
 
Mark

> -- 
> 	Viktor.
> 
> _______________________________________________
> dane mailing list
> dane@ietf.org
> https://www.ietf.org/mailman/listinfo/dane
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org