<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rfc [
  <!ENTITY nbsp "&#160;">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude"
     category="info"
     docName="draft-passos-stir-passport-rauth-00"
     ipr="trust200902"
     submissionType="IETF"
     consensus="false"
     version="3"
     xml:lang="en">
 
  <front>
    <title abbrev="PASSporT rauth">PASSporT Extension for Registry-Issued Number Authorization</title>
    <seriesInfo name="Internet-Draft" value="draft-passos-stir-passport-rauth-00"/>
    <author initials="R. R." surname="Passos" fullname="Rodrigo Ricardo Passos">
      <organization>TYSA Telecom</organization>
      <address>
        <postal>
          <country>Brazil</country>
        </postal>
        <email>rodrigo@tysa.com.br</email>
      </address>
    </author>
    <date year="2026" month="December"/>
    <area>ART</area>
    <workgroup>STIR</workgroup>
    <keyword>STIR</keyword>
    <keyword>PASSporT</keyword>
    <keyword>telephone number</keyword>
    <keyword>registry</keyword>
    <abstract>
      <t>This document specifies a PASSporT extension, with the "ppt" value "rauth" (registry
      authorization), for use where a central registry operated under regulatory supervision
      records which service provider may originate calls from a given telephone number on
      behalf of a registered subscriber. The originating provider includes in the PASSporT the
      identifier that the registry assigned to that binding. The terminating side checks the
      signature and looks the identifier up in a signed local copy of the registry. No per-call
      query to the registry is made and no subscriber data travels in the signaling.</t>
    </abstract>
  </front>
 
  <middle>
    <section anchor="intro">
      <name>Introduction</name>
      <t>STIR <xref target="RFC8224"/> <xref target="RFC8225"/> allows the originating provider
      to sign the calling number. In SHAKEN <xref target="RFC8588"/> the provider also states,
      through the attestation level, how well it knows the caller. That statement is made by
      the provider alone.</t>
      <t>Some national regulators want more than that. In Brazil, for example, every number that
      originates calls has to be registered by the provider in a central database supervised by
      the regulator, together with the subscriber who uses it. The registry checks, using
      portability and numbering plan data, that the provider really holds the number, and only
      then accepts the record. Each accepted record gets an identifier.</t>
      <t>What is missing is a standard way to carry that identifier in the call and to check it
      at the terminating side. This document fills that gap. It does not describe how the
      registry works internally, which subscriber data it keeps or the legal framework behind
      it. <xref target="br-profile"/> gives the Brazilian profile as an example only.</t>
      <t>The extension does not depend on SHAKEN. A request can carry a "rauth" PASSporT and a
      "shaken" PASSporT in two Identity header fields.</t>
    </section>
 
    <section anchor="reqs">
      <name>Requirements Language</name>
      <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
      "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>",
      "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>",
      "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in
      this document are to be interpreted as described in BCP&nbsp;14
      <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all
      capitals, as shown here.</t>
    </section>
 
    <section anchor="terms">
      <name>Terminology</name>
      <dl newline="true">
        <dt>Registry Operator:</dt>
        <dd>Entity designated or accredited by the competent authority to run the registry and
        to sign Authorizations.</dd>
        <dt>Authorization:</dt>
        <dd>Record signed by the Registry Operator that binds one telephone number, one
        subscriber and one originating provider.</dd>
        <dt>Authorization Identifier (aid):</dt>
        <dd>Identifier of an Authorization. It is assigned by the Registry Operator, is opaque to
        everybody else and is never reused, not even after the Authorization is revoked.</dd>
        <dt>Entitled Provider:</dt>
        <dd>Provider that the Registry Operator recorded as allowed to originate calls from the
        number of an Authorization.</dd>
        <dt>Local Copy:</dt>
        <dd>Copy of the public part of the registry (identifiers, numbers, providers and states)
        kept by a verifier and updated from data signed by the Registry Operator.</dd>
      </dl>
    </section>
 
    <section anchor="operation">
      <name>Operation</name>
      <t>The flow is as follows:</t>
      <ol>
        <li>The provider submits the number and the subscriber to the Registry Operator. If the
        provider holds the number, the Registry Operator creates the Authorization and returns
        its aid.</li>
        <li>The Registry Operator publishes signed updates. Every verifier keeps its Local Copy
        up to date from them.</li>
        <li>For each call, the Authentication Service of the originating provider signs a
        PASSporT with "ppt" set to "rauth" and with the aid of the calling number.</li>
        <li>The Verification Service of the terminating provider checks the PASSporT against the
        Local Copy. The registry is not contacted during the call.</li>
      </ol>
    </section>
 
    <section anchor="ext">
      <name>The "rauth" Extension</name>
      <section anchor="header">
        <name>PASSporT Header</name>
        <t>The header <bcp14>MUST</bcp14> contain "alg" with the value "ES256", "typ" with the
        value "passport", "ppt" with the value "rauth" and "x5u".</t>
        <t>"x5u" carries an HTTPS URI pointing to the call signing certificate of the
        originating provider and its chain. The URI <bcp14>MUST</bcp14> be inside the
        certificate repository designated by the Registry Operator, and a verifier
        <bcp14>MUST</bcp14> reject the PASSporT when it is not.</t>
      </section>
      <section anchor="payload">
        <name>PASSporT Payload</name>
        <t>The payload <bcp14>MUST</bcp14> contain the "orig", "dest" and "iat" claims as
        defined in <xref target="RFC8225"/>. The telephone numbers use the canonical form of
        that document.</t>
        <t>It <bcp14>MUST</bcp14> also contain the "aid" claim: a string with the Authorization
        Identifier of the calling number. If the registry uses UUIDs, the string is the
        lowercase form of <xref target="RFC9562"/>.</t>
        <t>Names, document numbers or any other subscriber data <bcp14>MUST NOT</bcp14> be
        placed in the PASSporT. If a profile lets the called party see information about the
        caller, for instance the business name of a company, the verifier takes it from the
        Local Copy.</t>
      </section>
      <section anchor="example">
        <name>Example</name>
        <t>Header:</t>
        <sourcecode type="json"><![CDATA[
{"alg":"ES256","typ":"passport","ppt":"rauth",
 "x5u":"https://certs.registry.example/op/1a2b3c.pem"}
]]></sourcecode>
        <t>Payload:</t>
        <sourcecode type="json"><![CDATA[
{"orig":{"tn":"5538991234567"},
 "dest":{"tn":["5531987654321"]},
 "iat":1796000000,
 "aid":"7bda74e2-8d12-4b70-98c5-1e18c02a85e3"}
]]></sourcecode>
      </section>
      <section anchor="sip">
        <name>Use in SIP</name>
        <t>The PASSporT goes in the SIP Identity header field <xref target="RFC8224"/> in full
        form, with the "ppt" parameter set to "rauth".</t>
      </section>
    </section>
 
    <section anchor="as">
      <name>Authentication Service</name>
      <t>The Authentication Service of the originating provider:</t>
      <ol>
        <li><bcp14>MUST</bcp14> use the aid of an Authorization whose number is the calling
        number and whose Entitled Provider is the provider that signs;</li>
        <li><bcp14>MUST</bcp14> sign with a call signing certificate issued to that provider
        under the trust anchor set by the competent authority;</li>
        <li><bcp14>MUST NOT</bcp14> create a "rauth" PASSporT for a number that has no active
        Authorization.</li>
      </ol>
    </section>
 
    <section anchor="vs">
      <name>Verification Service</name>
      <t>On top of the procedures of <xref target="RFC8224"/>, the Verification Service
      <bcp14>MUST</bcp14>:</t>
      <ol>
        <li>retrieve the certificate only from the designated repository, validate its chain up
        to the designated trust anchor and check that it is not revoked;</li>
        <li>check that "iat" is recent, as in <xref target="RFC8224"/>;</li>
        <li>check that the Local Copy is within the maximum age set by the profile. When it is
        not, the result is "stale registry copy". This is a different result from a signature
        failure, and what happens to the call is decided by the applicable regulation;</li>
        <li>find the aid in the Local Copy and check that the Authorization is active;</li>
        <li>check that "orig.tn" equals the number of the Authorization;</li>
        <li>check, using the provider data in the Local Copy, that the certificate belongs to
        the Entitled Provider of the Authorization.</li>
      </ol>
      <t>If any of the checks in items 1, 2, 4, 5 or 6 fails, the call is not authenticated
      under this extension.</t>
    </section>
 
    <section anchor="profiles">
      <name>Requirements on Profiles</name>
      <t>A profile of this extension <bcp14>MUST</bcp14> say:</t>
      <ul>
        <li>how the Registry Operator signs incremental updates and full snapshots, and how a
        verifier detects a missing update (a global sequence number is one option);</li>
        <li>the maximum age of the Local Copy;</li>
        <li>how the Local Copy links each provider to its signing certificates and to its
        numbers;</li>
        <li>when an Authorization is suspended or revoked, number portability being the usual
        case.</li>
      </ul>
    </section>
 
    <section anchor="others">
      <name>Relation to Other Extensions</name>
      <t>This extension does not replace SHAKEN <xref target="RFC8588"/> or Rich Call Data
      <xref target="RFC9795"/>. Its only statement is that the registry has bound the calling
      number to the provider that signed.</t>
    </section>
 
    <section anchor="impl" removeInRFC="true">
      <name>Implementation Status</name>
      <t>Following <xref target="RFC7942"/>: an implementation of the registry side and of the
      Authentication and Verification Services is being developed by TYSA Telecom for the
      Brazilian profile. No interoperability results are available yet.</t>
    </section>
 
    <section anchor="privacy">
      <name>Privacy Considerations</name>
      <t>The aid <bcp14>MUST NOT</bcp14> be built from personal data. Subscriber data stays in
      the registry and is subject to the data protection law in force. Since the aid does not
      change while the Authorization lasts, calls from the same number can be linked through
      it, but the calling number already allows that.</t>
    </section>
 
    <section anchor="security">
      <name>Security Considerations</name>
      <t>An attacker who wants to forge an Authorization needs the key of the Registry
      Operator. To forge the PASSporT, the attacker needs the signing key of the provider.
      Limiting "x5u" to the designated repository stops a verifier from fetching certificates
      from addresses chosen by an attacker.</t>
      <t>A Local Copy that is out of date may still hold an Authorization that the registry has
      already revoked. The maximum age set by the profile limits this exposure. Replay is
      limited by the freshness check on "iat" and by "dest".</t>
    </section>
 
    <section anchor="iana">
      <name>IANA Considerations</name>
      <section anchor="iana-ppt">
        <name>PASSporT Extensions Registry</name>
        <t>IANA is asked to add the following entry to the "Personal Assertion Token (PASSporT)
        Extensions" registry:</t>
        <ul spacing="compact">
          <li>ppt value: rauth</li>
          <li>Reference: this document</li>
        </ul>
      </section>
      <section anchor="iana-jwt">
        <name>JSON Web Token Claims Registry</name>
        <t>IANA is asked to add the following entry to the "JSON Web Token Claims"
        registry:</t>
        <ul spacing="compact">
          <li>Claim Name: aid</li>
          <li>Claim Description: Authorization Identifier assigned by a telephone number
          registry</li>
          <li>Change Controller: TYSA Telecom (rodrigo@tysa.com.br)</li>
          <li>Reference: this document</li>
        </ul>
      </section>
    </section>
  </middle>
 
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7515.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7519.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8224.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8225.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9562.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7942.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8588.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9795.xml"/>
      </references>
    </references>
 
    <section anchor="br-profile" numbered="true">
      <name>Brazilian Profile (Informative)</name>
      <t>Provisional Measure 1.396/2026 and the rules of Anatel, the Brazilian regulator,
      oblige originating providers to authenticate calls and terminating providers to block
      calls that are not authenticated. The database is centralized and supervised by Anatel.
      The profile being designed works like this:</t>
      <ul>
        <li>The trust anchor is a root certificate under Anatel control. Below it, the Registry
        Operator has one intermediate that issues the call signing certificates of providers and
        a second one that issues their API client certificates.</li>
        <li>Providers are identified by their Routing Number 1 (RN1). The registry checks the
        number against the portability database and, for numbers that were never ported,
        against the numbering plan.</li>
        <li>The Local Copy is fed by signed messages that carry a global sequence number and by
        signed files. It stops being valid 2 hours after the last verified manifest.</li>
        <li>For companies, the business name registered in the database can be shown to the
        called party. It comes from the Local Copy.</li>
      </ul>
    </section>
  </back>
</rfc>