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

Add AWS workload federation support #186

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

weaversam8
Copy link

Fixes #185.

  • Adds a new Goth.AWS module which handles constructing a signed AWS request
    • (added ExAws as a dependency for signing these headers)
  • Extends Goth.Token to defer to Goth.AWS when it receives a credential_source with environment_id set to aws1
  • Adds a new test to validate the above behaviour

@weaversam8
Copy link
Author

My most recent commit also extends all workload federation so that scopes can be passed when requesting a token. Previously, only the default scope would be passed.

@sekiyama58
Copy link
Contributor

sekiyama58 commented Feb 27, 2025

Thanks for your work! If you could support IMDSv2 (with the config file generated by gcloud iam workload-identity-pools create-cred-config --aws --enable-imdsv2 option) that would be great.
It would also be nice if ex_aws dependency could be optional for those who don't use aws federation.

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

Successfully merging this pull request may close these issues.

Missing support for AWS Workload Federation
2 participants