{"action":"created","issue":{"url":"https://api.github.com/repos/minio/minio/issues/6546","repository_url":"https://api.github.com/repos/minio/minio","labels_url":"https://api.github.com/repos/minio/minio/issues/6546/labels{/name}","comments_url":"https://api.github.com/repos/minio/minio/issues/6546/comments","events_url":"https://api.github.com/repos/minio/minio/issues/6546/events","html_url":"https://github.com/minio/minio/issues/6546","id":365134908,"node_id":"MDU6SXNzdWUzNjUxMzQ5MDg=","number":6546,"title":"presignedGetObject's url return SignatureDoesNotMatch error","user":{"login":"xie-qianyue","id":5229533,"node_id":"MDQ6VXNlcjUyMjk1MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5229533?v=4","gravatar_id":"","url":"https://api.github.com/users/xie-qianyue","html_url":"https://github.com/xie-qianyue","followers_url":"https://api.github.com/users/xie-qianyue/followers","following_url":"https://api.github.com/users/xie-qianyue/following{/other_user}","gists_url":"https://api.github.com/users/xie-qianyue/gists{/gist_id}","starred_url":"https://api.github.com/users/xie-qianyue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xie-qianyue/subscriptions","organizations_url":"https://api.github.com/users/xie-qianyue/orgs","repos_url":"https://api.github.com/users/xie-qianyue/repos","events_url":"https://api.github.com/users/xie-qianyue/events{/privacy}","received_events_url":"https://api.github.com/users/xie-qianyue/received_events","type":"User","site_admin":false},"labels":[{"id":399254082,"node_id":"MDU6TGFiZWwzOTkyNTQwODI=","url":"https://api.github.com/repos/minio/minio/labels/community","name":"community","color":"006b75","default":false},{"id":574010253,"node_id":"MDU6TGFiZWw1NzQwMTAyNTM=","url":"https://api.github.com/repos/minio/minio/labels/priority:%20medium","name":"priority: medium","color":"fbca04","default":false},{"id":643968487,"node_id":"MDU6TGFiZWw2NDM5Njg0ODc=","url":"https://api.github.com/repos/minio/minio/labels/triage","name":"triage","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"sinhaashish","id":13465383,"node_id":"MDQ6VXNlcjEzNDY1Mzgz","avatar_url":"https://avatars2.githubusercontent.com/u/13465383?v=4","gravatar_id":"","url":"https://api.github.com/users/sinhaashish","html_url":"https://github.com/sinhaashish","followers_url":"https://api.github.com/users/sinhaashish/followers","following_url":"https://api.github.com/users/sinhaashish/following{/other_user}","gists_url":"https://api.github.com/users/sinhaashish/gists{/gist_id}","starred_url":"https://api.github.com/users/sinhaashish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinhaashish/subscriptions","organizations_url":"https://api.github.com/users/sinhaashish/orgs","repos_url":"https://api.github.com/users/sinhaashish/repos","events_url":"https://api.github.com/users/sinhaashish/events{/privacy}","received_events_url":"https://api.github.com/users/sinhaashish/received_events","type":"User","site_admin":false},"assignees":[{"login":"sinhaashish","id":13465383,"node_id":"MDQ6VXNlcjEzNDY1Mzgz","avatar_url":"https://avatars2.githubusercontent.com/u/13465383?v=4","gravatar_id":"","url":"https://api.github.com/users/sinhaashish","html_url":"https://github.com/sinhaashish","followers_url":"https://api.github.com/users/sinhaashish/followers","following_url":"https://api.github.com/users/sinhaashish/following{/other_user}","gists_url":"https://api.github.com/users/sinhaashish/gists{/gist_id}","starred_url":"https://api.github.com/users/sinhaashish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinhaashish/subscriptions","organizations_url":"https://api.github.com/users/sinhaashish/orgs","repos_url":"https://api.github.com/users/sinhaashish/repos","events_url":"https://api.github.com/users/sinhaashish/events{/privacy}","received_events_url":"https://api.github.com/users/sinhaashish/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/minio/minio/milestones/15","html_url":"https://github.com/minio/minio/milestone/15","labels_url":"https://api.github.com/repos/minio/minio/milestones/15/labels","id":2426553,"node_id":"MDk6TWlsZXN0b25lMjQyNjU1Mw==","number":15,"title":"Next Release","description":" Rolling releases","creator":{"login":"deekoder","id":1700901,"node_id":"MDQ6VXNlcjE3MDA5MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/1700901?v=4","gravatar_id":"","url":"https://api.github.com/users/deekoder","html_url":"https://github.com/deekoder","followers_url":"https://api.github.com/users/deekoder/followers","following_url":"https://api.github.com/users/deekoder/following{/other_user}","gists_url":"https://api.github.com/users/deekoder/gists{/gist_id}","starred_url":"https://api.github.com/users/deekoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deekoder/subscriptions","organizations_url":"https://api.github.com/users/deekoder/orgs","repos_url":"https://api.github.com/users/deekoder/repos","events_url":"https://api.github.com/users/deekoder/events{/privacy}","received_events_url":"https://api.github.com/users/deekoder/received_events","type":"User","site_admin":false},"open_issues":66,"closed_issues":718,"state":"open","created_at":"2017-04-01T00:36:55Z","updated_at":"2018-10-03T06:08:17Z","due_on":"2018-10-31T07:00:00Z","closed_at":null},"comments":2,"created_at":"2018-09-29T14:01:33Z","updated_at":"2018-10-03T14:04:47Z","closed_at":null,"author_association":"NONE","body":"<!--- Provide a general summary of the issue in the Title above -->\r\nWe call minio-js method `presignedGetObject` to get an url, but this url return SignatureDoesNotMatch error.\r\n\r\nWe deploy minio in docker swarm, with other services in the swarm. We have a NGINX in front of all the service. We have followed this document: https://docs.minio.io/docs/setup-nginx-proxy-with-minio to configure NGINX.\r\n\r\nWe have tested a standalone minio, which I means running on `docker run` (without NGINX), NO error and we can get the object.\r\n\r\nSo I believe that the problem is some wrong with the setting of our NGINX. But it seems to be Ok. Here is our NGINX config of the related part:\r\n```\r\nserver {\r\n\r\n   # other config\r\n\r\n    location ^~ /dash/store/ {\r\n      rewrite /dash/store/(.*) /$1 break;\r\n      # proxy_buffering off;\r\n      proxy_set_header Host $http_host;\r\n      proxy_set_header X-Forwarded-For $remote_addr;\r\n      proxy_pass http://store/;\r\n    }\r\n}\r\n```\r\n\r\nAlso, I have got the log of minio:\r\n```\r\n[REQUEST (objectAPIHandlers).GetObjectHandler-fm] [153822814.263614] [2018-09-29 13:35:42 +0000]              \r\nGET /yd-bucket/1538225940080890052.jpg?response-content-disposition=attachment%3B%20filename%3D1538225940080890052.jpg&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=PJ99D7K3OAFS732PS1PZ%2F20180929%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180929T125900Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=5fd82ce3c2a70cecf58408451da4114412c629ae6d05b3577285fa1a9ffab310\r\nHost: 10.240.193.107                                                                                          \r\nCache-Control: max-age=0                                                                                      \r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8                 \r\nX-Forwarded-For: 10.255.0.2                                                                                   \r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36\r\nAccept-Encoding: gzip, deflate, br                                                                            \r\nAccept-Language: en,fr;q=0.9,zh-CN;q=0.8,zh;q=0.7                                                             \r\nCookie: SESSION_YOUDATA=######; SESSION_YOUDATA.sig=######; YDNESIO=######; io=######\r\nConnection: close                                                                                             \r\nUpgrade-Insecure-Requests: 1 \r\n\r\n<BODY>                                                                                                                                                                                                                                                                        \r\n                                                                                                                                                                                                                                                                              \r\n[RESPONSE] [153822814.263614] [2018-09-29 13:35:42 +0000]                                                                                                                                                                                                                     \r\n403 Forbidden                                                                                                                                                                                                                                                                 \r\nVary: Origin                                                                                                                                                                                                                                                                  \r\nX-Xss-Protection: 1; mode=block                                                                                                                                                                                                                                               \r\nContent-Security-Policy: block-all-mixed-content                                                                                                                                                                                                                              \r\nX-Amz-Request-Id: 1558E2588954F47F                                                                                                                                                                                                                                            \r\nServer: Minio/RELEASE.2018-09-12T18-49-56Z (linux; amd64)                                                                                                                   \r\nAccept-Ranges: bytes                                                                                                                                                        \r\nContent-Type: application/xml                                                                                                                                               \r\n                                                                                                                                                                            \r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>                                                                                                                                      \r\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Resource>/yd-bucket/1538225940080890052.jpg</Resource><RequestId>1558E2588954F47F</RequestId><HostId>3L137</HostId></Error>\r\n                                                                                                                                                                                                                                                                              \r\n[REQUEST github.com/minio/minio/cmd/rpc.(*Server).ServeHTTP-fm] [153822815.516133] [2018-09-29 13:35:55 +0000]                                                                                                                                                                \r\nPOST /minio/storage/mnt/disk1                                                                                                                                                                                                                                                 \r\nHost: store1:9000                                                                                                                                                                                                                                                             \r\nUser-Agent: Go-http-client/1.1                                                                                                                                                                                                                                                \r\nContent-Length: 432                                                                                                                                                                                                                                                           \r\nContent-Type:\r\n\r\n<BODY>\r\n```\r\n\r\n## Expected Behavior\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\nReturn the object.\r\n\r\n## Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\nReturn SignatureDoesNotMatch  error.\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug. Include code to reproduce, if relevant -->\r\n1. call minio-js `presignedGetObject` to get an url\r\n2. start a request with this url in the browser\r\n3.\r\n4.\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\n\r\n## Regression\r\n<!-- Is this issue a regression? (Yes / No) -->\r\n<!-- If Yes, optionally please include minio version or commit id or PR# that caused this regression, if you have these details. -->\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Version used (`minio version`): RELEASE.2018-09-12T18-49-56Z@sha256:6be2d16\r\n* Environment name and version (e.g. nginx 1.9.1): nginx 1.13.10\r\n* Server type and version:\r\n* Operating System and version (`uname -a`):\r\n* Link to your project:\r\n"},"comment":{"url":"https://api.github.com/repos/minio/minio/issues/comments/426649979","html_url":"https://github.com/minio/minio/issues/6546#issuecomment-426649979","issue_url":"https://api.github.com/repos/minio/minio/issues/6546","id":426649979,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjY0OTk3OQ==","user":{"login":"xie-qianyue","id":5229533,"node_id":"MDQ6VXNlcjUyMjk1MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5229533?v=4","gravatar_id":"","url":"https://api.github.com/users/xie-qianyue","html_url":"https://github.com/xie-qianyue","followers_url":"https://api.github.com/users/xie-qianyue/followers","following_url":"https://api.github.com/users/xie-qianyue/following{/other_user}","gists_url":"https://api.github.com/users/xie-qianyue/gists{/gist_id}","starred_url":"https://api.github.com/users/xie-qianyue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xie-qianyue/subscriptions","organizations_url":"https://api.github.com/users/xie-qianyue/orgs","repos_url":"https://api.github.com/users/xie-qianyue/repos","events_url":"https://api.github.com/users/xie-qianyue/events{/privacy}","received_events_url":"https://api.github.com/users/xie-qianyue/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T14:04:47Z","updated_at":"2018-10-03T14:04:47Z","author_association":"NONE","body":"Hello @harshavardhana, I pasted the client code in the previous response. Could you look at it and give me some advice? Is it the SSL problem?"}}
{"actor":{"display_login":"xie-qianyue"}}