RFC 5178

Generic Security Service Application Program Interface (GSS-API) Internationalization and Domain-Based Service Names and Name Type

πŸ“… published May 2008, from ietf

RFC 5178 πŸ“œπŸŽ€ (Part 1 of 2)

Generic Security Service Application Program Interface (GSS-API) Internationalization and Domain-Based Service Names and Name Type

  • Written by: N. Williams (Sun) and A. Melnikov (Isode Ltd.) πŸ‘―β€β™€οΈ
  • Category: Standards Track πŸ›€οΈ
  • Date: May 2008 πŸ“…
  • Obsoletes / Updates: nothing! This one doesn't obsolete or update any earlier RFC πŸ’…

Status of This Memo ✨

okay so this document is an Internet standards track protocol for the Internet community 🌐. It's open for discussion and suggestions for improvements, so bring your ideas πŸ’–. If you want the current standardization state and status of this protocol, check the current edition of "Internet Official Protocol Standards" (STD 1) πŸ“š. And the distribution of this memo is unlimited, so share away πŸ¦‹.

Abstract 🌸

this doc is all about domain-name-based service principal names and their name type for the Generic Security Service Application Programming Interface (GSS-API) πŸŽ€. It also covers internationalization of the GSS-API 🌍.

domain-based service names are kind of like host-based service names, except they use a domain name (which doesn't have to be an Internet domain name) on top of a hostname 🧚. The whole point is to protect applications that use insecure service discovery protocols πŸ›‘οΈ. It works by naming clustered services after the "domain" they serve, so clients can authorize the service's servers based on authenticating those service names πŸ‘‘. Main character energy for sure πŸ’….

Table of Contents πŸ—‚οΈ

1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.  Conventions Used in This Document . . . . . . . . . . . . . . . 4
3.  IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 4
  3.1.  Name Type OID . . . . . . . . . . . . . . . . . . . . . . . 4
  3.2.  Name Type OID and Symbolic Name . . . . . . . . . . . . . . 4
4.  Query and Display Syntaxes  . . . . . . . . . . . . . . . . . . 4
  4.1.  Examples of Domain-Based Names  . . . . . . . . . . . . . . 5
5.  Internationalization (I18N) Considerations  . . . . . . . . . . 5
  5.1.  Importing Internationalized Names . . . . . . . . . . . . . 5
  5.2.  Displaying Internationalized Names  . . . . . . . . . . . . 5
6.  Application Protocol Examples . . . . . . . . . . . . . . . . . 6
  6.1.  NFSv4 Domain-Wide Namespace Root Server Discovery . . . . . 6
  6.2.  LDAP Server Discovery . . . . . . . . . . . . . . . . . . . 6
7.  Security Considerations . . . . . . . . . . . . . . . . . . . . 7
8.  References  . . . . . . . . . . . . . . . . . . . . . . . . . . 7
  8.1.  Normative References  . . . . . . . . . . . . . . . . . . . 7
  8.2.  Informative References  . . . . . . . . . . . . . . . . . . 8

1. Introduction πŸ¦‹

okay so some apps need to figure out the names of servers for a specific resource πŸ”. A lot of the usual ways to do server discovery are insecure 😬. Think queries for DNS [RFC1035] SRV resource records [RFC2782] without using DNSSEC [RFC4033]. Those can get attacked, and a client can be redirected to the wrong servers, or even sketchy malicious ones πŸ’€. Worse, a client might get sent to a server that has credentials for itself and can totally authenticate to the client, and it could still be wrong or malicious (say it got compromised) πŸ™ˆ.

so domain-based names let GSS-API [RFC2743] initiator apps (clients) authorize acceptor principals (servers) to serve the resource the client found through insecure discovery 🫢. And you don't need to secure the discovery method or add another protocol for server authorization, which is iconic πŸ”₯. Basically a discovered server either has credentials for the domain-based service names it's supposed to answer, or it doesn't. Having valid credentials for those names is what authorizes a server for a domain-wide service πŸ‘‘.

a domain-based name has three required elements πŸŽ€:

  • a service name
  • a domain name
  • a hostname

the domain name and the hostname should be Domain Name System (DNS) names πŸ’–, though domain-based names could also be used in non-DNS environments 🌈. Since we're using DNS names, we also have to cover internationalization of the GSS-API 🌍.

domain-based naming isn't brand new, btw πŸ’…. According to a report to the KITTEN WG mailing list, at least one LDAP implementation already uses domain-based service naming ✨. Also the DIGEST-MD5 HTTP / Simple Authentication and Security Layer (SASL) mechanism [RFC2831] describes a similar idea 🧚. (See section 2.1.2 of [RFC2831] for the "serv-name" field of the digest-response πŸ“š.)

2. Conventions Used in This Document πŸ“

the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119] πŸ’œ.

3. IANA Considerations πŸ›οΈ

3.1. Name Type OID πŸ”’

