Coder Social home page Coder Social logo

Comments (6)

hasheddan avatar hasheddan commented on July 19, 2024 1

What I think is missing really is a way to annotate a provider-aws pod with proper annotation as that is done via ControllerConfig and Provider abstractions.

@martin-ducar-gd as you mention, this can be done with a ControllerConfig (previously you could only annotate the Deployment and ServiceAccount, but the coming v1.1.0 Crossplane release will update ControllerConfig to have a spec.metadata field to annotate the Pod. You can see an example of doing that here.). I believe tou can fall back on default credential chain in provider-aws with source: None in your AWS ProviderConfig. Does this fit your use case?

from provider-aws.

martin-ducar-gd avatar martin-ducar-gd commented on July 19, 2024 1

Oh great that seems like exactly what might enable that functionality. Thank you @hasheddan

from provider-aws.

mfacenet avatar mfacenet commented on July 19, 2024

Of note, I believe the standard configuration flow for AWS Clients is as follows:
IniConfig
EnvFallback
IAMFallback
Fail

from provider-aws.

prasek avatar prasek commented on July 19, 2024

@hasheddan is this fixed now with #126?

from provider-aws.

hasheddan avatar hasheddan commented on July 19, 2024

@prasek yep! Thanks for flagging 👍

from provider-aws.

martin-ducar-gd avatar martin-ducar-gd commented on July 19, 2024

A question here. I see the Service account role support has been added that means you can annotate service account and that will in the end bring ENV variables like AWS_ROLE_ARN and AWS_WEB_IDENTITY_TOKEN_FILE to provider-aws pod which it will use to authenticate to AWS API. Which is good but it becomes really hard to do cross account assume. EKS webidentity is somehow fixed to that account where the EKS cluster lives. And unless I'm mistaken, assuming role in another account is done as 2 step process (Call assume role of another account inside pod explicitly leveraging existing Service account role). What was I think instead meant here is with tools like kube2iam kiam its much more simpler to cross account assume without POD even knowing it all you do is add annotation to pod: iam.amazonaws.com/role: "arn:aws:iam::<account_id>:role/<role_name>" and if your kiam or kube2iam is able to assume that role it will give it to provider-aws via redirecting metadata call to 169.254.169.254... all it needs to do is use aws-sdk with fallback to ec2rolecreds. What I think is missing really is a way to annotate a provider-aws pod with proper annotation as that is done via ControllerConfig and Provider abstractions. Is there any way to define that now or really its needed to modify the crossplane logic?

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.