7762
INFORMATIONAL
Initial Assignment for the Content Security Policy Directives Registry
Authors: M. West
Date: January 2016
Working Group: NON WORKING GROUP
Stream: IETF
Abstract
This document establishes an Internet Assigned Number Authority (IANA) registry for Content Security Policy directives and populates that registry with the directives defined in the Content Security Policy Level 2 specification.
RFC 7762
INFORMATIONAL
Internet Engineering Task Force (IETF) M. West
Request for Comments: 7762 Google, Inc
Category: Informational January 2016
ISSN: 2070-1721
<span class="h1">Initial Assignment for the Content Security Policy Directives Registry</span>
Abstract
This document establishes an Internet Assigned Number Authority
(IANA) registry for Content Security Policy directives and populates
that registry with the directives defined in the Content Security
Policy Level 2 specification.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for informational purposes.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Not all documents
approved by the IESG are a candidate for any level of Internet
Standard; see <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="https://www.rfc-editor.org/info/rfc7762">http://www.rfc-editor.org/info/rfc7762</a>.
Copyright Notice
Copyright (c) 2016 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
<span class="grey">West Informational [Page 1]</span>
<span id="page-2" ></span>
<span class="grey"><a href="./rfc7762">RFC 7762</a> Content Security Policy Registry Assignments January 2016</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-3">3</a>. Use of the Registry . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-4">4</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-4.1">4.1</a>. Content Security Policy Directives Registry . . . . . . . <a href="#page-3">3</a>
4.2. Registration Policy for Content Security Policy
Directives . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-5">5</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6">6</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-6.1">6.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-6.2">6.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Content Security Policy (CSP) specification [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] defines a
mechanism that web developers can use to control the resources that a
particular page can fetch or execute, as well as a number of
additional security-relevant policy decisions.
The policy language specified in that document consists of an
extensible set of "directives", each of which controls a specific
resource type or policy decision. This specification establishes a
registry to ensure that extensions to CSP are listed and
standardized.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</span>
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 [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Use of the Registry</span>
Content Security Policy directives must be documented in a readily
available public specification in order to be registered by IANA.
This documentation MUST fully explain the syntax, intended usage, and
semantics of the directive. The intent of this requirement is to
assure interoperable independent implementations, and to prevent
accidental namespace collisions between implementations of dissimilar
features.
Documents defining new Content Security Policy directives MUST
register them with IANA, as described in <a href="#section-3">Section 3</a>. The IANA
<span class="grey">West Informational [Page 2]</span>
<span id="page-3" ></span>
<span class="grey"><a href="./rfc7762">RFC 7762</a> Content Security Policy Registry Assignments January 2016</span>
registration policy for such parameters is "Specification Required"
[<a href="./rfc5226" title="">RFC5226</a>] and is further discussed in <a href="#section-3.2">Section 3.2</a>.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. IANA Considerations</span>
This specification creates a new top-level IANA registry named
"Content Security Policy Directives".
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Content Security Policy Directives Registry</span>
New Content Security Policy directives, and updates to existing
directives, MUST be registered with IANA.
When registering a new Content Security Policy directive, the
following information MUST be provided:
o The directive's name, an ASCII string conforming to the
"directive-name" rule specified in Section 4.1 of [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>]. The ABNF
[<a href="./rfc5234" title=""Augmented BNF for Syntax Specifications: ABNF"">RFC5234</a>] is as follows:
directive-name = 1*( ALPHA / DIGIT / "-" )
o A reference to the readily available public specification defining
the new directive's syntax, usage, and semantics.
The following table contains the initial values for this registry:
+-----------------+-----------+
| Directive Name | Reference |
+-----------------+-----------+
| base-uri | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| child-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| connect-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| default-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| font-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| form-action | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| frame-ancestors | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| frame-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| img-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| media-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| object-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| plugin-types | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| report-uri | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| sandbox | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| script-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
| style-src | [<a href="#ref-CSP" title=""Content Security Policy Level 2"">CSP</a>] |
+-----------------+-----------+
<span class="grey">West Informational [Page 3]</span>
<span id="page-4" ></span>
<span class="grey"><a href="./rfc7762">RFC 7762</a> Content Security Policy Registry Assignments January 2016</span>
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Registration Policy for Content Security Policy Directives</span>
The registration policy for Content Security Policy directives is
"Specification Required" [<a href="./rfc5226" title="">RFC5226</a>], which uses a designated expert to
review the specification.
When appointing an Expert (or Experts), the IESG SHOULD draw from the
W3C's security community, coordinating through the liaison.
The designated expert, when deliberating on whether to include a new
directive in the registry, SHOULD consider the following criteria.
This is not an exhaustive list, but representative of the issues to
consider when rendering a decision:
o Content Security Policy is a restrictive feature, which allows web
developers to deny themselves access to resources and APIs that
would otherwise be available. Deploying Content Security Policy
is, therefore, a strict reduction in risk. The expert SHOULD
carefully consider whether proposed directives would violate this
property.
o Granular directives are valuable, but the expert SHOULD strive to
strike a reasonable balance between providing developers with all
the knobs and switches possible and providing only those with
known security implications.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
The registry in this document does not in itself have security
implications. The directives specified, however, certainly do. The
documents referenced when registering new directives MUST contain
detailed security and privacy considerations sections, and SHOULD
contain usage information that informs web developers as to the
directive's expected implementation.
<span class="grey">West Informational [Page 4]</span>
<span id="page-5" ></span>
<span class="grey"><a href="./rfc7762">RFC 7762</a> Content Security Policy Registry Assignments January 2016</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. References</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Normative References</span>
[<a id="ref-CSP">CSP</a>] West, M., Barth, A., and D. Veditz, "Content Security
Policy Level 2", July 2015, <<a href="https://www.w3.org/TR/CSP2">https://www.w3.org/TR/CSP2</a>>.
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
DOI 10.17487/RFC2119, March 1997,
<<a href="https://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC5226">RFC5226</a>] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a>,
DOI 10.17487/RFC5226, May 2008,
<<a href="https://www.rfc-editor.org/info/rfc5226">http://www.rfc-editor.org/info/rfc5226</a>>.
[<a id="ref-RFC5234">RFC5234</a>] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, <a href="./rfc5234">RFC 5234</a>,
DOI 10.17487/RFC5234, January 2008,
<<a href="https://www.rfc-editor.org/info/rfc5234">http://www.rfc-editor.org/info/rfc5234</a>>.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Informative References</span>
[<a id="ref-RFC5341">RFC5341</a>] Jennings, C. and V. Gurbani, "The Internet Assigned Number
Authority (IANA) tel Uniform Resource Identifier (URI)
Parameter Registry", <a href="./rfc5341">RFC 5341</a>, DOI 10.17487/RFC5341,
September 2008, <<a href="https://www.rfc-editor.org/info/rfc5341">http://www.rfc-editor.org/info/rfc5341</a>>.
Acknowledgements
Much of this document's structure comes from [<a href="./rfc5341" title=""The Internet Assigned Number Authority (IANA) tel Uniform Resource Identifier (URI) Parameter Registry"">RFC5341</a>]. Thank you to
Cullen Jennings and Vijay K. Gurbani for giving me a reasonable
template to work within and to Barry Leiba for his helpful commentary
and suggestions.
Author's Address
Mike West
Google, Inc
Email: [email protected]
URI: <a href="https://mikewest.org/">https://mikewest.org/</a>
West Informational [Page 5]
Annotations
Select text to annotate