Repository navigation
Conversation
V4 Signatures can be used with "Transfer-Encoding: chunked", which is not the same as AWS V4 CHUNK encoding. TE:Chunked is not detected as empty payload in the present case, and worked correctly if the operation was already in the large switch statement. Other operations not in the switch statement were wrongly rejected as NotImplemented, when they certainly were (e.g. DeleteObject). TE:Chunked is important because it's a trivial transform from HTTP/2 framing, opening the door to easier HTTP/2 functionality. Signed-off-by: Robin H. Johnson <[email protected]>
| ldpp_dout(s, 10) << "ERROR: AWS4 completion for operation: " << s->op_type << ", NOT IMPLEMENTED" << dendl; | ||
| throw -ERR_NOT_IMPLEMENTED; |
There was a problem hiding this comment.
Other operations not in the switch statement were wrongly rejected as NotImplemented, when they certainly were (e.g. DeleteObject)
my interpretation of this switch statement is that it tracks the ops that call do_aws4_auth_completion(). we reject other ops where we haven't implemented this v4 auth completion
there are a bunch of s3 ops which we don't expect to contain a request body, and rgw replies after reading just their headers. maybe we could use a separate switch statement to track those, and perform their 'auth completion' here by comparing their exp_payload_hash against the empty hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
an alternative is to add explicit calls to do_aws4_auth_completion() to more ops, so we can mark them as 'supported' in the existing switch
There was a problem hiding this comment.
an alternative is to add explicit calls to
do_aws4_auth_completion()to more ops, so we can mark them as 'supported' in the existing switch
i raised #64569 as an example that adds coverage for the s3 DeleteObject op used in the reproducers from https://tracker.ceph.com/issues/71607#note-1
we don't have a general solution for this, but can address operations on a case-by-case basis
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
Any progress on it? |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
@robbat2 do you still intend to work on this? |
|
@LenzGr somebody else should go fix it; afaik it's still a bug, but I don't get much time for Ceph anymore |
Got it, no worries. Would you mind adding an issue to the bug tracker about this? |
V4 Signatures can be used with "Transfer-Encoding: chunked", which is
not the same as AWS V4 CHUNK encoding.
TE:Chunked is not detected as empty payload in the present case, and
worked correctly if the operation was already in the large switch
statement. Other operations not in the switch statement were wrongly
rejected as NotImplemented, when they certainly were (e.g.
DeleteObject). TE:Chunked is important because it's a trivial transform
from HTTP/2 framing, opening the door to easier HTTP/2 functionality.
If this passes s3-tests, it should be backported to all active versions.
Signed-off-by: Robin H. Johnson [email protected]