tilfinltd / aws-extend-switch-roles

Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
https://goo.gl/0QFjow
MIT License
1.31k stars 140 forks source link

Show only matching roles ignores IAM roles with paths #258

Closed dliao-tyro-admin closed 1 year ago

dliao-tyro-admin commented 1 year ago

We recently tried to use the extension for IAM roles with path prefixes:

[identity]
aws_account_id = xxx-identity

[DEV-DevAdmin]
aws_account_id = development
role_name = human/WorkflowDevAdmin
source_profile = identity
color = 2384fd

With the "Show only matching roles" option enabled, that role isn't available via the extension anymore.

tilfin commented 1 year ago

It should not be possible to include '/' in the role_name of the switch target.

Try the following:

[identity]
aws_account_id = xxx-identity
role_name = human

[DEV-DevAdmin]
aws_account_id = development
role_name = WorkflowDevAdmin
source_profile = identity
color = 2384fd

With the "Show only matching roles" option disabled