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

[ECS] [request]: Session tags for task roles #2426

Open
okhaliavka opened this issue Sep 19, 2024 · 0 comments
Open

[ECS] [request]: Session tags for task roles #2426

okhaliavka opened this issue Sep 19, 2024 · 0 comments
Labels
Proposed Community submitted issue

Comments

@okhaliavka
Copy link

okhaliavka commented Sep 19, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request
Make it possible to provide session tags to use when assuming the task IAM role.

Which service(s) is this request for?

  • ECS/Fargate
  • EKS?

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
We're trying to build a multi-tenant system that involves running ECS tasks on behalf of tenants. Those tasks should only have access to S3 data of their tenant. Creating an IAM role per tenant is not feasible as it quickly runs into IAM quotas, so we'd like to use ABAC to control S3 access. However, it is not currently possible in ECS, because we can't provide session tags for ECS to use when assuming the task role.

Are you currently working around this issue?
Our "scheduler" assumes the task role before running an ECS task and passes the resulting credentials through environment variables. As a result, we also struggle with 1 hour hard limit on duration of chained sessions.

It would be much easier if there was a way to specify session tags on task definitions and/or in RunTask request, or at least a way to forward session tags from the principal that runs the task.
Similarly, it would be nice if IRSA in EKS supported specifying session tags through service account and/or pod annotations, for all the same reasons.

Finally, I believe it would also be useful in Lambda, although IIUC it's the wrong place to raise feature requests for Lambda.

Additional context
Looks like this is possible in Sagemaker.

@okhaliavka okhaliavka added the Proposed Community submitted issue label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Proposed Community submitted issue
Projects
None yet
Development

No branches or pull requests

1 participant