tilfinltd / aws-extend-switch-roles

Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
https://chromewebstore.google.com/detail/aws-extend-switch-roles/jpmkfafbacpgapdghgdpembnojdlgkdl?utm_source=github
MIT License
1.32k stars 141 forks source link

'Show only matching roles' does not work in 2.0.4 #174

Closed tksrc closed 3 years ago

tksrc commented 3 years ago

Hi guys,

Is it just me or Show only matching roles is not working for other people too?

Here is our very simplified config. `[Hub-Account] aws_account_id = hub-account-alias

[Account1-Role1] aws_account_id = account-1-alias role_arn = arn:aws:iam:::role/Role1 source_profile = Hub-Account color = ff80ff

[Account1-Role2] aws_account_id = account-1-alias role_arn = arn:aws:iam:::role/Role2 source_profile = Hub-Account color = ff80ff `

However, when I log in to Account1 using Role 1, I can still see Role 2 listed there image

I have also tried using role_name attribute instead of role_arn, the same thing.

Any help is appreciated. Thanks!

tilfin commented 3 years ago

I had made a mistake. I'll fix it in the next version.

tksrc commented 3 years ago

@tilfin Unfortunately I still get the same behavior in 2.0.5. I have tried role_arn , role_name etc in my target profiles but I am still seeing all roles listed.

Here is a sanitized example of my config

[master]
aws_account_id = master-account-alias

[target-role1]
aws_account_id = target-account-alias
role_name = role1
source= master

[target-role2]
aws_account_id = target-account-alias
role_name = role2
source= master
tksrc commented 3 years ago

Ignore me. Uninstalling the plugin and re-adding the config fixed it for me. All set.

Thanks for your great work! :)

evandam commented 3 years ago

I just uninstalled and reinstalled the plugin but it doesn't seem to be working for me. I'm ont 2.0.5 as well.

scalp42 commented 3 years ago

Same here I can confirm. It just lists all the roles defined in the config even if you can't assume them.