Untitled diff

생성일 비교 결과 만료 없음
142 삭제
566 행
136 추가
583 행
INTERNET DRAFT Michiel B. de Jong
INTERNET DRAFT Michiel B. de Jong
Document: draft-dejong-remotestorage-00 (independent)
Document: draft-dejong-remotestorage-01 (independent)
F. Kooman
F. Kooman
Intended Status: Proposed Standard SURFnet
Intended Status: Proposed Standard SURFnet
Expires: 8 June 2013 5 December 2012
Expires: 10 December 2013 8 June 2013
remotestorage
remoteStorage
Abstract
Abstract
This draft describes a protocol by which client-side applications,
This draft describes a protocol by which client-side applications,
running inside a web browser, can communicate with a data storage
running inside a web browser, can communicate with a data storage
server that is hosted on a different domain name. This way, the
server that is hosted on a different domain name. This way, the
provider of a web application need not also play the role of data
provider of a web application need not also play the role of data
storage provider. The protocol supports storing, retrieving, and
storage provider. The protocol supports storing, retrieving, and
removing individual documents, as well as listing the contents of an
removing individual documents, as well as listing the contents of an
individual directory, and access control is based on bearer tokens.
individual directory, and access control is based on bearer tokens.
Status of this Memo
Status of this Memo
This Internet-Draft is submitted in full conformance with the
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/.
Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 9 June 2013.
This Internet-Draft will expire on 10 December 2013.
Copyright Notice
Copyright Notice
Copyright (c) 2012 IETF Trust and the persons identified as the
Copyright (c) 2013 IETF Trust and the persons identified as the
document authors. All rights reserved.
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
described in the Simplified BSD License.
de Jong [Page 1]
de Jong [Page 1]
Internet-Draft remotestorage December 2012
Internet-Draft remoteStorage June 2013
Table of Contents
Table of Contents
1. Introduction...................................................2
1. Introduction...................................................2
2. Terminology....................................................2
2. Terminology....................................................2
3. Storage model..................................................3
3. Storage model..................................................3
4. Requests.......................................................3
4. Requests.......................................................3
5. Response codes.................................................4
5. Response codes.................................................4
6. Versioning.....................................................5
6. Versioning.....................................................5
7. CORS headers...................................................5
7. CORS headers...................................................5
8. Session description............................................5
8. Session description............................................5
9. Bearer tokens and access control...............................6
9. Bearer tokens and access control...............................6
10. Application-first bearer token issuance........................6
10. Application-first bearer token issuance........................6
11. Storage-first bearer token issuance............................7
11. Storage-first bearer token issuance............................7
12. Security Considerations........................................8
12. Security Considerations........................................8
13. IANA Considerations............................................9
13. IANA Considerations............................................9
14. Acknowledgments................................................9
14. Acknowledgments................................................9
15. References.....................................................9
15. References.....................................................9
15.1. Normative References......................................9
15.1. Normative References......................................9
15.2. Informative References....................................9
15.2. Informative References....................................9
16. Authors' addresses............................................10
16. Authors' addresses............................................10
1. Introduction
1. Introduction
Many services for data storage are available over the internet. This
Many services for data storage are available over the internet. This
specification describes a vendor-independent interface for such
specification describes a vendor-independent interface for such
services. It is based on https, CORS and bearer tokens. The
services. It is based on https, CORS and bearer tokens. The
metaphor for addressing data on the storage is that of folders
metaphor for addressing data on the storage is that of folders
containing documents and subfolders. The actions the interface
containing documents and subfolders. The actions the interface
exposes are:
exposes are:
* GET a folder: retrieve the names and current versions of the
* GET a folder: retrieve the names and current versions of the
documents and subfolders currently contained by the folder
documents and subfolders currently contained by the folder
* GET a document: retrieve its content type, current version,
* GET a document: retrieve its content type, current version,
and contents
and contents
* PUT a document: store a new version, its content type, and
* PUT a document: store a new version, its content type, and
contents, conditional on the current version
contents, conditional on the current version
* DELETE a document: remove it from the storage, conditional on
* DELETE a document: remove it from the storage, conditional on
the current version
the current version