hevinhsu commented on PR #9294:
URL: https://github.com/apache/ozone/pull/9294#issuecomment-3531839438

   During the implementation process, I noticed that Ozone doesn’t seem to 
validate mismatched values between signed headers and signed query parameters.
   According to the [AWS 
spec](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html):
   
   >  If you add a signed header that is also a signed query parameter, and 
they differ in value, you will receive an `InvalidRequest` error as the input 
is conflicting.
   
   To clarify my understanding: Ozone currently relies only on the query 
parameters for signature validation and does not compare them against the 
corresponding request headers. Because of this, a mismatch would never trigger 
an `InvalidRequest` error in the current implementation.
   
   Please let me know if I’m missing something.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to