<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<?rfc linkmailto="no" ?>
<?rfc editing="no" ?>
<?rfc comments="yes" ?>
<?rfc inline="yes"?>
<?rfc rfcedstyle="yes"?>
<?rfc-ext allow-markup-in-artwork="yes" ?>
<?rfc-ext include-index="no" ?>
<!--<?rfc strict="no"?> -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" consensus="true" docName="draft-ietf-netconf-http-client-server-12" ipr="trust200902" obsoletes="" updates="" submissionType="IETF" xml:lang="en" tocInclude="true" symRefs="true" sortRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 2.45.3 -->
  <front>
    <title abbrev="Groupings for HTTP Clients and Servers">YANG Groupings for
      HTTP Clients and HTTP Servers</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-netconf-http-client-server-12"/>
    <author fullname="Kent Watsen" initials="K." surname="Watsen">
      <organization>Watsen Networks</organization>
      <address>
        <email>kent+ietf@watsen.net</email>
      </address>
    </author>
    <date/>
    <area>Operations</area>
    <workgroup>NETCONF Working Group</workgroup>
    <abstract>
      <t>This document defines two YANG modules: the first defines a minimal
        grouping for configuring an HTTP client, and the second defines
        a minimal grouping for configuring an HTTP server.  It is
        intended that these groupings will be used to help define the
        configuration for simple HTTP-based protocols (not for complete
        web servers or browsers).</t>
    </abstract>
    <note>
      <name>Editorial Note (To be removed by RFC Editor)</name>
      <t>This draft contains placeholder values that need to be replaced
        with finalized values at the time of publication. This note summarizes
        all of the substitutions that are needed. No other RFC Editor
        instructions are specified elsewhere in this document.</t>
      <t>Artwork in this document contains shorthand references to drafts in
        progress.  Please apply the following replacements (note: not all may be present):
      </t>
      <ul spacing="normal">
        <li>
          <tt>AAAA</tt> --&gt; the assigned RFC value for draft-ietf-netconf-crypto-types</li>
        <li>
          <tt>DDDD</tt> --&gt; the assigned RFC value for draft-ietf-netconf-tcp-client-server</li>
        <li>
          <tt>FFFF</tt> --&gt; the assigned RFC value for draft-ietf-netconf-tls-client-server</li>
        <li>
          <tt>GGGG</tt> --&gt; the assigned RFC value for this draft</li>
      </ul>
      <t>Artwork in this document contains placeholder values for the date of
        publication of this draft. Please apply the following replacement:
      </t>
      <ul spacing="normal">
        <li>
          <tt>2022-12-12</tt> --&gt; the publication date of this draft</li>
      </ul>
      <t>The "Relation to other RFCs" section <xref target="collective-effort" format="default"/> contains
        the text "one or more YANG modules" and, later, "modules".  This text is sourced
        from a file in a context where it is unknown how many modules a draft defines.
        The text is not wrong as is, but it may be improved by stating more directly how
        many modules are defined.</t>
      <t>The "Relation to other RFCs" section <xref target="collective-effort" format="default"/> contains
        a self-reference to this draft, along with a corresponding Informative Reference in
        the Appendix.</t>
      <t>The following Appendix section is to be removed prior to publication:
      </t>
      <ul spacing="normal">
        <li>
          <xref target="change-log" format="default"/>.  Change Log</li>
      </ul>
    </note>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <name>Introduction</name>
      <t>This document defines two YANG 1.1 <xref target="RFC7950" format="default"/> modules: the first defines a minimal
        grouping for configuring an HTTP client, and the second defines
        a minimal grouping for configuring an HTTP server.  It is
        intended that these groupings will be used to help define the
        configuration for simple HTTP-based protocols (not for complete
        web servers or browsers).</t>
      <section anchor="collective-effort" numbered="true" toc="default">
        <name>Relation to other RFCs</name>
        <t>This document presents one or more YANG modules <xref target="RFC7950" format="default"/>
            that are part of a collection of RFCs that work together
            to, ultimately, enable the configuration of both the clients
            and servers of both the NETCONF <xref target="RFC6241" format="default"/> and
            RESTCONF <xref target="RFC8040" format="default"/> protocols.</t>
        <t>The normative dependency relationship between the various RFCs
            in this collection is presented in the below diagram. The labels
            in the diagram represent the primary purpose provided by each
            RFC.  Hyperlinks to each RFC are provided below the diagram.</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
                               crypto-types
                                 ^      ^
                                /        \
                               /          \
                      truststore         keystore
                       ^     ^             ^  ^
                       |     +---------+   |  |
                       |               |   |  |
                       |      +------------+  |
