cli53 hangs when provided with expired credentials
nielslaukens opened this issue · comments
Issue type
- Bug report
cli53 version (cli53 --version)
cli53 version 0.8.9
OS / Platform
macOS; cli53 installed with homebrew
Steps to reproduce
- Get temporary credentials (e.g. via assume-role or get-session-token)
- Verify that
cli53 list
works with these credentials (I export them in cli53's environment) - wait until the credentials expire
- Run
cli53 list
again. It appears to hang.
Expected behaviour
Fail, preferably with an explicit error message
Actual behaviour
cli53 keeps doing the below request over and over again
2017/09/01 16:34:34 DEBUG: Request route53/ListHostedZones Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET http://route53.amazonaws.com/2013-04-01/hostedzone HTTP/1.1
Host: route53.amazonaws.com
User-Agent: aws-sdk-go/1.4.4 (go1.8.3; darwin; amd64)
Authorization: <expired credentials omitted>
X-Amz-Date: 20170901T143434Z
X-Amz-Security-Token: <omitted>
Accept-Encoding: gzip
-----------------------------------------------------
2017/09/01 16:34:35 DEBUG: Response route53/ListHostedZones Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 403 Forbidden
Content-Length: 297
Content-Type: text/xml
Date: Fri, 01 Sep 2017 14:34:30 GMT
X-Amzn-Requestid: aa212ba0-8f22-11e7-801f-3f477d54ee03
-----------------------------------------------------
Have you checked if the documentation has the information you require?
Yes, doesn't mention it
Could you contribute a fix or help testing with this issue?
I have no experience in Go, so I won't be able to contribute a fix. I am willing to help testing this issue.
Believe this to be resolved now.