Skip to content

Commit b9a03d1

Browse files
committed
rgw: DeleteObject supports sigv4 with Transfer-Encoding: chunked
we don't expect a request body for DeleteObject, so hadn't implemented its check for the payload hash against the x-amz-content-sha256 header Fixes: https://tracker.ceph.com/issues/71607 Signed-off-by: Casey Bodley <[email protected]>
1 parent eed3a64 commit b9a03d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rgw/rgw_rest_s3.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3741,7 +3741,9 @@ int RGWDeleteObj_ObjStore_S3::get_params(optional_yield y)
37413741
bypass_governance_mode = boost::algorithm::iequals(bypass_gov_decoded, "true");
37423742
}
37433743

3744-
return 0;
3744+
// we're not reading any request body, so this should just match
3745+
// the sha256 hash of an empty buffer
3746+
return do_aws4_auth_completion();
37453747
}
37463748

37473749
void RGWDeleteObj_ObjStore_S3::send_response()
@@ -6447,6 +6449,7 @@ AWSGeneralAbstractor::get_auth_data_v4(const req_state* const s,
64476449
case RGW_OP_INIT_MULTIPART: // in case that Init Multipart uses CHUNK encoding
64486450
case RGW_OP_COMPLETE_MULTIPART:
64496451
case RGW_OP_SET_BUCKET_VERSIONING:
6452+
case RGW_OP_DELETE_OBJ:
64506453
case RGW_OP_DELETE_MULTI_OBJ:
64516454
case RGW_OP_ADMIN_SET_METADATA:
64526455
case RGW_OP_SYNC_DATALOG_NOTIFY:

0 commit comments

Comments
 (0)