Merge "Update TempURL docs to include containers"

This commit is contained in:
Jenkins 2015-02-12 22:32:07 +00:00 committed by Gerrit Code Review
commit f2e2326b5f
2 changed files with 7 additions and 8 deletions

View File

@ -165,7 +165,8 @@ signature includes these elements from the form:
is set to ``600`` seconds into the future. is set to ``600`` seconds into the future.
- The secret key. Set as the ``X-Account-Meta-Temp-URL-Key`` header - The secret key. Set as the ``X-Account-Meta-Temp-URL-Key`` header
value. value for accounts or ``X-Container-Meta-Temp-URL-Key`` header
value for containers. See :ref:`secret_keys` for more information.
The following example code generates a signature for use with form The following example code generates a signature for use with form
**POST**: **POST**:
@ -214,4 +215,3 @@ This example uses the **swift-form-signature** script to compute the
-F signature=35129416ebda2f1a21b3c2b8939850dfc63d8f43 \ -F signature=35129416ebda2f1a21b3c2b8939850dfc63d8f43 \
-F redirect=https://example.com/done.html \ -F redirect=https://example.com/done.html \
-F file=@flower.jpg -F file=@flower.jpg

View File

@ -36,7 +36,7 @@ parameters:
.. code:: .. code::
https://swift-cluster.example.com/v1/my_account/container/object https://swift-cluster.example.com/v1/my_account/container/object
?temp_url_sig=da39a3ee5e6b4b0d3255bfef95601890afd80709 ?temp_url_sig=da39a3ee5e6b4b0d3255bfef95601890afd80709
&temp_url_expires=1323479485 &temp_url_expires=1323479485
&filename=My+Test+File.pdf &filename=My+Test+File.pdf
@ -69,9 +69,8 @@ Secret Keys
The cryptographic signature used in Temporary URLs and also in The cryptographic signature used in Temporary URLs and also in
:doc:`form_post_middleware` uses a secret key. Object Storage allows you to :doc:`form_post_middleware` uses a secret key. Object Storage allows you to
store four secret key values. Two are stored at the account level and two store two secret key values per account, and two per container. When validating
are stored at the container level. When validating a request, a request, Object Storage checks signatures against all keys. Using two keys at
Object Storage checks signatures against all keys. Using two keys at
each level enables key rotation without invalidating existing temporary URLs. each level enables key rotation without invalidating existing temporary URLs.
To set the keys at the account level, set one or both of the following To set the keys at the account level, set one or both of the following
@ -113,11 +112,11 @@ signature includes these elements:
- The allowed method. Typically, **GET** or **PUT**. - The allowed method. Typically, **GET** or **PUT**.
- Expiry time. In the example for the HMAC-SHA1 signature for temporary - Expiry time. In the example for the HMAC-SHA1 signature for temporary
URLs below, the expiry time is set to ``86400`` seconds (or 1 day) URLs below, the expiry time is set to ``86400`` seconds (or 1 day)
into the future. into the future.
- The path. Starting with ``/v1/`` onwards and including a container - The path. Starting with ``/v1/`` onwards and including a container
name and object. In the example below, the path is name and object. In the example below, the path is
``/v1/my_account/container/object``. Do not URL-encode the path at ``/v1/my_account/container/object``. Do not URL-encode the path at
this stage. this stage.