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

[FEATURE] Support for AssumeRoleWithWebIdentity for authentication #89

Open
yasirmohamed777 opened this issue Sep 29, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@yasirmohamed777
Copy link

Is your feature request related to a problem?

Working with the provider in CICD platform that provide support for AssumeRoleWithWebIdentity can be difficult when the provider does not support it. At the moment the provider uses assume role and if credentials OR profile is not provided, it fails with access denied

What solution would you like?

Implement support for AssumeRoleWithWebIdentity in the provider. An example of how would that look like is the AWS provider:

provider "aws" {
  assume_role_with_web_identity {
    role_arn                = "arn:aws:iam::123456789012:role/ROLE_NAME"
    session_name            = "SESSION_NAME"
    web_identity_token_file = "/Users/tf_user/secrets/web-identity-token"
  }
}

What alternatives have you considered?

Hacking up a solution in the CICD where it authenticate to AWS and creates a profile before running terraform

Do you have any additional context?

No

@yasirmohamed777 yasirmohamed777 added enhancement New feature or request untriaged labels Sep 29, 2023
@prudhvigodithi prudhvigodithi added good first issue Good for newcomers and removed untriaged labels Oct 9, 2023
@prudhvigodithi
Copy link
Member

Hey @yasirmohamed777 thanks for creating this support issue, please take a look and see if you can contribute to this enhancement, also adding @rblcoder @afrodidact @premkirank.
Thank you

@prudhvigodithi
Copy link
Member

Adding @Anirudh-1612

@billabongrob
Copy link

Has anyone found a workaround on this? Would love to be able to provide our developers with as much of a production ready estate but this limits us to doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: 📦 Backlog
Development

No branches or pull requests

3 participants