]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: AWS4 auth support for positive content-length
authorJavier M. Mellid <jmunhoz@igalia.com>
Mon, 21 Sep 2015 17:09:22 +0000 (19:09 +0200)
committerJavier M. Mellid <jmunhoz@igalia.com>
Sat, 13 Feb 2016 12:31:07 +0000 (12:31 +0000)
commit3210cd8a280029f22623084b1f52d8dd7cfd9a01
tree0b5d0faa62334c2a16070d8b51394c51e5a38ad6
parent466cb81cfc286208cb0e68f556a76e2795ed590c
rgw: AWS4 auth support for positive content-length

Handle AWS4 auth on requests with positive content-length. It splits the
auth process along several steps to process the body content on the fly
instead of reading the whole body in memory. After that, it completes
the delayed AWS4 auth properly.

Requests with content-length <= 0 are validated as usual. They don't
require any kind of completion.

Requests with content-length > 0 use a streaming approach together with
a completion step.

Fixes: #10333
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
src/rgw/rgw_auth_s3.cc
src/rgw/rgw_auth_s3.h
src/rgw/rgw_client_io.cc
src/rgw/rgw_client_io.h
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_op.cc
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h