Network Working GroupIndependent Submission I. Young, Ed.Internet-DraftRequest for Comments: 8409 IndependentIntended status:Category: Informational L. JohanssonExpires: August 4, 2018ISSN: 2070-1721 SUNET S. Cantor Shibboleth ConsortiumJanuary 31,August 2018 The Entity CategorySAMLSecurity Assertion Markup Language (SAML) Attribute Typesdraft-young-entity-category-07Abstract This document describesatwo SAML entityattribute whichattributes: one that can be used to assign category membership semantics to anentity,entity anda second attributeanother for use in claiming interoperation with or support for entities in such categories. This document is a product of the working group process of the Research and EducationFederationsFEDerations (REFEDS)Working Group process.group. Status of This Memo ThisInternet-Draftdocument issubmitted in full conformance withnot an Internet Standards Track specification; it is published for informational purposes. This is a contribution to theprovisionsRFC Series, independently ofBCP 78any other RFC stream. The RFC Editor has chosen to publish this document at its discretion andBCP 79. Internet-Draftsmakes no statement about its value for implementation or deployment. Documents approved for publication by the RFC Editor areworking documentsnot candidates for any level oftheInternetEngineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The listStandard; see Section 2 of RFC 7841. Information about the currentInternet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximumstatus ofsix monthsthis document, any errata, and how to provide feedback on it may beupdated, replaced, or obsoleted by other documentsobtained atany time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on August 4, 2018.https://www.rfc-editor.org/info/rfc8409. Copyright Notice Copyright (c) 2018 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Table of Contents 1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . 2....................................................3 1.1. REFEDS Document Process. . . . . . . . . . . . . . . . . 3....................................3 2. Notation and Conventions. . . . . . . . . . . . . . . . . . 3........................................4 3. Entity Category Attribute. . . . . . . . . . . . . . . . . . 4.......................................4 3.1. Syntax. . . . . . . . . . . . . . . . . . . . . . . . . 4.....................................................4 3.2. Semantics. . . . . . . . . . . . . . . . . . . . . . . . 4..................................................5 3.3. Entity Category Example. . . . . . . . . . . . . . . . . 6....................................6 4. Entity Category Support Attribute. . . . . . . . . . . . . . 6...............................7 4.1. Syntax. . . . . . . . . . . . . . . . . . . . . . . . . 6.....................................................7 4.2. Semantics. . . . . . . . . . . . . . . . . . . . . . . . 7..................................................7 4.3. Entity Category Support Example. . . . . . . . . . . . . 8............................9 5. IANA Considerations. . . . . . . . . . . . . . . . . . . . . 8.............................................9 6. Security Considerations. . . . . . . . . . . . . . . . . . . 8.........................................9 7. References. . . . . . . . . . . . . . . . . . . . . . . . . 10.....................................................11 7.1. Normative References. . . . . . . . . . . . . . . . . . 10......................................11 7.2. Informative References. . . . . . . . . . . . . . . . . 10 Appendix A.....................................11 Acknowledgements. . . . . . . . . . . . . . . . . . 11 Appendix B. Change Log (to be removed by RFC Editor before publication) . . . . . . . . . . . . . . . . . . . . 11 B.1. Since draft-young-entity-category-05 . . . . . . . . . . 11 B.2. Since draft-young-entity-category-04 . . . . . . . . . . 11 B.3. Since draft-young-entity-category-03 . . . . . . . . . . 11 B.4. Since draft-young-entity-category-02 . . . . . . . . . . 11 B.5. Since draft-young-entity-category-01 . . . . . . . . . . 12 B.6. Since draft-young-entity-category-00 . . . . . . . . . . 12 B.7. Since draft-macedir-entity-category . . . . . . . . . . . 13..................................................12 Authors' Addresses. . . . . . . . . . . . . . . . . . . . . . . 13................................................12 1. Introduction This document describes a SAMLattribute, referred to here asattribute called the "entity categoryattribute", valuesattribute". Values ofwhichthis attribute represent entity types or categories. When used with the SAML V2.0 Metadata Extension for Entity Attributes[SAML2MetadataAttr][SAML2MetadataAttr], each such entity category attribute value represents a claim that the entity thuslabelledlabeled meets the requirements of, and is asserted to be a member of, the indicated category. These category membership claims MAY be used by a relying party to provision policy for release of attributes from an identity provider, to influence user interface decisions such as those related to identity provider discovery, or for any other purpose. In general, the intended uses of any claim of membership in a given category will depend on the details of the category'sdefinition,definition and will often be included as part of that definition. Entity category attribute values areURIs, andURIs. Therefore, this documentthereforedoes not specify a controlled vocabulary for assigningentity category values. Category URIssuch values; they may be defined by any appropriate authority without any requirement for central registration. It is anticipated that other specifications may provide management and discovery mechanisms for entity category attribute values.A secondThis document also describes a SAMLattribute, referred to here asattribute called the "entity category supportattribute",attribute". This attribute contains URI valueswhichthat represent claims that an entity supports and/or interoperates with entities in a given category or categories. These values, defined in conjunction with specific entity category attribute values, provide entities in a category with the means to identify peer entities that wish to interact with them in a fashion described by the category specification. This document does not specify any valueseitherfor either the entity category attribute orforthe entity category support attribute. 1.1. REFEDS Document Process The Research and EducationFederationsFEDerations [REFEDS] group([REFEDS])is the voice that articulates the mutual needs of research and education identity federations worldwide. It aims to represent the requirements of research and education in the ever-growing space of access and identity management. From time totimetime, REFEDS willwish topublish a document in theInternetRFCseries.Series. Such documents will be published as part of theRFCIndependent SubmissionStreamstream [RFC4844];howeverhowever, the REFEDSworking group sign-offWorking Group sign- off process will have been followed for these documents, as described in the REFEDS Participant's Agreement [REFEDS.agreement]. This document is a product of the REFEDS Working Group process. 2. Notation and Conventions 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 inRFC 2119 [BCP14].BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. The notation "@example" is used as a shorthand for an XML attribute with attribute name "example". 3. Entity Category Attribute 3.1. Syntax Entity category attribute values MUST bevalidURIs. Such values are also referred to as "category URIs" in this document. It is RECOMMENDED that http:-scheme or https:-scheme URIs areused, andused; it is further RECOMMENDED thatan entitya category URI resolves to a human- readable document defining the category. Authorities defining entity categories MUST produce a specification of the entity category and SHOULD make arrangement for theentitycategory URI to resolve to the specification inhuman readablehuman-readable form. Authorities defining entity categories MAY use versioning ofentitycategory URIs whereappropriate, in which caseappropriate; if versioning is used, each version of the specification of the entity category SHOULD clearly indicate the latest version of theentitycategory URI (and hence of the specification). The specification SHOULD include a description of how the authority defining the entity category implements governance for the specificationin the case whenif the specificationmay beis updated. When used in SAML metadata or protocol elements, the entity category attribute MUST be encoded as a SAML 2.0 Attribute element with @NameFormat urn:oasis:names:tc:SAML:2.0:attrname-format:uri and @Name http://macedir.org/entity-category. A SAML entity is associated with one or more categories by including the Attribute element described here in the entity's metadata through use of the[SAML2MetadataAttr]metadataextension,extension defined inwhich[SAML2MetadataAttr]. In this extension, the Attribute element is contained within an mdattr:EntityAttributes element directly contained within an md:Extensions element directly contained within the entity's md:EntityDescriptor. The meaning of the entity category attribute isundefined bynot defined by this specification if it appears anywhere else within a metadatainstance,instance or within any other XML document. If the entity category attributeAttribute elementappears more than once in the metadata for an entity, relying parties SHOULD interpret the combined set of associated attribute valuesSHOULD be interpreted by relying partiesas if they all appeared together within a singleAttribute element.entity category attribute. 3.2. Semantics The presence of the entity category attribute within an entity's entity attributes represents a series of claims (one for each attribute value) that the entity is a member of each named category. The precise semantics of such a claim depend on the definition of the category itself. An entity may be claimed to be a member of more than one category. In this case, the entity is claimed to meet the requirements of each category independently unless otherwise specified by the category definitions themselves.The definition of the concept of a category isThis document intentionally does notaddressed in this document,define "category", in order to leaveitthe concept as general as possible. However, to be useful, category definitions SHOULD include the following as appropriate: o A definition of the authorities who may validly assert membership in the category. While membership in some categories may be self- asserted informally by an entity's owner, others may need to be validated by third parties such as the entity's home federation or other registrar. o A set of criteria by which an entity's membership in the category can be objectively assessed. o A definition of the processes by which valid authorities may determine that an entity meets the category's membership criteria. o A description of the anticipated uses for category membership by relying parties. o A statement indicating the applicability or otherwise of membership of the entity category to different SAML roledescriptors,descriptors and any protocol support restrictions that may be relevant. Entity categories SHOULD NOT be used to indicate the certification status of an entity regarding its conformance to the requirements of an identity assurance framework. The[SAML2IDAssuranceProfile]SAML extension defined in [SAML2IDAssuranceProfile] SHOULD be used for this purpose. If significant changes are made to a category definition, the new version of the category SHOULD be represented by a different category URI so that the old and new versions can be distinguished by a relying party. It is for this reason that authorities defining entity categories MAY employ some form of versioning forentitycategoryURI.URIs. When versioning isusedused, each version of the entity category MUST be treated as a separate URI. No ordering relation is definedoverfor entity categoryvalue URIs.attribute values. Entity category attributevalue URIsvalues MUST be treated as opaque strings for the purpose of comparison. In particular, if the specification defining the entity category relies on versioning of theentitycategory URI, a relying party MUST NOT assume any particular ordering between different versions of theentity category.category URI. Any order between versions MUST be spelled out in the specification. 3.3. Entity Category Example <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://service.example.com/entity"> <md:Extensions> <mdattr:EntityAttributes xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute"> <Attribute xmlns="urn:oasis:names:tc:SAML:2.0:assertion" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" Name="http://macedir.org/entity-category"> <AttributeValue >http://example.org/category/dog</AttributeValue> <AttributeValue>urn:oid:1.3.6.1.4.1.21829</AttributeValue> </Attribute> </mdattr:EntityAttributes> </md:Extensions> ... </md:EntityDescriptor> 4. Entity Category Support Attribute 4.1. Syntax Entity category support attribute values MUST be URIs. Such values are also referred to as "category support URIs" in this document. It is RECOMMENDED that http:-scheme or https:-scheme URLs areused, andused; it is further RECOMMENDED that each such value resolves to ahuman-readablehuman- readable document defining the value's semantics. A givenentitycategoryvalueURI MAY be associated with multiple category supportvaluesURIs in order to allow for multiple forms of support, participation, or interoperation with entities in the category. Theauthoritiyauthority defining theentitycategory URI andentitycategory supportvaluesURIs MUST clearly describe the relationship between (all versions of) theentitycategory URI and (all versions of) theentitycategory support URIs as applicable in the entity category specification. The entity category support attribute MUST be encoded as a SAML 2.0 Attribute element with @NameFormat urn:oasis:names:tc:SAML:2.0:attrname-format:uri and @Name http://macedir.org/entity-category-support. Claims that a SAML entity implements support for one or more categories are represented by including the Attribute element described here in the entity's metadata through use of the[SAML2MetadataAttr]metadataextension,extension defined inwhich[SAML2MetadataAttr]. In this extension, the Attribute element is contained within an mdattr:EntityAttributes element directly contained within an md:Extensions element directly contained within the entity's md:EntityDescriptor. The meaning of the entity category support attribute isundefinednot defined by this specification if it appears anywhere else within a metadatainstance,instance or within any other XML document. If the entity category support attributeAttribute elementappears more than once in the metadata for an entity, relying parties SHOULD interpret the combined set of associated attribute valuesSHOULD be interpreted by relying partiesas if they all appeared together within a singleAttribute element.entity category support attribute. 4.2. Semantics The presence of the entity category support attribute within an entity's entity attributes represents a series of claims (one for each attribute value) that the entity supports peer entities in a category in a particular fashion. The precise semantics of such a claim depend on the definition of the category supportidentifierURI itself. Category support claims will often be defined to beself- asserted.self-asserted. An entity may be claimed to support more than one category. In this case, the entity is claimed to meet the support requirements of each category independently unless otherwise specified by the category definitions themselves.The definition of the concept ofThis document intentionally does not define "support" for acategory is intentionally not addressed in this document,category, in order to leaveitthe concept as general as possible. It is assumed that entity category definitions MAY define one or more category supportvaluesURIs signifying particular definitions for "support" by peers as motivated by use cases arising from the definition of the category itself. A common case is expected to be the definition of a single category supportvalue whoseURI whose value is identical tothat defined forthe categoryitself.URI. If significant changes are made to a category support definition, the new version SHOULD be represented by a different category support URI so that the old and new versions can be distinguished by a relying party. It is for this reason that authorities defining entity categories support MAY employ some form of versioning. When versioning isusedused, each version of theentitycategory support URI MUST be treated as a separate URI. No ordering relation is definedoverfor entity categoryURIs.support attribute values. Entity categoryattributesupportvalue URIsattribute values MUST be treated as opaque strings for the purpose of comparison. In particular, if the specification defining theentitycategory supportvaluesURIs relies on versioning, a relying party MUST NOT assume any particular ordering between different versions of theentitycategory support URI. Any order between versions MUST be spelled out in the specification. 4.3. Entity Category Support Example <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://idp.example.edu/entity"> <md:Extensions> <mdattr:EntityAttributes xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute"> <Attribute xmlns="urn:oasis:names:tc:SAML:2.0:assertion" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" Name="http://macedir.org/entity-category-support"> <AttributeValue >http://example.org/category/dog/basic</AttributeValue> <AttributeValue >http://example.org/category/dog/advanced</AttributeValue> <AttributeValue>urn:oid:1.3.6.1.4.1.21829</AttributeValue> </Attribute> </mdattr:EntityAttributes> </md:Extensions> ... </md:EntityDescriptor> 5. IANA Considerations Thismemo includesdocument has norequest to IANA.IANA actions. 6. Security Considerations The presence of the entity category attribute within an entity's entity attributes represents a series of claims (one for each attribute value) that the entity is a member of the named categories. Before accepting and acting on such claims, any relying party needs to establish, at a level of assurance sufficient for the intended use, a chain of trust concluding that the claim is justified. Some of the elements in such a chain of trust might include: o The integrity of the metadata delivered to the relying party,asforexampleexample, as assured by a digital signature. o If the entity category attribute is carried within a signed assertion, the assertion itself must be evaluated. o The policies and procedures of the immediate source of themetadata;metadata, in particular, any procedures the immediate source has with regard to aggregation of metadata from other sources. o The policies and procedures implemented by agents along the publication path from the original metadataregistrar: thisregistrar. This may be determinedeitherby examination of the published procedures of each agent inturn,turn or may be simplified if the entity metadata includes publication path metadata in mdrpi:PublicationPath elements as described in[SAML2MetadataRPI] section 2.3.1.Section 2.3.1 of [SAML2MetadataRPI]. o The policies and procedures implemented by the original metadata registrar. The registrar's identity may be knownimplicitly,implicitly or may be determined from the entity metadata if it includes an mdrpi:RegistrationInfo element and corresponding @registrationAuthorityattributeas described in[SAML2MetadataRPI] section 2.1.1.Section 2.1.1 of [SAML2MetadataRPI]. o The definition of the categoryitself;itself, in particular, any statements it makes about whether membership of the category may beself-asserted,self-asserted or may only be asserted by particular authorities. Although entity category support attribute values will often be defined as self-asserted claims by the containing entity, the provenance of the metadata remains relevant to a relying party's decision to accept a claim of support as legitimate, and the specific definition of a support claim will influence the assurance required to act on it. The conclusion that a claim of category membership or support is justified and should be acted upon may require a determination of the origin of the claim. This may not be necessary if the immediate source of the metadata is trusted to such an extent that the trust calculation is essentially delegated to it. In many cases, a claim will be included in an entity's metadata by the original metadata registrar on behalf of the entity's owner, and the mdrpi:RegistrationInfo element's @registrationAuthorityattributeis available to carry the registrar's identity. However, any agent that is part of the chain of custody between the original registrar and the final relying party may have added,removedremoved, or transformed claims according to local policy. For example, an agent charged with redistributing metadata may remove claims it regards asuntrustworthy,untrustworthy or add otherswhichthat were not already present if they have value to its intended audience. 7. References 7.1. Normative References[BCP14][RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March1997.1997, <https://www.rfc-editor.org/info/rfc2119>. [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/info/rfc8174>. [SAML2MetadataAttr] Cantor, S., Ed., "SAML V2.0 Metadata Extension for EntityAttributes",Attributes Version 1.0", August 2009,<http://wiki.oasis-open.org/security/SAML2MetadataAttr>.<http://docs.oasis- open.org/security/saml/Post2.0/ sstc-metadata-attr-cs-01.pdf>. [SAML2MetadataRPI] La Joie, C., Ed., "SAML V2.0 Metadata Extensions for Registration and Publication Information Version 1.0", April 2012,<http://wiki.oasis-open.org/security/SAML2MetadataDRI>.<http://docs.oasis- open.org/security/saml/Post2.0/saml-metadata- rpi/v1.0/cs01/saml-metadata-rpi-v1.0-cs01.pdf>. 7.2. Informative References [REFEDS]Research"Research and EducationFederations, "REFEDS Home Page",FEDerations (REFEDS) Group", <http://www.refeds.org/>. [REFEDS.agreement] Research and Education Federations, "REFEDS Participant's Agreement", <https://refeds.org/about/refeds-participants-agreement>. [RFC4844] Daigle,L.L., Ed. and Internet Architecture Board, "The RFC Series and RFC Editor", RFC 4844, DOI 10.17487/RFC4844, July2007.2007, <https://www.rfc-editor.org/info/rfc4844>. [SAML2IDAssuranceProfile] Morgan, RL., Ed., Madsen, P., Ed., and S. Cantor, Ed., "SAML V2.0 Identity Assurance Profiles Version 1.0", November 2010,<https://wiki.oasis-open.org/security/ SAML2IDAssuranceProfile>. Appendix A.<http://docs.oasis- open.org/security/saml/Post2.0/ sstc-saml-assurance-profile-cs-01.pdf>. Acknowledgements This work has been a collaborative effort within the REFEDS and MACE- Dir communities. Special thanks to the following individuals (in no particular order): o RL 'Bob' Morgan o Ken Klingenstein o Keith Hazelton o Steven Olshansky o Mikael Linden o Nicole Harris o Tom ScavoAppendix B. Change Log (to be removed by RFC Editor before publication) B.1. Since draft-young-entity-category-05 Recommendation on versioning and language on requirements for entity category specification. B.2. Since draft-young-entity-category-04 No substantive changes. B.3. Since draft-young-entity-category-03 Additional improvements in response to IETF Gen-Art review: o Section 3.2: additional SHOULD language recommending that category definitions include applicability information for particular SAML role descriptors. o Section 3.2: added an informative reference to [SAML2IDAssuranceProfile] and language recommending its use over entity categories where appropriate. B.4. Since draft-young-entity-category-02 Fix link to the REFEDS Participant's Agreement [REFEDS.agreement]. Clarifications in response to IETF Gen-Art review: o Section 1: make explicit the fact that we don't specify any values of either attribute in this document. o Section 3.1, Section 4.1: clarify that it is possible for attribute values to appear within multiple Attribute elements, and that this SHOULD be regarded as equivalent to combining them within a single Attribute element. o Section 3.2, Section 4.2: clarify the expectation that categories are independent unless their definitions say otherwise. o Section 3.2, Section 4.2: If significant changes are made to a category definition, the new version of the category SHOULD be represented by a different category URI *so that the old and new versions can be distinguished by a relying party*. o Section 3.2, Section 4.2: *No ordering relation is defined over entity category value URIs.* Entity category attribute value URIs MUST be treated as opaque strings *for the purpose of comparison*. B.5. Since draft-young-entity-category-01 Changes from REFEDS consultation process: 1. Simplify title from "The Entity Category SAML Entity Metadata Attribute Types" to "The Entity Category SAML Attribute Types". 2. Clarify the use of [SAML2MetadataRPI] in Section 6 by indicating the elements and attributes to be used, and the sections of [SAML2MetadataRPI] in which they are defined. 3. Remove any implication that category and category support claims are necessarily being made "by" the entity itself. 4. Clarify that the origin of a category membership or support claim may not always be the original registrar. Grammar fix in Abstract. Change the reference anchor for the SAML [SAML2MetadataRPI] extension, as it now more commonly known as RPI than its original DRI abbreviation. B.6. Since draft-young-entity-category-00 Update affiliations for Leif Johansson and Scott Cantor. Remove authors from acknowledgements. Reorganize some of the introductory boilerplate sections. B.7. Since draft-macedir-entity-category Adopted as base for draft-young-entity-category-00. Changed ipr from "pre5378Trust200902" to "trust200902" and submission type from IETF to independent. Designate Ian Young as editor for this version. Set more general affiliation. Modernised reference to RFC 2119 [BCP14] and moved that reference to the introduction. Adjusted layout of examples so that they don't exceed the RFC standard line length. Minor typographical nits but (intentionally) no substantive content changes.Authors' Addresses Ian A. Young (editor) IndependentEMail:Email: ian@iay.org.uk Leif Johansson SUNETEMail:Email: leifj@sunet.se Scott Cantor Shibboleth ConsortiumEMail:Email: cantor.2@osu.edu