Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credentials provided by credential_process don't work #293

Open
wfaulk opened this issue May 7, 2020 · 2 comments
Open

Credentials provided by credential_process don't work #293

wfaulk opened this issue May 7, 2020 · 2 comments

Comments

@wfaulk
Copy link

wfaulk commented May 7, 2020

Issue type

  • Bug report

cli53 version (cli53 --version)

cli53 version master
(brew says 0.8.15)

OS / Platform

MacOS 10.13.6 / brew

Steps to reproduce

Create an aws config that looks like this:

[profile cp]
credential_process = /tmp/aws-creds
region = us-east-1

Create an executable script, /tmp/aws-creds, that looks like this:

cat <<EOF
{
  "Version":1,
  "AccessKeyId":"AKID1234567890",
  "SecretAccessKey":"MY-SECRET-KEY"
}
EOF

run cli53 l --profile cp

Expected behaviour

a list of zones in the account referenced by the credentials in the script

Actual behaviour

Hangs indefinitely

% cli53 l --profile cp -d
DEBUG: Request ec2metadata/GetMetadata Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /latest/meta-data/iam/security-credentials HTTP/1.1
Host: 169.254.169.254
User-Agent: aws-sdk-go/1.13.34 (go1.12.1; darwin; amd64)
Accept-Encoding: gzip


-----------------------------------------------------
DEBUG: Request ec2metadata/GetMetadata Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /latest/meta-data/iam/security-credentials HTTP/1.1
Host: 169.254.169.254
User-Agent: aws-sdk-go/1.13.34 (go1.12.1; darwin; amd64)
Accept-Encoding: gzip


-----------------------------------------------------
DEBUG: Request ec2metadata/GetMetadata Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /latest/meta-data/iam/security-credentials HTTP/1.1
Host: 169.254.169.254
User-Agent: aws-sdk-go/1.13.34 (go1.12.1; darwin; amd64)
Accept-Encoding: gzip


-----------------------------------------------------
DEBUG: Request ec2metadata/GetMetadata Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /latest/meta-data/iam/security-credentials HTTP/1.1
Host: 169.254.169.254
User-Agent: aws-sdk-go/1.13.34 (go1.12.1; darwin; amd64)
Accept-Encoding: gzip


-----------------------------------------------------

Have you checked if the documentation has the information you require?

yes

Could you contribute a fix or help testing with this issue?

I'm happy to help with testing.

@wfaulk
Copy link
Author

wfaulk commented May 7, 2020

It's important to note that the config/script works fine with the Amazon-provided aws cli.

@SeanSith
Copy link

SeanSith commented Jan 3, 2022

I would expect that the fact that credentials provided through aws sso login would likely fall under this issue, too. I have similar failing results when attempting to use credentials provided through the AWSCLI SSO setup.

SeanSith pushed a commit to SeanSith/cli53 that referenced this issue Jan 3, 2022
Addresses the AWS SSO issue mentioned in barnybug#293, as v1.37.0 added support for AWS SDK
SeanSith pushed a commit to SeanSith/cli53 that referenced this issue Jan 3, 2022
Addresses the AWS SSO issue mentioned in barnybug#293, as v1.37.0 added support for AWS SSO.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants