Include <com_err.h>
[heimdal.git] / doc / standardisation / draft-ietf-kitten-gssapi-v3-guide-to-00.txt
blob98da42e876219c17712783b4027e8d3b92cd4710
3 NETWORK WORKING GROUP                                        N. Williams
4 Internet-Draft                                                       Sun
5 Expires: July 26, 2005                                  January 25, 2005
8                          Guide to the GSS-APIv3
9               draft-ietf-kitten-gssapi-v3-guide-to-00.txt
11 Status of this Memo
13    By submitting this Internet-Draft, I certify that any applicable
14    patent or other IPR claims of which I am aware have been disclosed,
15    and any of which I become aware will be disclosed, in accordance with
16    RFC 3668.
18    Internet-Drafts are working documents of the Internet Engineering
19    Task Force (IETF), its areas, and its working groups.  Note that
20    other groups may also distribute working documents as
21    Internet-Drafts.
23    Internet-Drafts are draft documents valid for a maximum of six months
24    and may be updated, replaced, or obsoleted by other documents at any
25    time.  It is inappropriate to use Internet-Drafts as reference
26    material or to cite them other than as "work in progress."
28    The list of current Internet-Drafts can be accessed at
29    http://www.ietf.org/ietf/1id-abstracts.txt.
31    The list of Internet-Draft Shadow Directories can be accessed at
32    http://www.ietf.org/shadow.html.
34    This Internet-Draft will expire on July 26, 2005.
36 Copyright Notice
38    Copyright (C) The Internet Society (2005).  All Rights Reserved.
40 Abstract
42    Extensions to the GSS-APIv2 are needed for a number of reasons.  This
43    documents describes the extensions being proposed, the resons,
44    possible future directions, and portability, IANA and security
45    considerations.  This document does not define any protocol or
46    interface and is purely informational.
55 Williams                 Expires July 26, 2005                  [Page 1]
57 Internet-Draft           Guide to the GSS-APIv3             January 2005
60 Table of Contents
62    1.  Conventions used in this document  . . . . . . . . . . . . . .  3
63    2.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  4
64    3.  A Pseudo-Mechanism OID for the GSS-API Itself  . . . . . . . .  5
65    4.  Mechanism Attribute Inquiry Facilities . . . . . . . . . . . .  6
66    5.  Security Context Extensibility Extensions  . . . . . . . . . .  7
67    6.  Credential Extensibility Extensions  . . . . . . . . . . . . .  8
68    7.  Credential Export/Import . . . . . . . . . . . . . . . . . . .  9
69    8.  GSS_Store_cred() . . . . . . . . . . . . . . . . . . . . . . . 10
70    9.  Pseudo-Mechanism Stacking  . . . . . . . . . . . . . . . . . . 11
71    10. Naming Extensions  . . . . . . . . . . . . . . . . . . . . . . 12
72    11. Additional Name Types  . . . . . . . . . . . . . . . . . . . . 13
73    12. GSS_Pseudo_random()  . . . . . . . . . . . . . . . . . . . . . 14
74    13. Channel Bindings Specifications  . . . . . . . . . . . . . . . 15
75    14. Semantic and Miscallaneous Extensions  . . . . . . . . . . . . 16
76    15. Portability Considerations . . . . . . . . . . . . . . . . . . 17
77    16. IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 18
78    17. Security Considerations  . . . . . . . . . . . . . . . . . . . 19
79    18. Normative  . . . . . . . . . . . . . . . . . . . . . . . . . . 19
80        Author's Address . . . . . . . . . . . . . . . . . . . . . . . 19
81        Intellectual Property and Copyright Statements . . . . . . . . 20
111 Williams                 Expires July 26, 2005                  [Page 2]
113 Internet-Draft           Guide to the GSS-APIv3             January 2005
116 1.  Conventions used in this document
118    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
119    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
120    document are to be interpreted as described in [RFC2119].
167 Williams                 Expires July 26, 2005                  [Page 3]
169 Internet-Draft           Guide to the GSS-APIv3             January 2005
172 2.  Introduction
174    [NOTE: the references section is current fairly empty; the various
175    KITTEN WG work items will be added to this I-D in a subsequent
176    revision.]
178    Since the advent of the GSS-APIv2 it has come to be used in a number
179    of Internet (and other) protocols and a number of implementations
180    exist.  In that time implementors and protocol designers have come to
181    understand both, the GSS-API's strengths, and its shortcommings; we
182    believe now that a number of extensions to the GSS-API are needed.
183    Here these proposed extensions, forming what we may call the GSS-API
184    version 3, are described at a high-level.;
186    Some of these extensions are intended to facilitate further
187    extensions, so that further major revisions to the GSS-API may not be
188    necessary.  Others are intended to fill voids in the the GSS-APIv2.
190    The extensions being proposed are:
191       A pseudo-mechanism OID for the GSS-API itself
192       Mechanism attribute inquiry facilities
193       Security context extensibility extensions
194       Credential extensibility extensions
195       Credential export/import
196       GSS_Store_cred(), for making delegated credentials available for
197       acquisition
198       Pseudo-mechanism stacking
199       Naming extensions, to facilitate authorization by identifiers
200       other than names
201       Additional name types, specifically domain-based naming
202       A pseudo-random function interface
203       Channel bindings specifications
204       Semantic extensions relating to thread- and/or fork-safety
205       [Have I missed anything?  I have a feeling I have.  Re-keying?]
206       ...
208    Additionally, because we foresee future minor extensions, including,
209    specifically, extensions which may impact the various namespaces
210    associated with APIs (symbol names, constant values, class names,
211    etc...) we also propose the establishment of IANA registries for
212    these namespaces.
223 Williams                 Expires July 26, 2005                  [Page 4]
225 Internet-Draft           Guide to the GSS-APIv3             January 2005
228 3.  A Pseudo-Mechanism OID for the GSS-API Itself
230    A mechanism OID is assigned to identify and refer to the GSS-API
231    iself.  This is necessary to enable the use of extended inquiry
232    interfaces to inquire about features of a GSS-API implementation
233    specifically, apart from actual mechanisms.
235    But also, this OID is needed for better error handling, so that minor
236    status codes produced in generic contexts that lack a mechanism OID
237    can be distinguished from minor status codes for a "default"
238    mechanism and properly displayed.
279 Williams                 Expires July 26, 2005                  [Page 5]
281 Internet-Draft           Guide to the GSS-APIv3             January 2005
284 4.  Mechanism Attribute Inquiry Facilities
286    In the course of designing a pseudo-mechanism stacking facility, as
287    well as while considering the impact of all of these extensions on
288    portability, a need for interfaces through which to discover or
289    inquire by features provided by GSS-API mechanisms was discovered.
291    The proposed mechanism attribute inquiry interfaces consist of:
292       GSS_Inquire_mech_attrs_for_mech()
293       GSS_Indicate_mechs_by_mech_attrs()
294       GSS_Display_mech_attr()
296    These extensions facilitate portability by allowing GSS-APIv3
297    applications to discover the features provided by a given
298    implementation of the GSS-API or any mechanisms.  These extensions
299    are also useful in facilitating stackable pseudo-mechanisms.
335 Williams                 Expires July 26, 2005                  [Page 6]
337 Internet-Draft           Guide to the GSS-APIv3             January 2005
340 5.  Security Context Extensibility Extensions
342    In order to facilitate future security context options we introduce a
343    GSS_Create_sec_context() interface that creates a security context
344    object, for use with extensions and with GSS_Init_sec_context(),
345    GSS_Accept_sec_context(), and GSS_Inquire_sec_context().  Such
346    security contexts are in a non-established state until they are
347    established through the use of GSS_Init_sec_context() or
348    GSS_Accept_sec_context().
391 Williams                 Expires July 26, 2005                  [Page 7]
393 Internet-Draft           Guide to the GSS-APIv3             January 2005
396 6.  Credential Extensibility Extensions
398    In order to facilitate future extensions to GSS credentials we
399    introduce a GSS_Create_credential(), similar to
400    GSS_Create_sec_context(), interface that creates an "empty"
401    credential.
447 Williams                 Expires July 26, 2005                  [Page 8]
449 Internet-Draft           Guide to the GSS-APIv3             January 2005
452 7.  Credential Export/Import
454    To allow for passing of credentials between different "session
455    contexts," between different hosts, or for storage of post-dated
456    credentials, we introduce a credential export/import facility, much
457    like the security context export/import facility of the GSS-APIv2.
459    Together with credential extensibility and other extensions this
460    facility may allow for:
461       Credential delegation at any time
462       Post-dated credentials, and storage of the such for subsequent
463       use.
464       ...?
503 Williams                 Expires July 26, 2005                  [Page 9]
505 Internet-Draft           Guide to the GSS-APIv3             January 2005
508 8.  GSS_Store_cred()
510    This extension fills a void in the GSS-APIv2 where delegated
511    credentials could not be used except in the context of the same
512    process that received them.  With this extension acceptor
513    applications can now make delegated credentials available for use,
514    with GSS_Acquire_cred() et.  al., in other process contexts.
516    [Manipulation of "credential stores" is (may be?) out of scope for
517    this document.]
559 Williams                 Expires July 26, 2005                 [Page 10]
561 Internet-Draft           Guide to the GSS-APIv3             January 2005
564 9.  Pseudo-Mechanism Stacking
566    A number of pseudo-mechanisms are being proposed which are designed
567    to "stack" atop other mechanisms.  The possiblities are many,
568    including: a compression mechanism, a perfect forward security
569    mechanism, an many others.
571    The GSS-APIv2 only had concrete mechanisms and one pseudo-mechanism
572    (SPNEGO) available.  With this proposal the mechanism taxonomy is
573    quite expanded:
574       Concrete mechanisms (e.g., the Kerberos V mechanism)
575       Composite mechanisms (a concrete mechanism composed with one or
576       more stackable pseudo-mechanisms)
577       Stackable pseudo-mechanisms
578       Other pseudo-mechanisms (e.g., SPNEGO, the GSS-API itself)
580    Although composed mechanisms may be made available for use by
581    GSS-APIv2 applications without any further extensions, use of
582    stackable pseudo-mechanisms can complicate mechanism negotiation;
583    additionally, discovery of mechanisms appropriate for use in one or
584    another context would require hard-coding information about them in
585    GSS-APIv2 applications.  Extensions to the GSS-APIv2 could facilitate
586    use of composite.
588    The mechanism attribute inquiry facilities, together with the
589    forllowing additional interfaces, provide for a complete interface to
590    mechanism composition and for managing the complexity of mechanism
591    negotiation:
592       GSS_Compose_oid()
593       GSS_Decompose_oid()
594       GSS_Release_oid()
595       GSS_Indicate_negotiable_mechs()
596       GSS_Negotiate_mechs()
615 Williams                 Expires July 26, 2005                 [Page 11]
617 Internet-Draft           Guide to the GSS-APIv3             January 2005
620 10.  Naming Extensions
622    Some applications make use of exported names, as produced by
623    GSS_Export_name(), to create/manage/evaluate access control lists; we
624    call this name-based authorization.
626    Exported names typically encode names that are meant for display to
627    humans, not internal identifiers.
629    In practice this creates a number of problems.  E.g., the referential
630    integrity of such access control lists is hard to maintain as
631    principals are added, removed, renamed or old principal names reused.
633    Additionally, some mechanisms may lack a notion of a "canonical" name
634    for some or all of their principals.  Such mechanisms cannot be used
635    by applications that rely on name-based authorization.
637    <Describe the proposed extensions in this area.>
671 Williams                 Expires July 26, 2005                 [Page 12]
673 Internet-Draft           Guide to the GSS-APIv3             January 2005
676 11.  Additional Name Types
678    <Decribe domain-based names and the need for them.>
727 Williams                 Expires July 26, 2005                 [Page 13]
729 Internet-Draft           Guide to the GSS-APIv3             January 2005
732 12.  GSS_Pseudo_random()
734    <Decribe GSS_Pseudo_random() and the need for it.>
783 Williams                 Expires July 26, 2005                 [Page 14]
785 Internet-Draft           Guide to the GSS-APIv3             January 2005
788 13.  Channel Bindings Specifications
839 Williams                 Expires July 26, 2005                 [Page 15]
841 Internet-Draft           Guide to the GSS-APIv3             January 2005
844 14.  Semantic and Miscallaneous Extensions
846    The GSS-APIv2 specifications say nothing about the thread-safety,
847    much less the fork-safety, of the GSS-API.  Thread-safety and
848    fork-safety are, after all, platform- and/or language-specific
849    matters.  But as support for multi-threading spreads the matter of
850    thread-safety cannot be avoided.  The matter of fork-safety is
851    specific to platforms that provide a "fork()" function, or similar.
853    <describe the GSS-APIv3's thread-safety requirements>
855    <reference the portability considerations section>
895 Williams                 Expires July 26, 2005                 [Page 16]
897 Internet-Draft           Guide to the GSS-APIv3             January 2005
900 15.  Portability Considerations
902    The potential for additional generic, mechanism-specific, language
903    binding-specific and, most importantly, semantic extensions to the
904    GSS-APIv3 may create application portability problems.  The mechanism
905    attribute inquiry facilities of the GSS-APIv3 and the
906    pseudo-mechanism OID for the GSS-API itself double as a run-time
907    facility for discovery of feature availability.  Run-time feature
908    discovery facilities, in turn, can be used at application build-time
909    as well by building small applications to display the available
910    features.
912    <...>
951 Williams                 Expires July 26, 2005                 [Page 17]
953 Internet-Draft           Guide to the GSS-APIv3             January 2005
956 16.  IANA Considerations
958    <Describe the namespace issues associated with future minor
959    extensions to the GSS-APIv3 and the IANA registries to be created to
960    cope with them.>
1007 Williams                 Expires July 26, 2005                 [Page 18]
1009 Internet-Draft           Guide to the GSS-APIv3             January 2005
1012 17.  Security Considerations
1014    <...>
1016 18  Normative
1018    [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
1019               Requirement Levels", BCP 14, RFC 2119, March 1997.
1021    [RFC2743]  Linn, J., "Generic Security Service Application Program
1022               Interface Version 2, Update 1", RFC 2743, January 2000.
1024    [RFC2744]  Wray, J., "Generic Security Service API Version 2 :
1025               C-bindings", RFC 2744, January 2000.
1028 Author's Address
1030    Nicolas Williams
1031    Sun Microsystems
1032    5300 Riata Trace Ct
1033    Austin, TX  78727
1034    US
1036    EMail: Nicolas.Williams@sun.com
1063 Williams                 Expires July 26, 2005                 [Page 19]
1065 Internet-Draft           Guide to the GSS-APIv3             January 2005
1068 Intellectual Property Statement
1070    The IETF takes no position regarding the validity or scope of any
1071    Intellectual Property Rights or other rights that might be claimed to
1072    pertain to the implementation or use of the technology described in
1073    this document or the extent to which any license under such rights
1074    might or might not be available; nor does it represent that it has
1075    made any independent effort to identify any such rights.  Information
1076    on the procedures with respect to rights in RFC documents can be
1077    found in BCP 78 and BCP 79.
1079    Copies of IPR disclosures made to the IETF Secretariat and any
1080    assurances of licenses to be made available, or the result of an
1081    attempt made to obtain a general license or permission for the use of
1082    such proprietary rights by implementers or users of this
1083    specification can be obtained from the IETF on-line IPR repository at
1084    http://www.ietf.org/ipr.
1086    The IETF invites any interested party to bring to its attention any
1087    copyrights, patents or patent applications, or other proprietary
1088    rights that may cover technology that may be required to implement
1089    this standard.  Please address the information to the IETF at
1090    ietf-ipr@ietf.org.
1093 Disclaimer of Validity
1095    This document and the information contained herein are provided on an
1096    "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
1097    OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
1098    ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
1099    INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
1100    INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
1101    WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
1104 Copyright Statement
1106    Copyright (C) The Internet Society (2005).  This document is subject
1107    to the rights, licenses and restrictions contained in BCP 78, and
1108    except as set forth therein, the authors retain all their rights.
1111 Acknowledgment
1113    Funding for the RFC Editor function is currently provided by the
1114    Internet Society.
1119 Williams                 Expires July 26, 2005                 [Page 20]