tcp-client-server      |     /         |      |
   ^    ^        ssh-client-server     |      |
   |    |           ^            tls-client-server
   |    |           |              ^     ^        http-client-server
   |    |           |              |     |                 ^
   |    |           |        +-----+     +---------+       |
   |    |           |        |                     |       |
   |    +-----------|--------|--------------+      |       |
   |                |        |              |      |       |
   +-----------+    |        |              |      |       |
               |    |        |              |      |       |
               |    |        |              |      |       |
            netconf-client-server       restconf-client-server

]]></artwork>
        <!-- RFC Editor: is there anyway to flush-left the table in PDF/HTML views? -->
          <table>
          <name>Label to RFC Mapping</name>
          <tbody>
            <tr>
              <th>Label in Diagram</th>
              <th>Originating RFC</th>
            </tr>
            <tr>
              <td>crypto-types</td>
              <td>
                <xref target="I-D.ietf-netconf-crypto-types" format="default"/></td>
            </tr>
            <tr>
              <td>truststore</td>
              <td>
                <xref target="I-D.ietf-netconf-trust-anchors" format="default"/></td>
            </tr>
            <tr>
              <td>keystore</td>
              <td>
                <xref target="I-D.ietf-netconf-keystore" format="default"/></td>
            </tr>
            <tr>
              <td>tcp-client-server</td>
              <td>
                <xref target="I-D.ietf-netconf-tcp-client-server" format="default"/></td>
            </tr>
            <tr>
              <td>ssh-client-server</td>
              <td>
                <xref target="I-D.ietf-netconf-ssh-client-server" format="default"/></td>
            </tr>
            <tr>
              <td>tls-client-server</td>
              <td>
                <xref target="I-D.ietf-netconf-tls-client-server" format="default"/></td>
            </tr>
            <tr>
              <td>http-client-server</td>
              <td>
                <xref target="I-D.ietf-netconf-http-client-server" format="default"/></td>
            </tr>
            <tr>
              <td>netconf-client-server</td>
              <td>
                <xref target="I-D.ietf-netconf-netconf-client-server" format="default"/></td>
            </tr>
            <tr>
              <td>restconf-client-server</td>
              <td>
                <xref target="I-D.ietf-netconf-restconf-client-server" format="default"/></td>
            </tr>
          </tbody>
        </table>
      </section>
      <section numbered="true" toc="default">
        <name>Specification Language</name>
        <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
            NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",
            "MAY", and "OPTIONAL" in this document are to be interpreted as
            described in BCP 14 <xref target="RFC2119" format="default"/> <xref target="RFC8174" format="default"/>
            when, and only when, they appear in all capitals, as shown here.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Adherence to the NMDA</name>
        <t>This document is compliant with the Network Management Datastore 
          Architecture (NMDA) <xref target="RFC8342" format="default"/>.  For instance, as 
          described in <xref target="I-D.ietf-netconf-trust-anchors" format="default"/> and
          <xref target="I-D.ietf-netconf-keystore" format="default"/>, trust anchors and keys
          installed during manufacturing are expected to appear
          in &lt;operational&gt;.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Conventions</name>
        <t>Various examples used in this document use a placeholder
            value for binary data that has been base64 encoded (e.g.,
            "BASE64VALUE=").  This placeholder value is used as real
            base64 encoded structures are often many lines long and
            hence distracting to the example being presented.</t>
      </section>
    </section>
    <section anchor="http-client-model" numbered="true" toc="default">
      <name>The "ietf-http-client" Module</name>
      <t>This section defines a YANG 1.1 module called
        "ietf-http-client".  A high-level overview of the module is provided in
        <xref target="client-overview" format="default"/>. Examples illustrating the module's use
        are provided in <xref target="client-examples" format="default">Examples</xref>. The YANG
        module itself is defined in <xref target="client-yang-module" format="default"/>.</t>
      <section anchor="client-overview" numbered="true" toc="default">
        <name>Data Model Overview</name>
        <t>This section provides an overview of the "ietf-http-client" module
          in terms of its features and groupings.</t>
        <section anchor="client-features" toc="exclude" numbered="true">
          <name>Features</name>
          <t>The following diagram lists all the "feature" statements
            defined in the "ietf-http-client" module:</t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
Features:
  +-- proxy-connect
  +-- basic-auth
  +-- tcp-supported
  +-- tls-supported
]]></artwork>
          <!--<aside>-->
            <t>The diagram above uses syntax that is similar to but not
              defined in <xref target="RFC8340" format="default"/>.</t>
          <!--</aside>-->
        </section>
        <section toc="exclude" numbered="true">
          <name>Groupings</name>
          <t>The "ietf-http-client" module defines the following "grouping" statements:</t>
          <ul spacing="compact">
            <li>http-client-identity-grouping</li>
            <li>http-client-grouping</li>
            <li>http-client-stack-grouping</li>
          </ul>
          <t>Each of these groupings are presented in the following subsections.</t>
          <section anchor="http-client-identity-grouping" numbered="true" toc="default">
            <name>The "http-client-identity-grouping" Grouping</name>
            <t>The following tree diagram <xref target="RFC8340" format="default"/> illustrates the
              "http-client-identity-grouping" grouping:</t>
            <artwork name="" type="" align="left" alt=""><![CDATA[
  grouping http-client-identity-grouping:
    +-- client-identity!
       +-- (auth-type)
          +--:(basic)
             +-- basic {basic-auth}?
                +-- user-id                 string
                +---u ct:password-grouping
]]></artwork>
            <t>Comments:</t>
            <ul>
              <li>This grouping exists because it is used three times by the
                "http-client-grouping" discussed in <xref target="http-client-grouping" format="default"/>.</li>
              <li>The "client-identity" node is a "presence" container so the
                mandatory descendant nodes do not imply that this node must
                be configured, as a client identity may be configured at
                protocol layers.</li>
              <li>The "basic" authentication scheme is the only scheme defined
                by this module, albeit it must be enabled via the "basic-auth"
                feature (see <xref target="client-features" format="default"/>).</li>
              <li>Other authentication schemes MAY be augmented in as needed
                by the application.</li>
            </ul>
          </section>
          <section anchor="http-client-grouping" numbered="true" toc="default">
            <name>The "http-client-grouping" Grouping</name>
            <t>The following tree diagram <xref target="RFC8340" format="default"/> illustrates the
              "http-client-grouping" grouping:</t>
            <artwork name="" type="" align="left" alt=""><![CDATA[
  grouping http-client-grouping:
    +---u http-client-identity-grouping
    +-- proxy-connect! {proxy-connect}?
       +-- (proxy-type)
          +--:(http)
          |  +-- http-proxy
          |     +-- tcp-client-parameters
          |     |  +---u tcpc:tcp-client-grouping
          |     +-- http-client-parameters
          |        +---u http-client-identity-grouping
          +--:(https)
             +-- https-proxy
                +-- tcp-client-parameters
                |  +---u tcpc:tcp-client-grouping
                +-- tls-client-parameters
                |  +---u tlsc:tls-client-grouping
                +-- http-client-parameters
                   +---u http-client-identity-grouping
]]></artwork>
            <t>Comments:</t>
            <ul>
              <li>The "http-client-grouping" defines the configuration for just
                "HTTP" part of a protocol stack.  It does not, for instance,
                define any configuration for the "TCP" or "TLS" protocol layers
                (for that, see <xref target="http-client-stack-grouping" format="default"/>).</li>
              <li>Beyond configuring the client's identity, via the "http-client-identity-grouping"
                grouping discussed in <xref target="http-client-identity-grouping" format="default"/>, this
                grouping defines support for HTTP-proxies, albeit it must be enabled
                via a "feature" statement.</li>
              <li>The "proxy-connect" node is a "presence" container so the 
                mandatory descendant nodes do not imply that this node must
                be configured, assuming the server supports the "proxy-connect"
                feature.</li>
              <li>
                <t>For the referenced grouping statement(s):
                </t>
                <ul spacing="compact">
                  <li>The "http-client-identity-grouping" grouping is discussed in
                    <xref target="http-client-identity-grouping" format="default"/>.</li>
                  <li>The "tcp-client-grouping" grouping is discussed in
                    <relref section="3.1.2.1" target="I-D.ietf-netconf-tcp-client-server"/>.</li>
                  <li>The "tls-client-grouping" grouping is discussed in
                    <relref section="3.1.2.1" target="I-D.ietf-netconf-tls-client-server"/>.</li>
                </ul>
              </li>
            </ul>
          </section>
          <section anchor="http-client-stack-grouping" numbered="true" toc="default">
            <name>The "http-client-stack-grouping" Grouping</name>
            <t>The following tree diagram <xref target="RFC8340" format="default"/> illustrates the
              "http-client-stack-grouping" grouping:</t>
            <artwork name="" type="" align="left" alt=""><![CDATA[
  grouping http-client-stack-grouping:
    +-- (transport)
       +--:(tcp) {tcp-supported}?
       |  +-- tcp
       |     +-- tcp-client-parameters
       |     |  +---u tcpc:tcp-client-grouping
       |     +-- http-client-parameters
       |        +---u http-client-grouping
       +--:(tls) {tls-supported}?
          +-- tls
             +-- tcp-client-parameters
             |  +---u tcpc:tcp-client-grouping
             +-- tls-client-parameters
             |  +---u tlsc:tls-client-grouping
             +-- http-client-parameters
                +---u http-client-grouping
]]></artwork>
            <t>Comments:</t>
            <ul>
              <li>The "http-client-stack-grouping" is a convenience grouping for downstream
                modules.  It defines both the "HTTP" and "HTTPS" protocol stacks, with each
                option enabled by a "feature" statement for application control.</li>
              <li>
                <t>For the referenced grouping statement(s):
                </t>
                <ul spacing="compact">
                  <li>The "tcp-client-grouping" grouping is discussed in
                    <relref section="3.1.2.1" target="I-D.ietf-netconf-tcp-client-server"/>.</li>
                  <li>The "tls-client-grouping" grouping is discussed in
                    <relref section="3.1.2.1" target="I-D.ietf-netconf-tls-client-server"/>.</li>
                  <li>The "http-client-grouping" grouping is discussed in
                    <xref target="http-client-grouping" format="default"/> in this document.</li>
                </ul>
              </li>
            </ul>
          </section>
        </section>
        <section toc="exclude" numbered="true">
          <name>Protocol-accessible Nodes</name>
          <t>The "ietf-http-client" module defines only "grouping" statements that are
            used by other modules to instantiate protocol-accessible nodes.</t>
        </section>
      </section>
      <section anchor="client-examples" numbered="true" toc="default">
        <name>Example Usage</name>
        <t>This section presents two examples showing the http-client-grouping
          populated with some data.</t>
        <t>The following example illustrates an HTTP client connecting directly
          to an HTTP server.</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
