Coder Social home page Coder Social logo

Comments (5)

negz avatar negz commented on August 19, 2024

Thanks for raising this issue @phanimullapudi!

https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html

It sounds like what you want to do is leverage the above EKS functionality such that Crossplane can use an IAM role associated with a Kubernetes ServiceAccount, instead of using an IAM role whose access token is stored in a Kubernetes Secret?

It's possible we could enable this by:

  1. Adding a field to the existing AWS provider that instructs the stack-aws binary to fall back to using web identity tokens per aws/aws-sdk-go#2667.
  2. Update all managed resource controllers to respect said field.
  3. Documenting how to setup the stack-aws deployment to use service account based IAM roles ala https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-cni-walkthrough.html (and/or automating it in our Helm chart).

from provider-aws.

negz avatar negz commented on August 19, 2024

This is very closely related to #110.

from provider-aws.

phanimullapudi avatar phanimullapudi commented on August 19, 2024

Our current EKS stack is configured to use IAM roles using OIDC. The mentioned above way looks reasonable for me.

from provider-aws.

negz avatar negz commented on August 19, 2024

Cross linking another related issue: crossplane/crossplane-runtime#101

from provider-aws.

hasheddan avatar hasheddan commented on August 19, 2024

Providing an update here. We currently use aws-sdk-go-v2 across stack-aws and unfortunately this functionality has not been implemented on v2: aws/aws-sdk-go-v2#475

I have successfully deployed stack-aws in an EKS cluster using IAM roles for ServiceAccount, and that is working well, it is just consuming the credentials that is a bit more of a hurdle. I believe we can manually assume the role using the sts client, but I will also investigate if I can provide a simple upstream fix to the issue referenced above.

from provider-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.