You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/06/21 14:30:58 UTC
[jira] [Commented] (LIBCLOUD-606) Can not connect to AWS with IAM
role temporary credentials
[ https://issues.apache.org/jira/browse/LIBCLOUD-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341872#comment-15341872 ]
ASF GitHub Bot commented on LIBCLOUD-606:
-----------------------------------------
GitHub user alejandrogr opened a pull request:
https://github.com/apache/libcloud/pull/820
LIBCLOUD-606 Can not connect to AWS with IAM role temporary credentials
## Connect to AWS using temporary IAM role credentials
### Description
Can not connect to AWS with IAM role temporary credentials. Doesn't seem like the supplied token is in the header
From: [LIBCLOUD-606](https://issues.apache.org/jira/browse/LIBCLOUD-606)
### Status
done, ready for review
### Checklist (tick everything that applies)
- [ ] [Code linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide) (required, can be done after the PR checks)
- [ ] Documentation
- [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ] [ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes) (required for bigger changes)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/alejandrogr/libcloud trunk
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/820.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #820
----
commit a82e675db69e49e3196a7c1b1d7292171f63f947
Author: Alejandro González <al...@intelygenz.com>
Date: 2016-06-21T14:10:56Z
LIBCLOUD-606 Can not connect to AWS with IAM role temporary credentials
----
> Can not connect to AWS with IAM role temporary credentials
> ----------------------------------------------------------
>
> Key: LIBCLOUD-606
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-606
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Reporter: Katriel Traum
> Priority: Minor
> Attachments: ec2-route53-token-auth-support.patch, ec2-unbreak-token-auth.patch, test_iam.py
>
>
> Can not connect to AWS with IAM role temporary credentials.
> Using key, secret and token, with debug enabled, I get the following headers:
> # -------- begin 44002048 request ----------
> curl -i -X GET -H 'Host: ec2.eu-west-1.amazonaws.com' -H 'X-LC-Request-ID: 44002048' -H 'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.15.1 (Amazon EC2 (eu-west-1)) ' --compress 'https://ec2.eu-west-1.amazonaws.com:443/?SignatureVersion=2&AWSAccessKeyId=<REDACTED>&Timestamp=2014-08-21T14%3A45%3A19Z&SignatureMethod=HmacSHA256&Version=2013-10-15&Signature=<REDACTED>&Action=DescribeInstances'
> # -------- begin 44002048:44002696 response ----------
> HTTP/1.1 401 Unauthorized^M
> Transfer-Encoding: chunked^M
> Date: Thu, 21 Aug 2014 14:45:19 GMT^M
> Server: AmazonEC2^M
> ^M
> fe^M
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>AuthFailure</Code><Message>AWS was not able to validate the provided access credentials</Message></Error></Errors><RequestID>5032a22a-e2d2-45f6-be8f-92d3294d1aec</RequestID></Response>^M
> 0^M
> # -------- end 44002048:44002696 response ----------
> It doesn't seem like the supplied token is in the header
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)