leapp icon indicating copy to clipboard operation
leapp copied to clipboard

Maintain IAM Role Chained Configurations based on SSO Assumer session

Open cornevandersteen opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. We use SSO for our AWS organization (MSP), within this SSO organization we created AWS accounts as "service accounts". These service accounts are directly synced via the SSO integration with Leapp.

The service accounts have a trust with our customers own AWS-accounts via a Cross Account Sign-in role. We use the IAM Role Chained setup with an assumer session from one of our AWS Service Accounts.

Each time the SSO session is expired or synced, the configured sessions via the IAM Role Chained - assumer session are removed. Probably due to a link between these chained session configuration and the sso

Describe the solution you'd like Don't remove the IAM Role Chained based on SSO accounts

Describe alternatives you've considered

Additional context

cornevandersteen avatar Dec 29 '21 11:12 cornevandersteen

Thanks for reporting @cornevandersteen , we've actually fixed this bug but it's not yet released! I'll leave it open until the new release come out.

pethron avatar Jan 19 '22 09:01 pethron

With the latest release the problem is solved

andreacavagna01 avatar Jan 31 '22 11:01 andreacavagna01

Oh, so I'm not sure if I just ran into this in 0.10.0, or if I hit a separate issue. But I created a chained role from an AWS SSO session, and then logged out of the AWS SSO integration, and the chained role session was deleted. And after logging back in, the chained role session was not restored! That is a little painful, if we have to recreate every chained role session every time!

lorengordon avatar Mar 10 '22 16:03 lorengordon

Well, we solved #108 which is a bit different issue; the linked issue was related to the validity of the AWS SSO access token, not the AWS SSO Integration logout behavior. We've to fix this behavior by separating the concept of logout from the concept of deleting an Integration. @andreacavagna01 this issue has still to be considered open

ericvilla avatar Mar 10 '22 16:03 ericvilla

Has there been any movement on this? I am having this issue as well.

FrankFioretti avatar Apr 29 '22 18:04 FrankFioretti

This is solved now with v.0.16.0. I can close the issue now, feel free to re-open the issue if the problem persists

andreacavagna01 avatar Nov 03 '22 15:11 andreacavagna01