IANA has recorded a new name-type OID in IANA's "SMI Security for Name System Designators Codes (nametypes)" registry πŸŽ‰:

5 gss-domain-based-services [RFC5178]

3.2. Name Type OID and Symbolic Name 🏷️

this doc creates a new GSS-API name type with the symbolic name GSS_C_NT_DOMAINBASED_SERVICE and this OID ✨:

{iso(1) org(3) dod(6) internet(1) security(5) nametypes(6) gss-
domain-based(5)}

4. Query and Display Syntaxes πŸ”Ž

there's a single name syntax for domain-based names πŸ’…. It's written in ABNF [RFC5234] 🧠:

      domain-based-name = service "@" domain "@" hostname

      hostname          = domain

      domain            = sub-domain 1*("." sub-domain)

      sub-domain        = Let-dig [Ldh-str]

      Let-dig           = ALPHA / DIGIT

      Ldh-str           = *( ALPHA / DIGIT / "-" ) Let-dig

where <service> is defined in Section 4.1 of [RFC2743] πŸ’–. Any other rules not defined above are defined in Appendix B.1 of [RFC5234] πŸ“š.

4.1. Examples of Domain-Based Names 🧁

these examples are not normative πŸ™ˆ:

  • ldap@somecompany.example@ds1.somecompany.example
  • nfs@somecompany.example@nfsroot1.somecompany.example

we're using the .example top-level domain here, following [RFC2606] πŸ“.

5. Internationalization (I18N) Considerations 🌏

we're introducing new versions of GSS_Import_name() and GSS_Display_name() to support Unicode better 🌸. We also allow ASCII Compatible Encoding (ACE)-encoded DNS in the non-internationalized interfaces [RFC3490] πŸ¦„.

5.1. Importing Internationalized Names πŸ“₯

when the input_name_type parameter is the GSS_C_NT_DOMAINBASED_SERVICE OID, GSS_Import_name() implementations and GSS-API mechanisms MUST accept ACE-encoded internationalized domain names in the hostname and domain name slots of the given domain-based name string πŸ”₯.

support for non-ASCII internationalized domain names SHOULD also be provided through a new function, GSS_Import_name_utf8() 🌈. It works exactly like GSS_Import_name() (same input and output parameters and behavior), except that it MUST accept internationalized domain names both as UTF-8 strings and as ACE-encoded strings through its input_name_string argument πŸ’œ.

5.2. Displaying Internationalized Names πŸ“€

