You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However I got 403 Forbidden and an error returned SignatureDoesNotMatch.
I have tracked it down a bit further and it it related to the ?versioning parameter. If I set it to ?versioning= then it works. AWS CLI seems to be doing that automatically, expanding versioning into versioning=.
I’m not an expert on this by any means and I would be happy to close this as ‘just how it is’. Using the ‘?versioning’ URL without the = sign should work, but seems to require that key=value normalisation in the authentication. Using the query string without the equals appears to match the AWS docs too as far as I can tell.
Since the work around is so simple this doesn’t stop me doing anything I want to do with curl.
I don't think curl should correct or modify the URL. It is meant to work with exactly what is provided.
But if the sigv4-code can act is if there is a trailing = (even if there isn't) when it generates the signature and that works, then I think that is probably the right direction.
Hello, Same issue for me, i'm able to get by adding the "=", but i cannot PUT versioning SignatureDoesNotMatch . @hjmallon are you able to PUT something?
I did this
I expected the following
With the proper setup of
BUCKET
,REGION
,aws_access_key_id
,aws_secret_access_key
andaws_session_token
I expect200 OK
and data. See https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.htmlHowever I got
403 Forbidden
and an error returnedSignatureDoesNotMatch
.I have tracked it down a bit further and it it related to the
?versioning
parameter. If I set it to?versioning=
then it works. AWS CLI seems to be doing that automatically, expandingversioning
intoversioning=
.So this works
curl/libcurl version
operating system
Darwin hostname 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: