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

Pass assumed role credentials to CodeBuild build #4

Open
aidansteele opened this issue Oct 19, 2020 · 0 comments
Open

Pass assumed role credentials to CodeBuild build #4

aidansteele opened this issue Oct 19, 2020 · 0 comments
Labels

Comments

@aidansteele
Copy link
Contributor

Right now the actions operate with the role assigned to the CodeBuild project. This isn't the end of the world, but I would like to experiment with the idea of having the Fargate task assume a role and then pass it to CodeBuild as environment variables. Thoughts:

  • Obviously needs to be encrypted. As it's sensitive, maybe it should wait on the improvements in Lock down KMS-encrypted data #3.
  • Then the IAM role for CodeBuild only needs kms:Decrypt and the CloudWatch logs permissions. VPC ones too.
  • When assuming the role, we can pass in a wealth of context as role session tags and the role session name. Things like
    • Repository
    • Workflow
    • Job name
    • "Actor" (who triggered it)
    • Branch
    • Commit SHA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant