
From nobody Mon Jan 31 13:03:03 2022
Return-Path: <ash.wilson@valimail.com>
X-Original-To: dance@ietfa.amsl.com
Delivered-To: dance@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B9B123A17DC for <dance@ietfa.amsl.com>; Mon, 31 Jan 2022 13:03:01 -0800 (PST)
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, HTML_MESSAGE=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=valimail.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 KjoggFQRQ89P for <dance@ietfa.amsl.com>; Mon, 31 Jan 2022 13:02:56 -0800 (PST)
Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 B8FC83A17E5 for <dance@ietf.org>; Mon, 31 Jan 2022 13:02:56 -0800 (PST)
Received: by mail-qk1-x736.google.com with SMTP id bs32so1913338qkb.1 for <dance@ietf.org>; Mon, 31 Jan 2022 13:02:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=valimail.com; s=google2048; h=mime-version:from:date:message-id:subject:to; bh=fzL70PktTc68bhaLWDw84vPRB7ienKn/+CGvhwX++L4=; b=DIAkRjaLVvNnr5s5JeGPs6qHRey0ck8qz4e5ZBBXviYzMAkvlb+LLW1U4sJzu8UyED ocgPA2KOvoJassZwyJ1v2ivp2htjhA0XHtIWDRyOskeUh3WutmK6oDIp7LTesCKUllmu vBFlmh3I6Mp304TfQN5oxaiEr5v2fho8gITbLu0QZsgU6YwcXCeCap2qInPHkld7CVYS 9iTs3hptVmumZTw8g4kLd6fnKblJAP1yv8P53Jby25tsXjSq1uu1XEqtmxJjPD1QmAdu Ryx6ni3WclWTSTZd2V2Q5JQBHzoo+GBLySy/8SuQyyDokLyLN8j0iesXE+LpVwxDNruR EG9g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fzL70PktTc68bhaLWDw84vPRB7ienKn/+CGvhwX++L4=; b=Q0xQw8B2WUoyY/ZeZVF32ADgtlxkOHJ6Io8tG/+n96b5sSynhqf/5IS4K/7GM0AUlQ Z1YWDqEAPwnNiDvvhXEeQJiXEfzckSjh4LKkR1CeV37N61VmCsGbMQsjl2KTg2JmR8r2 L637NVC+Ek5pm46070e4fyyDPceI5kBsMEW3jasea40TNXJzrkIqDM6WjdIQ6BKZxuPf 7cmdB2lOwwniu0UXC60on1AjsMPfymQaTjBKKSEGk0h7WewvdjKbdumJGwZTIhsSPNzM +uPW7f6AK08E045oRdAxgubiZfWTtoZgzuIpAmyoLe6kJGDe7rdGvMyyNhYTb1GbUNiq O7IQ==
X-Gm-Message-State: AOAM532w5JRldKNZxW0MIXWXqApA3vvjngrctQjxbtbHBZ4cu81e3yuL K1CUwQobxPObyK5yFKLFwbngT6Yh4iZJllDYPl1ihLPS93rEEA==
X-Google-Smtp-Source: ABdhPJwHPfbj+RunR3kuG4zwTqK0wv6xqcbXerokNCJLgAxbBxp/HYcQ5rWvAbLuEWUvRPQB5uesxZ2udQrbpdXGkqI=
X-Received: by 2002:a05:620a:4706:: with SMTP id bs6mr14324347qkb.105.1643662974357;  Mon, 31 Jan 2022 13:02:54 -0800 (PST)
MIME-Version: 1.0
From: Ash Wilson <ash.wilson@valimail.com>
Date: Mon, 31 Jan 2022 13:02:43 -0800
Message-ID: <CAEfM=vSirrqYbH_7nrFMrGynKNOJc0f4N6wNphkAc44u7PU=7A@mail.gmail.com>
To: dance@ietf.org
Content-Type: multipart/alternative; boundary="000000000000b7aadb05d6e71beb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dance/QMc5HbpoWY3icPcbeNl8evfPLi4>
Subject: [Dance] DANE client authentication for HTTPS
X-BeenThere: dance@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DANE Authentication for Network Clients Everywhere <dance.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dance>, <mailto:dance-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dance/>
List-Post: <mailto:dance@ietf.org>
List-Help: <mailto:dance-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dance>, <mailto:dance-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2022 21:03:02 -0000

--000000000000b7aadb05d6e71beb
Content-Type: text/plain; charset="UTF-8"

Hi DANCErs,

I'm sharing a proof-of-concept implementation of a web application which
uses DANE for client authentication:
https://github.com/ValiMail/traefik_flask_pki_dns

This approach separates DANE client authentication from the TLS handshake,
and represents a pattern which works better for large web applications. The
challenges with large web applications which this PoC seeks to overcome,
center mainly around managing the configuration for TLS client
authentication in a TLS-terminating load balancer, and preventing the TLS
server from being an abuse vector for triggering arbitrary DNS lookups for
not-authorized identities.

The PoC works like this:
  The client has a DANE identity represented in DNS.
  The TLS server is in the Traefik load balancer, and is configured to only
verify that the client possesses the private key corresponding to the
certificate's public key. The load balancer does not perform full PKIX
chain verification.
  The client uses its DANE-represented certificate to authenticate to the
Traefik load balancer. If TLS client authentication is successful, the
client sends an HTTP header containing the DANE DNS name where the TLSA
record can be found, and the load balancer injects a header containing the
verified entity certificate.
  The web application first ensures that the DANE ID is a valid client
identifier for the application, then uses DNS to get the TLSA record for
verifying the presented certificate.

This approach offers the following benefits:
  No DNS lookups performed for identifiers which are not associated with