<!-- The outermost element below doesn't exist in the data model. -->
<!--  It simulates if the "grouping" were a "container" instead.  -->

<http-client xmlns="urn:ietf:params:xml:ns:yang:ietf-http-client">
  <client-identity>
    <basic>
      <user-id>bob</user-id>
      <cleartext-password>secret</cleartext-password>
    </basic>
  </client-identity>
</http-client>
]]></artwork>
        <t>The following example illustrates the same client connecting through an
          HTTP proxy.  This example is consistent with examples presented in 
          <relref section="2.2" target="I-D.ietf-netconf-trust-anchors"/> and
          <relref section="2.2" target="I-D.ietf-netconf-keystore"/>.</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
=============== NOTE: '\' line wrapping per RFC 8792 ================

<!-- The outermost element below doesn't exist in the data model. -->
<!--  It simulates if the "grouping" were a "container" instead.  -->

<http-client xmlns="urn:ietf:params:xml:ns:yang:ietf-http-client">
  <client-identity>
    <basic>
      <user-id>bob</user-id>
      <cleartext-password>secret</cleartext-password>
    </basic>
  </client-identity>
  <proxy-connect>
    <https-proxy>
      <tcp-client-parameters>
        <remote-address>corp-fw2.example.com</remote-address>
        <keepalives>
          <idle-time>15</idle-time>
          <max-probes>3</max-probes>
          <probe-interval>30</probe-interval>
        </keepalives>
      </tcp-client-parameters>
      <tls-client-parameters>
        <client-identity>
          <certificate>
            <keystore-reference>
              <asymmetric-key>rsa-asymmetric-key</asymmetric-key>
              <certificate>ex-rsa-cert</certificate>
            </keystore-reference>
          </certificate>
        </client-identity>
        <server-authentication>
          <ca-certs>
            <truststore-reference>trusted-server-ca-certs</truststor\
e-reference>
          </ca-certs>
          <ee-certs>
            <truststore-reference>trusted-server-ee-certs</truststor\
e-reference>
          </ee-certs>
        </server-authentication>
      </tls-client-parameters>
      <http-client-parameters>
        <client-identity>
          <basic>
            <user-id>local-app-1</user-id>
            <cleartext-password>secret</cleartext-password>
          </basic>
        </client-identity>
      </http-client-parameters>
    </https-proxy>
  </proxy-connect>
</http-client>
]]></artwork>
      </section>
      <section anchor="client-yang-module" numbered="true" toc="default">
        <name>YANG Module</name>
        <t>This YANG module has normative references to <xref target="RFC6991" format="default"/>.</t>
        <t keepWithNext="true">&lt;CODE BEGINS&gt; file "ietf-http-client@2022-12-12.yang"</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
module ietf-http-client {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-http-client";
  prefix httpc;

  import ietf-netconf-acm {
    prefix nacm;
    reference
      "RFC 8341: Network Configuration Access Control Model";
  }

  import ietf-crypto-types {
    prefix ct;
    reference
      "RFC AAAA: YANG Data Types and Groupings for Cryptography";
  }

  import ietf-tcp-client {
    prefix tcpc;
    reference
      "RFC DDDD: YANG Groupings for TCP Clients and TCP Servers";
  }

  import ietf-tls-client {
    prefix tlsc;
    reference
      "RFC FFFF: YANG Groupings for TLS Clients and TLS Servers";
  }

  organization
    "IETF NETCONF (Network Configuration) Working Group";

  contact
    "WG Web:   https://datatracker.ietf.org/wg/netconf
     WG List:  NETCONF WG list <mailto:netconf@ietf.org>
     Author:   Kent Watsen <mailto:kent+ietf@watsen.net>";

  description
    "This module defines reusable groupings for HTTP clients that
     can be used as a basis for specific HTTP client instances.

     Copyright (c) 2022 IETF Trust and the persons identified
     as authors of the code. All rights reserved.

