question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SignatureDoesNotMatch when port is 80

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Maximkaaacommented, Apr 24, 2020

@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.

0reactions
sergei66666commented, Jul 22, 2020

@Maximkaaa Just to note: yandex team fixed it, now it works fine.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found