valid clients.
  The application's client authentication settings (authn/authz) are
managed in the web application, not in the load balancer.
  No changes to the TLS handshake

This pattern may also work well for other protocols which require granular
and/or dynamic management of client identities. HTTP gives us headers to
convey the client identifier with, and other TLS-wrapped protocols offer
similar functionality.

It makes sense for the email ecosystem to bake DANE client authentication
into the TLS handshake, and the intent here is not to interrupt the work of
updating the TLS handshake to perform DANE authentication for clients.
However, DANE client adoption will be easier for RESTful APIs using a
pattern like this, which allows granular control over the DANE portion of
the authentication process to be delegated to the web application itself.


-Ash

-- 

*Ash Wilson * | Technical Director
*e:* ash.wilson@valimail.com

This email and all data transmitted with it contains confidential and/or
proprietary information intended solely for the use of individual(s)
authorized to receive it. If you are not an intended and authorized
recipient you are hereby notified of any use, disclosure, copying or
distribution of the information included in this transmission is prohibited
and may be unlawful. Please immediately notify the sender by replying to
this email and then delete it from your system.

--000000000000b7aadb05d6e71beb
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hi DANCErs,<div><br></div><div>I&#39;m sh=
aring a proof-of-concept implementation of a web application which uses DAN=
E for client authentication: <a href=3D"https://github.com/ValiMail/traefik=
_flask_pki_dns">https://github.com/ValiMail/traefik_flask_pki_dns</a></div>=
<div><br></div><div>This approach separates DANE client authentication from=
 the TLS handshake, and represents a pattern which=C2=A0works better for la=
rge web applications. The challenges with large web applications which this=
 PoC seeks to overcome, center mainly around managing the configuration for=
 TLS client authentication in a TLS-terminating load balancer, and preventi=
ng the TLS server from being an abuse vector for triggering arbitrary DNS l=
ookups for not-authorized identities.</div><div><br></div><div>The PoC work=
s like this:</div><div>=C2=A0 The client has a DANE identity represented in=
 DNS.</div><div>=C2=A0 The TLS server is in the Traefik load balancer, and =
is configured to only verify that the client possesses the private key corr=
esponding to the certificate&#39;s public key. The load balancer does not p=
erform full PKIX chain verification.</div><div>=C2=A0 The client uses its D=
ANE-represented certificate to authenticate to the Traefik load balancer. I=
f TLS client authentication is successful, the client sends an HTTP header =
containing the DANE DNS name where the TLSA record can be found, and the lo=
ad balancer injects a header containing the verified entity certificate.</d=
iv><div>=C2=A0 The web application first ensures that the DANE ID is a vali=
d client identifier for the application, then uses DNS to get the TLSA reco=
rd for verifying the presented certificate.</div><div><br></div><div>This a=
pproach offers the following benefits:</div><div>=C2=A0 No DNS lookups perf=
ormed for identifiers which are not associated with valid clients.</div><di=
v>=C2=A0 The application&#39;s client authentication settings (authn/authz)=
 are managed in the web application, not in the load balancer.=C2=A0</div><=
div>=C2=A0 No changes to the TLS handshake</div><div><br></div><div>This pa=
ttern may also work well for other protocols which require granular and/or =
dynamic management of client identities. HTTP gives us headers to convey th=
e client identifier with, and other TLS-wrapped protocols offer similar fun=
ctionality.</div><div><br></div><div>It makes sense for the email ecosystem=
 to bake DANE client authentication into the TLS handshake,=C2=A0and the in=
tent here is not to interrupt the work of updating the TLS handshake to per=
form DANE authentication for clients. However, DANE client adoption will be=
 easier for RESTful APIs using a pattern like this, which allows granular c=
ontrol over the DANE portion of the authentication process to be delegated =
to the web application itself.</div><div><div><br></div><div><br></div><div=
>-Ash</div><div><br></div>-- <br><div dir=3D"ltr"><span><p dir=3D"ltr" styl=
e=3D"line-height:1.656;margin-top:0pt;margin-bottom:0pt"></p><div style=3D"=
text-align:left"><span style=3D"vertical-align:baseline;white-space:pre-wra=
p;font-size:small;font-family:Arial"><b>Ash Wilson </b></span><b></b><span =
style=3D"font-family:Arial;font-size:small;white-space:pre-wrap"> | Technic=
al Director</span></div><span style=3D"vertical-align:baseline;white-space:=
pre-wrap;font-size:small;font-family:Arial"><div style=3D"text-align:left">=
<span style=3D"vertical-align:baseline"><b>e:</b></span><span style=3D"vert=
ical-align:baseline"> <a href=3D"mailto:ash.wilson@valimail.com" target=3D"=
_blank">ash.wilson@valimail.com</a> </span><span></span></div><div style=3D=
"text-align:left"><img style=3D"width: 175px; height: 43px;" src=3D"https:/=
/hosted-packages.s3-us-west-1.amazonaws.com/Valimail+Logo.png"></div></span=
><p dir=3D"ltr" style=3D"background-color:rgb(255,255,255);line-height:1.38=
;margin-top:0pt;margin-bottom:0pt"><font face=3D"Arial" color=3D"#666666"><=
span style=3D"font-size:10.6667px;white-space:pre-wrap">This email and all =
data transmitted with it contains confidential and/or proprietary informati=
on intended solely for the use of individual(s) authorized to receive it. I=
f you are not an intended and authorized recipient you are hereby notified =
of any use, disclosure, copying or distribution of the information included=
 in this transmission is prohibited and may be unlawful. Please immediately=
 notify the sender by replying to this email and then delete it from your s=
ystem.</span></font></p></span></div></div></div></div>

--000000000000b7aadb05d6e71beb--

