SignatureDoesNotMatch when port is 80
See original GitHub issueI’ve discovered an issue with using the minio dotnet client when connected to a minio server over port 80.
The signature generated by the client sets host header using the following code:
SetHostHeader(request, client.BaseUrl.Host + ":" + client.BaseUrl.Port);
This is V4Authenicator.cs: line 114
The issue is, the server doesn’t seem to include the port number with host resulting in a signature mismatch.
I’ve verify buy running the dot-net samples code and removing port number from SetHostHeader. The signature mismatch issue goes away.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
SignatureDoesNotMatch error if port 80 is used and ...
":80" is optional as it is the default port for a normal s3 service. As you can see in the related issue in...
Read more >AWS CLI listing S3 buckets gives SignatureDoesNotMatch ...
I am using AWS CLI on Ubuntu 16.04 LTS, I am trying to list all buckets. In aws configure I have input the...
Read more >[ceph-users] RGW AWS4 SignatureDoesNotMatch when ...
Hi! I get the error "<Error> <code> SignatureDoesNotMatch" when I used presigned url with endpoint port != 80 and != 443. For example,...
Read more >SignatureDoesNotMatch error when running cpd-cli oadp ...
A SignatureDoesNotMatch error occurs when you run certain cpd-cli oadp commands. ... omit any default ports in the s3Url of the object store...
Read more >SignatureDoesNotMatch exception when initializing Open ...
I have installed Open edX via Tutor using nightly branch for both tutor and the minio plugin but am running into an issue...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@poornas I’ve faced the same issue, but connecting to a different s3 server. For my work I need to use Yandex S3, which works great with official Java tools and python boto. But MinIO client failes to authenticated with it for this reason. It seems that the server implementation does not expect default :80 port to be present in the host header.
In my case it seems to be a bug in the server implementation. Still other tools work fine with it since they do not include the :80 port in the host header. Do you think it can be beneficial to also not include default port, as more popular tools do, to provide better support for different S3 server implementations? If so, I can make a PR.
@Maximkaaa Just to note: yandex team fixed it, now it works fine.