     Redistribution and use in source and binary forms, with
     or without modification, is permitted pursuant to, and
     subject to the license terms contained in, the Revised
     BSD License set forth in Section 4.c of the IETF Trust's
     Legal Provisions Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC GGGG
     (https://www.rfc-editor.org/info/rfcGGGG); see the RFC
     itself for full legal notices.

     The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL',
     'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED',
     'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document
     are to be interpreted as described in BCP 14 (RFC 2119)
     (RFC 8174) when, and only when, they appear in all
     capitals, as shown here.";

  revision 2022-12-12 {
    description
      "Initial version";
    reference
      "RFC GGGG: YANG Groupings for HTTP Clients and HTTP Servers";
  }

  // Features

  feature proxy-connect {
    description
      "Proxy connection configuration is configurable for
       HTTP clients on the server implementing this feature.";
  }

  feature basic-auth {
    description
      "The 'basic-auth' feature indicates that the client
       may be configured to use the 'basic' HTTP authentication
       scheme.";
    reference
      "RFC 7617: The 'Basic' HTTP Authentication Scheme";
  }

  feature tcp-supported {
    description
      "Indicates that the server supports HTTP/TCP.";
  }

  feature tls-supported {
    description
      "Indicates that the server supports HTTP/TLS.";
  }

  // Groupings

  grouping http-client-identity-grouping {
    description
      "A grouping to provide HTTP credentials used by the
       client to authenticate itself to the HTTP server.";
    container client-identity {
      nacm:default-deny-write;
      presence
        "Indicates that a client identity has been configured.
         This statement is present so the mandatory descendant
         nodes do not imply that this node must be configured.";
      description
        "The identity the HTTP client should use when
         authenticating itself to the HTTP server.";
      choice auth-type {
        mandatory true;
        description
          "A choice amongst available authentication types.";
        case basic {
          container basic {
            if-feature "basic-auth";
            leaf user-id {
              type string;
              mandatory true;
              description
                "The user-id for the authenticating client.";
            }
            uses ct:password-grouping {
              description
                "The password for the authenticating client.";
            }
            description
              "The 'basic' HTTP scheme credentials.";
            reference
              "RFC 7617: The 'Basic' HTTP Authentication Scheme";
          }
        }
      }
    }
  } // grouping http-client-identity-grouping

  grouping http-client-grouping {
    description
      "A reusable grouping for configuring a HTTP client.

       This grouping is expected to be used in conjunction with
       other configurations providing, e.g., the hostname or IP
       address and port number the client initiates connections
       to.

       Note that this grouping uses fairly typical descendant
       node names such that a stack of 'uses' statements will
       have name conflicts.  It is intended that the consuming
       data model will resolve the issue (e.g., by wrapping
       the 'uses' statement in a container called
       'http-client-parameters').  This model purposely does
       not do this itself so as to provide maximum flexibility
       to consuming models.";

    uses http-client-identity-grouping;

    container proxy-connect {
      nacm:default-deny-write;
      if-feature "proxy-connect";
      presence
        "Indicates that a proxy server connections have been
         configured.  This statement is present so the mandatory
         descendant nodes do not imply that this node must be
         configured.";
      description
        "Configures the proxy server the HTTP-client is to
         connect thru.";
      choice proxy-type {
        mandatory true;
        description
          "Choice amongst proxy server types.";
        case http {
          container http-proxy {
            description
              "Container for HTTP Proxy (Web Proxy) server
               configuration parameters.";
            container tcp-client-parameters {
              description
                "A wrapper around the TCP parameters to avoid
                 name collisions.";
              uses tcpc:tcp-client-grouping;
            }
            container http-client-parameters {
              description
                "A wrapper around the HTTP parameters to avoid
                 name collisions.";
              uses http-client-identity-grouping;
            }
          }
        }
        case https {
          container https-proxy {
            description
              "Container for HTTPS Proxy (Secure Web Proxy) server
               configuration parameters.";
            container tcp-client-parameters {
              description
                "A wrapper around the TCP parameters to avoid
                 name collisions.";
              uses tcpc:tcp-client-grouping;
            }
            container tls-client-parameters {
              description
                "A wrapper around the TLS parameters to avoid
                 name collisions.";
              uses tlsc:tls-client-grouping;
            }
            container http-client-parameters {
              description
                "A wrapper around the HTTP parameters to avoid
                 name collisions.";
              uses http-client-identity-grouping;
            }
          }
        }
      }
    }
  } // grouping http-client-grouping

  grouping http-client-stack-grouping {
    description
      "A grouping that defines common HTTP-based protocol stacks.";
    choice transport {
      mandatory true;
      description
        "Choice amongst various transports type.  TCP, with and
         without TLS are defined here, with 'feature' statements
         so that they may be disabled.  Other transports MAY be
         augmented in as 'case' statements by future efforts.";
      case tcp {
        if-feature "tcp-supported";
        container tcp {
          description
            "Container for TCP-based HTTP protocols.";
          container tcp-client-parameters {
            description
              "A wrapper around the TCP parameters to avoid
               name collisions.";
            uses tcpc:tcp-client-grouping;
          }
          container http-client-parameters {
            description
              "A wrapper around the HTTP parameters to avoid
               name collisions.";
            uses http-client-grouping;
          }
        }
      }
      case tls {
        if-feature "tls-supported";
        container tls {
          description
            "Container for TLS-based HTTP protocols.";
          container tcp-client-parameters {
            description
              "A wrapper around the TCP parameters to avoid
               name collisions.";
            uses tcpc:tcp-client-grouping;
          }
          container tls-client-parameters {
            description
              "A wrapper around the TLS parameters to avoid
               name collisions.";
            uses tlsc:tls-client-grouping;
          }
          container http-client-parameters {
            description
              "A wrapper around the HTTP parameters to avoid
               name collisions.";
            uses http-client-grouping;
          }
        }
      }
    }
  } // http-client-stack-grouping

}
]]></artwork>
        <t keepWithPrevious="true">&lt;CODE ENDS&gt;</t>
      </section>
    </section>
    <section anchor="http-server-model" numbered="true" toc="default">
      <name>The "ietf-http-server" Module</name>
      <t>This section defines a YANG 1.1 module called
        "ietf-http-server".  A high-level overview of the module is provided in
        <xref target="server-overview" format="default"/>. Examples illustrating the module's use
        are provided in <xref target="server-examples" format="default">Examples</xref>. The YANG
        module itself is defined in <xref target="server-yang-module" format="default"/>.</t>
      <section anchor="server-overview" numbered="true" toc="default">
        <name>Data Model Overview</name>
        <t>This section provides an overview of the "ietf-http-server" module
          in terms of its features and groupings.</t>
        <section anchor="server-features" toc="exclude" numbered="true">
          <name>Features</name>
          <t>The following diagram lists all the "feature" statements
            defined in the "ietf-http-server" module:</t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
Features:
  +-- client-auth-supported
  +-- local-users-supported
  +-- basic-auth
  +-- tcp-supported
  +-- tls-supported
]]></artwork>
          <!--<aside>-->
            <t>The diagram above uses syntax that is similar to but not
              defined in <xref target="RFC8340" format="default"/>.</t>
          <!--</aside>-->
        </section>
        <section toc="exclude" numbered="true">
          <name>Groupings</name>
          <t>The "ietf-http-server" module defines the following "grouping" statements:</t>
          <ul spacing="compact">
            <li>http-server-grouping</li>
            <li>http-server-stack-grouping</li>
          </ul>
          <t>Each of these groupings are presented in the following subsections.</t>
          <section anchor="http-server-grouping" numbered="true" toc="default">
            <name>The "http-server-grouping" Grouping</name>
            <t>The following tree diagram <xref target="RFC8340" format="default"/> illustrates the
              "http-server-grouping" grouping:</t>
            <artwork name="" type="" align="left" alt=""><![CDATA[
  grouping http-server-grouping:
    +-- server-name?             string
    +-- client-authentication! {client-auth-supported}?
       +-- users {local-users-supported}?
          +-- user* [user-id]
             +-- user-id?       string
             +-- (auth-type)
                +--:(basic)
                   +-- basic {basic-auth}?
                      +-- user-id?    string
                      +-- password?   ianach:crypt-hash
]]></artwork>
            <t>Comments:</t>
            <ul>
              <li>The "http-server-grouping" defines the configuration for just
                "HTTP" part of a protocol stack.  It does not, for instance,
                define any configuration for the "TCP" or "TLS" protocol layers
                (for that, see <xref target="http-server-stack-grouping" format="default"/>).</li>
              <li>The "server-name" node defines the HTTP server's name, as
                presented to HTTP clients.</li>
              <li>The "client-authentication" node, which must by enabled by
                a feature, defines a very simple user-database.  Only the 
                "basic" authentication scheme is supported, albeit it must
                be enabled by a "feature".  Other authentication schemes
                MAY be augmented in.</li>
            </ul>
          </section>
          <section anchor="http-server-stack-grouping" numbered="true" toc="default">
            <name>The "http-server-stack-grouping" Grouping</name>
            <t>The following tree diagram <xref target="RFC8340" format="default"/> illustrates the
              "http-server-stack-grouping" grouping:</t>
            <artwork name="" type="" align="left" alt=""><![CDATA[
  grouping http-server-stack-grouping:
    +-- (transport)
       +--:(tcp) {tcp-supported}?
       |  +-- tcp
       |     +-- tcp-server-parameters
       |     |  +---u tcps:tcp-server-grouping
       |     +-- http-server-parameters
       |        +---u http-server-grouping
       +--:(tls) {tls-supported}?
          +-- tls
             +-- tcp-server-parameters
             |  +---u tcps:tcp-server-grouping
             +-- tls-server-parameters
             |  +---u tlss:tls-server-grouping
             +-- http-server-parameters
                +---u http-server-grouping
]]></artwork>
            <t>Comments:</t>
            <ul>
              <li>The "http-server-stack-grouping" is a convenience grouping for downstream
                modules.  It defines both the "HTTP" and "HTTPS" protocol stacks, with each
                option enabled by a "feature" statement for application control.</li>
              <li>
                <t>For the referenced grouping statement(s):
                </t>
                <ul spacing="compact">
                  <li>The "tcp-server-grouping" grouping is discussed in
                    <relref section="4.1.2.1" target="I-D.ietf-netconf-tcp-client-server"/>.</li>
                  <li>The "tls-server-grouping" grouping is discussed in
                    <relref section="4.1.2.1" target="I-D.ietf-netconf-tls-client-server"/>.</li>
                  <li>The "http-server-grouping" grouping is discussed in
                    <xref target="http-server-grouping" format="default"/> in this document.</li>
                </ul>
              </li>
            </ul>
          </section>
        </section>
        <section toc="exclude" numbered="true">
          <name>Protocol-accessible Nodes</name>
          <t>The "ietf-http-server" module defines only "grouping" statements that are
            used by other modules to instantiate protocol-accessible nodes.</t>
        </section>
      </section>
      <section anchor="server-examples" numbered="true" toc="default">
        <name>Example Usage</name>
        <t>This section presents an example showing the http-server-grouping
        populated with some data.</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
<!-- The outermost element below doesn't exist in the data model. -->
<!--  It simulates if the "grouping" were a "container" instead.  -->

<http-server xmlns="urn:ietf:params:xml:ns:yang:ietf-http-server">
  <server-name>foo.example.com</server-name>
</http-server>
]]></artwork>
      </section>
      <section anchor="server-yang-module" numbered="true" toc="default">
        <name>YANG Module</name>
        <t>This YANG module has normative references to <xref target="RFC6991" format="default"/>.</t>
        <t keepWithNext="true">&lt;CODE BEGINS&gt; file "ietf-http-server@2022-12-12.yang"</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
module ietf-http-server {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-http-server";
  prefix https;

  import iana-crypt-hash {
    prefix ianach;
    reference
      "RFC 7317: A YANG Data Model for System Management";
  }

  import ietf-netconf-acm {
    prefix nacm;
    reference
      "RFC 8341: Network Configuration Access Control Model";
  }

  import ietf-tcp-server {
    prefix tcps;
    reference
      "RFC DDDD: YANG Groupings for TCP Clients and TCP Servers";
  }

  import ietf-tls-server {
    prefix tlss;
    reference
      "RFC FFFF: YANG Groupings for TLS Clients and TLS Servers";
  }

  organization
    "IETF NETCONF (Network Configuration) Working Group";

  contact
    "WG Web:   https://datatracker.ietf.org/wg/netconf
     WG List:  NETCONF WG list <mailto:netconf@ietf.org>
     Author:   Kent Watsen <mailto:kent+ietf@watsen.net>";

  description
    "This module defines reusable groupings for HTTP servers that
     can be used as a basis for specific HTTP server instances.

     Copyright (c) 2022 IETF Trust and the persons identified
     as authors of the code. All rights reserved.

