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

Bazel-remote doesn't support Security Token Service (STS) authentication for S3 #490

Closed
JSGette opened this issue Oct 21, 2021 · 4 comments

Comments

@JSGette
Copy link

JSGette commented Oct 21, 2021

So I created an S3 bucket in AWS and all required policies. Bazel-remote is working when used within EC2 Instance with attached policy. But if I am trying to run bazel-remote locally with credentials configured in ~/.aws/credentials I am getting 408 Request Timeout even if I use aws sts --profile PROFILE_NAME get-caller-identity. I also tried to set a profile via environment variable (export AWS_PROFILE=PROFILE_NAME), it didn't have any effect.

@mostynb
Copy link
Collaborator

mostynb commented Oct 21, 2021

Hi, bazel-remote doesn't use ~/.aws/ configuration files - you would need to create a bazel remote config file and specify the account details there. There's a commented example in the readme file.

@JSGette
Copy link
Author

JSGette commented Oct 21, 2021

The thing is I can't pass access_key_id and secret_access_key, it's just not enough, I need to use STS instead of IAM in order to work with S3 bucket since we're using federated accounts.

@mostynb mostynb changed the title Bazel-remote doesn't support AWS_PROFILE Bazel-remote doesn't support Security Token Service (STS) authentication for S3 Oct 21, 2021
@mambon2
Copy link

mambon2 commented Dec 2, 2021

@justfalter @mostynb I was reading this quote from aws aws/aws-cli#4982 (comment)
In it they state the following:

As of now, all AWS SDKs except C++ support the credentials from SSO login.

Is this true for this goapp? If so, which authentication method should we use to leverage sso login (instead of credentials file)

@mostynb
Copy link
Collaborator

mostynb commented Sep 1, 2022

I think there are details on how to do this over here: #493 (comment)

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

3 participants