implementations of GSS_Display_name() MUST only output US-ASCII or ACE-encoded internationalized domain names in the hostname and domain name slots of domain-based names (or mechanism names (MN) that follow the mechanism's form for domain-based names) πŸŽ€.

support for non-ASCII internationalized domain names SHOULD also be provided through a new function, GSS_Display_name_utf8() ✨. It works exactly like GSS_Display_name() (same input and output parameters and behavior), except that it outputs UTF-8 strings through its name_string output argument 🧚. GSS_Display_name_utf8() MUST NOT output ACE-encoded internationalized domain names πŸ™…β€β™€οΈ.

6. Application Protocol Examples 🎬

the following examples are not normative πŸ’…. They show how the authors picture two applications using domain-based names ✨.

6.1. NFSv4 Domain-Wide Namespace Root Server Discovery πŸ—ΊοΈ

work is ongoing to build domain-wide NFSv4 [RFC3530] filesystem namespaces 🌳. There's a single "root" with one or more servers (replicas), and multiple filesystems get glued into the namespace through "referrals" πŸ”—. Clients could then build a "global" namespace using the DNS domain hierarchy 🌐.

in this setup, clients would always know from context when they need to find the root servers for a given DNS domain 🧭. Root server discovery would use DNS SRV RR lookups, without DNSSEC where DNSSEC hasn't been deployed πŸ™ƒ.

when using RPCSEC_GSS [RFC2203] for security, NFSv4 clients would use domain-based names to make sure the servers named in the SRV RRs are actually authorized to be the NFSv4 root servers for the target domain πŸ”.

6.2. LDAP Server Discovery πŸ“‡

LDAP clients using the GSS-API through SASL would also benefit from domain-based names, protecting server discovery through insecure DNS SRV RR lookups, much like described above πŸ’–.

unlike NFSv4 clients, not all LDAP clients always know from context when they should use domain-based names πŸ˜…. That's because existing clients may use host-based naming to authenticate servers found through SRV RR lookups. Switching those clients to domain-based naming when domain-based acceptor credentials haven't been deployed to LDAP servers, or when LDAP servers haven't been modified to allow domain-based naming, would break interoperability πŸ’€. So this is a legacy server interoperability issue. Therefore, LDAP clients may require additional configuration at deployment time to enable (or disable) use of domain-based naming πŸ› οΈ.

Note: whether SASL [RFC4422] or its GSS-API bridges [RFC4752] [GS2] require updates in order to allow use of domain-based names is not relevant to the theory of how domain-based naming would protect LDAP clients' server discovery πŸ™„.

7. Security Considerations πŸ”

this section is SERIOUS, bestie 😭🚨

use of GSS-API domain-based names may not be negotiable by some GSS-API mechanisms, and some acceptors may not support GSS-API domain-based names πŸ’€. In those cases, initiators are left to fall back on host-based names, so initiators MUST also verify that the acceptor's host-based name is authorized to provide the given service for the domain the initiator wanted πŸ›‘.

the above security consideration also applies to all GSS-API initiators who lack support for domain-based service names 🫣.

also, as with all service names, the mere existence of a domain-based service name conveys meaningful information that initiators may use when making authorization decisions πŸ‘€. So administrators of distributed authentication services should be aware of how significant the service names are for which they create acceptor credentials 🧠. no cap, this matters a lot πŸ’œ.

8. References πŸ“š

8.1. Normative References πŸ“š

okay so these are the docs this spec literally can't function without, bestie 🫢 you have to read them to implement it

[RFC1035]  Mockapetris, P., "Domain names - implementation and
           specification", STD 13, RFC 1035, November 1987.

[RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
           Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC2743]  Linn, J., "Generic Security Service Application Program
           Interface Version 2, Update 1", RFC 2743, January 2000.

[RFC2782]  Gulbrandsen, A., Vixie, P., and L. Esibov, "A DNS RR for
           specifying the location of services (DNS SRV)", RFC 2782,
           February 2000.

[RFC2831]  Leach, P. and C. Newman, "Using Digest Authentication as a
           SASL Mechanism", RFC 2831, May 2000.

[RFC3490]  Faltstrom, P., Hoffman, P., and A. Costello,
           "Internationalizing Domain Names in Applications (IDNA)",
           RFC 3490, March 2003.

[RFC5234]  Crocker, D. and P. Overell, "Augmented BNF for Syntax
           Specifications: ABNF", STD 68, RFC 5234, January 2008.

8.2. Informative References 🌸

these are the extra reads that are super helpful for the vibe check but aren't strictly required to get the spec working ✨

[GS2]      Josefsson, S., "Using GSS-API Mechanisms in SASL: The GS2
           Mechanism Family", Work in Progress, October 2007.

[RFC2203]  Eisler, M., Chiu, A., and L. Ling, "RPCSEC_GSS Protocol
           Specification", RFC 2203, September 1997.

[RFC2606]  Eastlake, D. and A. Panitz, "Reserved Top Level DNS
           Names", BCP 32, RFC 2606, June 1999.

[RFC3530]  Shepler, S., Callaghan, B., Robinson, D., Thurlow, R.,
           Beame, C., Eisler, M., and D. Noveck, "Network File System
           (NFS) version 4 Protocol", RFC 3530, April 2003.

[RFC4033]  Arends, R., Austein, R., Larson, M., Massey, D., and S.
           Rose, "DNS Security Introduction and Requirements",
           RFC 4033, March 2005.

[RFC4422]  Melnikov, A. and K. Zeilenga, "Simple Authentication and
           Security Layer (SASL)", RFC 4422, June 2006.

[RFC4752]  Melnikov, A., "The Kerberos V5 ("GSSAPI") Simple
           Authentication and Security Layer (SASL) Mechanism",
           RFC 4752, November 2006.

Authors' Addresses πŸ’…

meet the people who wrote this πŸ¦‹ you can email them if you're curious

Nicolas Williams
Sun Microsystems
5300 Riata Trace Ct.
Austin, TX  78727
US

EMail: Nicolas.Williams@sun.com


Alexey Melnikov
Isode Ltd.
5 Castle Business Village,
36 Station Road
Hampton, Middlesex  TW12 2BX
United Kingdom

EMail: Alexey.Melnikov@isode.com

Copyright (C) The IETF Trust (2008).

this document is subject to the rights, licenses and restrictions in BCP 78, and except as set forth there, the authors keep all their rights πŸŽ€

this document and the info in it are provided on an "AS IS" basis, and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 😭

Intellectual Property πŸ¦‹

the IETF doesn't take a side on whether any IP rights might apply to the tech in this doc, or whether you could get a license for it, and it hasn't done any independent digging to find out either πŸ™ˆ if you want the procedures for rights in RFCs, check out BCP 78 and BCP 79.

copies of IPR disclosures made to the IETF Secretariat, plus any assurances of licenses, or the results of an attempt to get a general license or permission for implementers or users to use those proprietary rights, can be found in the IETF on-line IPR repository at http://www.ietf.org/ipr.

the IETF also invites anyone interested to flag any copyrights, patents, patent applications, or other proprietary rights that might cover technology needed to implement this standard. send that info to the IETF at ietf-ipr@ietf.org 🫢

πŸ“¦ where this page comes from