     Redistribution and use in source and binary forms, with
     or without modification, is permitted pursuant to, and
     subject to the license terms contained in, the Revised
     BSD License set forth in Section 4.c of the IETF Trust's
     Legal Provisions Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC GGGG
     (https://www.rfc-editor.org/info/rfcGGGG); see the RFC
     itself for full legal notices.

     The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL',
     'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED',
     'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document
     are to be interpreted as described in BCP 14 (RFC 2119)
     (RFC 8174) when, and only when, they appear in all
     capitals, as shown here.";

  revision 2022-12-12 {
    description
      "Initial version";
    reference
      "RFC GGGG: YANG Groupings for HTTP Clients and HTTP Servers";
  }

  // Features

  feature client-auth-supported {
    description
      "Indicates that the configuration for how to authenticate
       clients can be configured herein.  HTTP-level client
       authentication may not be needed when client authentication
       is expected to occur only at another protocol layer.";
  }

  feature local-users-supported {
    description
      "Indicates that the configuration for users can be
       configured herein, as opposed to in an application
       specific location.";
  }

  feature basic-auth {
    description
      "The 'basic-auth' feature indicates that the server
       may be configured authenticate users using the 'basic'
       HTTP authentication scheme.";
    reference
      "RFC 7617: The 'Basic' HTTP Authentication Scheme";
  }

  feature tcp-supported {
    description
      "Indicates that the server supports HTTP/TCP.";
  }

  feature tls-supported {
    description
      "Indicates that the server supports HTTP/TLS.";
  }

  // Groupings

  grouping http-server-grouping {
    description
      "A reusable grouping for configuring an HTTP server.

       Note that this grouping uses fairly typical descendant
       node names such that a stack of 'uses' statements will
       have name conflicts.  It is intended that the consuming
       data model will resolve the issue (e.g., by wrapping
       the 'uses' statement in a container called
       'http-server-parameters').  This model purposely does
       not do this itself so as to provide maximum flexibility
       to consuming models.";

    leaf server-name {
      nacm:default-deny-write;
      type string;
      description
        "The value of the 'Server' header field.  If not set, then
         underlying software's default value is used.  Set to the
         empty string to disable.";
    }

    container client-authentication {
      if-feature "client-auth-supported";
      nacm:default-deny-write;
      presence
        "Indicates that HTTP based client authentication is
         configured.  This statement is present so the mandatory
         descendant nodes do not imply that this node must be
         configured.";
      description
        "Configures how the HTTP server can authenticate HTTP
         clients.  The HTTP server will request that the HTTP
         client send authentication when needed.";
      container users {
        if-feature "local-users-supported";
        description
          "A list of locally configured users.";
        list user {
          key "user-id";
          description
            "The list of local users configured on this device.";
          leaf user-id {
            type string;
            description
              "The user-id for the authenticating client.";
          }
          choice auth-type {
            mandatory true;
            description
              "The authentication type.";
            case basic {
              container basic {
                if-feature "basic-auth";
                leaf user-id {
                  type string;
                  description
                    "The user-id for the authenticating client.";
                }
                leaf password {
                  nacm:default-deny-write;
                  type ianach:crypt-hash;
                  description
                    "The password for the authenticating client.";
                }
                description
                  "The 'basic' HTTP scheme credentials.";
                reference
                  "RFC 7617:
                    The 'Basic' HTTP Authentication Scheme";
              }
            }
          }
        }
      }
    } // container client-authentication
  } // grouping http-server-grouping

  grouping http-server-stack-grouping {
    description
      "A grouping that defines common HTTP-based protocol stacks.";
    choice transport {
      mandatory true;
      description
        "Choice amongst various transports type.  TCP, with and
         without TLS are defined here, with 'feature' statements
         so that they may be disabled.  Other transports MAY be
         augmented in as 'case' statements by future efforts.";
      case tcp {
        if-feature "tcp-supported";
        container tcp {
          description
            "Container for TCP-based HTTP protocols.";
          container tcp-server-parameters {
            description
              "A wrapper around the TCP parameters to avoid
               name collisions.";
            uses tcps:tcp-server-grouping;
          }
          container http-server-parameters {
            description
              "A wrapper around the HTTP parameters to avoid
               name collisions.";
            uses http-server-grouping;
          }
        }
      }
      case tls {
        if-feature "tls-supported";
        container tls {
          description
            "Container for TLS-based HTTP protocols.";
          container tcp-server-parameters {
            description
              "A wrapper around the TCP parameters to avoid
               name collisions.";
            uses tcps:tcp-server-grouping;
          }
          container tls-server-parameters {
            description
              "A wrapper around the TLS parameters to avoid
               name collisions.";
            uses tlss:tls-server-grouping;
          }
          container http-server-parameters {
            description
              "A wrapper around the HTTP parameters to avoid
               name collisions.";
            uses http-server-grouping;
          }
        }
      }
    }
  } // http-server-stack-grouping

}
]]></artwork>
        <t keepWithPrevious="true">&lt;CODE ENDS&gt;</t>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>Security Considerations</name>
      <section numbered="true" toc="default">
        <name>The "ietf-http-client" YANG Module</name>
        <t>The "ietf-http-client" YANG module defines "grouping" statements
          that are designed to be accessed via YANG based management
          protocols, such as NETCONF <xref target="RFC6241" format="default"/> and RESTCONF
          <xref target="RFC8040" format="default"/>.  Both of these protocols have
          mandatory-to-implement secure transport layers (e.g., SSH, TLS)
          with mutual authentication.</t>
        <t>The Network Access Control Model (NACM) <xref target="RFC8341" format="default"/>
          provides the means to restrict access for particular users to a
          pre-configured subset of all available protocol operations and
          content.</t>
        <t>Since the module in this document only define groupings,
          these considerations are primarily for the designers of other
          modules that use these groupings.</t>
        <t>One readable data node defined in this YANG module may be considered
          sensitive or vulnerable in some network environments. This
          node is as follows:
        </t>
        <ul spacing="normal">
          <li>
            <t>The "client-identity/basic/password" node:
            </t>
            <ul empty="true">
              <li>The cleartext "password" node defined in the "http-client-identity-grouping"
                  grouping is additionally sensitive to read operations such that,
                  in normal use cases, it should never be returned to a client.
                  For this reason, the NACM extension "default-deny-all" has been
                  applied to it.</li>
            </ul>
          </li>
        </ul>
        <!--<aside>-->
          <t>Please be aware that this module uses the "key" and "private-key"
            nodes from the "ietf-crypto-types" module <xref target="I-D.ietf-netconf-crypto-types" format="default"/>,
            where said nodes have the NACM extension "default-deny-all" set, thus
            preventing unrestricted read-access to the cleartext key values.</t>
        <!--</aside>-->

        <t>None of the writable data nodes defined in this YANG module are
          considered sensitive or vulnerable in network environments.
          The NACM "default-deny-write" extension has not been set for
          any data nodes defined in this module.</t>
        <!--<aside>-->
          <t>Please be aware that this module uses groupings from the
            "ietf-tls-client" and "ietf-tls-server" modules defined in
            <xref target="I-D.ietf-netconf-tls-client-server" format="default"/>.  All
            of the data nodes defined in these groupings have the NACM
            extension "default-deny-write" set, thus preventing
            unrestricted write-access to the data nodes defined
            in those groupings.</t>
        <!--</aside>-->

        <t>This module does not define any RPCs, actions, or notifications,
          and thus the security consideration for such is not provided here.</t>
      </section>
      <section numbered="true" toc="default">
        <name>The "ietf-http-server" YANG Module</name>
        <t>The "ietf-http-server" YANG module defines "grouping" statements
          that are designed to be accessed via YANG based management
          protocols, such as NETCONF <xref target="RFC6241" format="default"/> and RESTCONF
          <xref target="RFC8040" format="default"/>.  Both of these protocols have
          mandatory-to-implement secure transport layers (e.g., SSH, TLS)
          with mutual authentication.</t>
        <t>The Network Access Control Model (NACM) <xref target="RFC8341" format="default"/>
          provides the means to restrict access for particular users to a
          pre-configured subset of all available protocol operations and
          content.</t>
        <t>Since the module in this document only define groupings,
          these considerations are primarily for the designers of other
          modules that use these groupings.</t>
        <t>None of the readable data nodes defined in this YANG module are
          considered sensitive or vulnerable in network environments.
          The NACM "default-deny-all" extension has not been set for
          any data nodes defined in this module.</t>
        <t>None of the writable data nodes defined in this YANG module are
          considered sensitive or vulnerable in network environments.
          The NACM "default-deny-write" extension has not been set for
          any data nodes defined in this module.</t>
        <!--<aside>-->
          <t>Please be aware that this module uses groupings from the
            "ietf-tls-client" and "ietf-tls-server" modules defined in
            <xref target="I-D.ietf-netconf-tls-client-server" format="default"/>.  All
            of the data nodes defined in these groupings have the NACM
            extension "default-deny-write" set, thus preventing
            unrestricted write-access to the data nodes defined
            in those groupings.</t>
        <!--</aside>-->

        <t>This module does not define any RPCs, actions, or notifications,
          and thus the security consideration for such is not provided here.</t>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>IANA Considerations</name>
      <section numbered="true" toc="default">
        <name>The "IETF XML" Registry</name>
        <t>This document registers two URIs in the "ns" subregistry of the
        IETF XML Registry <xref target="RFC3688" format="default"/>. Following the format in
        <xref target="RFC3688" format="default"/>, the following registrations are
        requested:</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
   URI: urn:ietf:params:xml:ns:yang:ietf-http-client
   Registrant Contact: The IESG
   XML: N/A, the requested URI is an XML namespace.

   URI: urn:ietf:params:xml:ns:yang:ietf-http-server
   Registrant Contact: The IESG
   XML: N/A, the requested URI is an XML namespace.
]]></artwork>
      </section>
      <section numbered="true" toc="default">
        <name>The "YANG Module Names" Registry</name>
        <t>This document registers two YANG modules in the YANG Module Names
        registry <xref target="RFC6020" format="default"/>. Following the format in <xref target="RFC6020" format="default"/>, the following registrations are requested:</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
   name:         ietf-http-client
   namespace:    urn:ietf:params:xml:ns:yang:ietf-http-client
   prefix:       httpc
   reference:    RFC GGGG

   name:         ietf-http-server
   namespace:    urn:ietf:params:xml:ns:yang:ietf-http-server
   prefix:       https
   reference:    RFC GGGG
]]></artwork>
      </section>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <seriesInfo name="DOI" value="10.17487/RFC2119"/>
            <seriesInfo name="RFC" value="2119"/>
            <seriesInfo name="BCP" value="14"/>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized.  This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC6020" target="https://www.rfc-editor.org/info/rfc6020" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6020.xml">
          <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <seriesInfo name="DOI" value="10.17487/RFC6020"/>
            <seriesInfo name="RFC" value="6020"/>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="October" year="2010"/>
            <abstract>
              <t>YANG is a data modeling language used to model configuration and state data manipulated by the Network Configuration Protocol (NETCONF), NETCONF remote procedure calls, and NETCONF notifications. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC6991" target="https://www.rfc-editor.org/info/rfc6991" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6991.xml">
          <front>
            <title>Common YANG Data Types</title>
            <seriesInfo name="DOI" value="10.17487/RFC6991"/>
            <seriesInfo name="RFC" value="6991"/>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <date month="July" year="2013"/>
            <abstract>
              <t>This document introduces a collection of common data types to be used with the YANG data modeling language.  This document obsoletes RFC 6021.</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC7950" target="https://www.rfc-editor.org/info/rfc7950" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7950.xml">
          <front>
            <title>The YANG 1.1 Data Modeling Language</title>
            <seriesInfo name="DOI" value="10.17487/RFC7950"/>
            <seriesInfo name="RFC" value="7950"/>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="August" year="2016"/>
            <abstract>
              <t>YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols.  This document describes the syntax and semantics of version 1.1 of the YANG language.  YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification.  There are a small number of backward incompatibilities from YANG version 1.  This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <seriesInfo name="DOI" value="10.17487/RFC8174"/>
            <seriesInfo name="RFC" value="8174"/>
            <seriesInfo name="BCP" value="14"/>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC8341" target="https://www.rfc-editor.org/info/rfc8341" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8341.xml">
          <front>
            <title>Network Configuration Access Control Model</title>
            <seriesInfo name="DOI" value="10.17487/RFC8341"/>
            <seriesInfo name="RFC" value="8341"/>
            <seriesInfo name="STD" value="91"/>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="March" year="2018"/>
            <abstract>
              <t>The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.</t>
              <t>This document obsoletes RFC 6536.</t>
            </abstract>
          </front>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3688.xml">
          <front>
            <title>The IETF XML Registry</title>
            <seriesInfo name="DOI" value="10.17487/RFC3688"/>
            <seriesInfo name="RFC" value="3688"/>
            <seriesInfo name="BCP" value="81"/>
            <author fullname="M. Mealling" initials="M." surname="Mealling"/>
            <date month="January" year="2004"/>
            <abstract>
              <t>This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas.</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC6241" target="https://www.rfc-editor.org/info/rfc6241" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6241.xml">
          <front>
            <title>Network Configuration Protocol (NETCONF)</title>
            <seriesInfo name="DOI" value="10.17487/RFC6241"/>
            <seriesInfo name="RFC" value="6241"/>
            <author fullname="R. Enns" initials="R." role="editor" surname="Enns"/>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <author fullname="A. Bierman" initials="A." role="editor" surname="Bierman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t>The Network Configuration Protocol (NETCONF) defined in this document provides mechanisms to install, manipulate, and delete the configuration of network devices.  It uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the protocol messages.  The NETCONF protocol operations are realized as remote procedure calls (RPCs).  This document obsoletes RFC 4741. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC8040" target="https://www.rfc-editor.org/info/rfc8040" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8040.xml">
          <front>
            <title>RESTCONF Protocol</title>
            <seriesInfo name="DOI" value="10.17487/RFC8040"/>
            <seriesInfo name="RFC" value="8040"/>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <date month="January" year="2017"/>
            <abstract>
              <t>This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC8340" target="https://www.rfc-editor.org/info/rfc8340" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8340.xml">
          <front>
            <title>YANG Tree Diagrams</title>
            <seriesInfo name="DOI" value="10.17487/RFC8340"/>
            <seriesInfo name="RFC" value="8340"/>
            <seriesInfo name="BCP" value="215"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="L. Berger" initials="L." role="editor" surname="Berger"/>
            <date month="March" year="2018"/>
            <abstract>
              <t>This document captures the current syntax used in YANG module tree diagrams.  The purpose of this document is to provide a single location for this definition.  This syntax may be updated from time to time based on the evolution of the YANG language.</t>
            </abstract>
          </front>
        </reference>
        <reference anchor="RFC8342" target="https://www.rfc-editor.org/info/rfc8342" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8342.xml">
          <front>
            <title>Network Management Datastore Architecture (NMDA)</title>
            <seriesInfo name="DOI" value="10.17487/RFC8342"/>
            <seriesInfo name="RFC" value="8342"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." surname="Schoenwaelder"/>
            <author fullname="P. Shafer" initials="P." surname="Shafer"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <author fullname="R. Wilton" initials="R." surname="Wilton"/>
            <date month="March" year="2018"/>
            <abstract>
              <t>Datastores are a fundamental concept binding the data models written in the YANG data modeling language to network management protocols such as the Network Configuration Protocol (NETCONF) and RESTCONF.  This document defines an architectural framework for datastores based on the experience gained with the initial simpler model, addressing requirements that were not well supported in the initial model.  This document updates RFC 7950.</t>
            </abstract>
          </front>
        </reference>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-crypto-types.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-trust-anchors.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-keystore.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-tcp-client-server.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-ssh-client-server.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-tls-client-server.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-http-client-server.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-netconf-client-server.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-netconf-restconf-client-server.xml"/>
      </references>
    </references>
    <section removeInRFC="true" anchor="change-log" numbered="true" toc="default">
      <name>Change Log</name>
      <section numbered="true" toc="default">
        <name>00 to 01</name>
        <ul spacing="normal">
          <li>Modified Abstract and Intro to be more accurate wrt intended applicability.</li>
          <li>In ietf-http-client, removed "protocol-version" and all auth schemes except "basic".</li>
          <li>In ietf-http-client, factored out "client-identity-grouping" for proxy connections.</li>
          <li>In ietf-http-server, removed "choice required-or-optional" and "choice local-or-external".</li>
          <li>In ietf-http-server, moved the basic auth under a "choice auth-type" limited by new "feature basic-auth".</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>01 to 02</name>
        <ul spacing="normal">
          <li>Removed the unused "external-client-auth-supported" feature from ietf-http-server.</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>02 to 03</name>
        <ul spacing="normal">
          <li>Removed "protocol-versions" from ietf-http-server based on HTTP WG feedback.</li>
          <li>Slightly restructured the "proxy-server" definition in ietf-http-client.</li>
          <li>Added http-client example show proxy server use.</li>
          <li>Added a "Note to Reviewers" note to first page.</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>03 to 04</name>
        <ul spacing="normal">
          <li>Added a parent "container" to "client-identity-grouping" so that it could be
              better used by the proxy model.</li>
          <li>Added a "choice" to the proxy model enabling selection of proxy types.</li>
          <li>Added 'http-client-stack-grouping' and 'http-server-stack-grouping' convenience groupings.</li>
          <li>Expanded "Data Model Overview section(s) [remove "wall" of tree diagrams].</li>
          <li>Updated the Security Considerations section.</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>04 to 05</name>
        <ul spacing="normal">
          <li>Fixed titles and a ref in the IANA Considerations section</li>
          <li>Cleaned up examples (e.g., removed FIXMEs)</li>
          <li>Fixed issues found by the SecDir review of the "keystore" draft.</li>
          <li>Updated the "ietf-http-client" module to use the new "password-grouping" 
              grouping from the "crypto-types" module.</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>05 to 06</name>
        <ul spacing="normal">
          <li>Removed note questioning if okay for app to augment-in a 'path' node
              when needed, discussed during the 108 session.</li>
          <li>Addressed comments raised by YANG Doctor in the ct/ts/ks drafts.</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>06 to 07</name>
        <ul spacing="normal">
          <li>Added XML-comment above examples explaining the reason for the unusual top-most element's presence.</li>
          <li>Renamed 'client-auth-config-supported' to 'client-auth-supported' consistent with other drafts.</li>
          <li>Wrapped 'container basic' choice inside a 'case basic' per best practice.</li>
          <li>Aligned modules with `pyang -f` formatting.</li>
          <li>Fixed nits found by YANG Doctor reviews.</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>07 to 08</name>
        <ul spacing="normal">
          <li>Replaced "base64encodedvalue==" with "BASE64VALUE=" in examples.</li>
          <li>Minor editorial nits</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>08 to 09</name>
        <ul spacing="normal">
          <li>Fixed up the 'WG Web' and 'WG List' lines in YANG module(s)</li>
          <li>Fixed up copyright (i.e., s/Simplified/Revised/) in YANG module(s)</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>09 to 10</name>
        <ul spacing="normal">
          <li>NO UPDATE.</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>10 to 11</name>
        <ul spacing="normal">
          <li>Updated per Shepherd reviews impacting the suite of drafts.</li>
        </ul>
      </section>
      <section numbered="true" toc="default">
        <name>11 to 12</name>
        <ul spacing="normal">
          <li>Updated per Shepherd reviews impacting the suite of drafts.</li>
        </ul>
      </section>
    </section>
    <section numbered="false" toc="default">
      <name>Acknowledgements</name>
      <t>The authors would like to thank for following for lively discussions
        on list and in the halls (ordered by first name):
          Ben Schwartz,
          Mark Nottingham,
          Mahesh Jethanandani,
          Rob Wilton (contributor),
          and Willy Tarreau.
      </t>
    </section>
  </back>
</rfc>
