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

Roles don't appear #292

Closed crptz closed 8 months ago

crptz commented 1 year ago

Describe the bug Hi, we are 3 people working with the same config and mine doesn't work while theirs it's working perfectly. I have tried to clear cache, update chrome, restart computer, remove and re-add extension and what ever else

Expected behavior I expected the roles to appear so I can switch to them. While I have added the config (exactly the same as my friend's) it does not work, it doesn't show the roles to switch when I am at aws console. I have also tried with only one profile in case there was a syntax error but still nothing.

Environment

Additional context I have also tried on firefox and it wasn't working there either. We've checked it many times with my friends together but there is no luck.

Cheers !

Andrwe commented 1 year ago

This happened to me on Mozilla Firefox 114.0.2 too. I could solve it by replacing all occurrences of source_profile in the configuration. It seems like every profile that either uses source_profile or is targeted by source_profile is removed from the list of available profiles.

crptz commented 1 year ago

Not sure what you mean, my config format is:

[test]
aws_account_id = <account-id>
role_name = <role-name>
region = <region>
color = <color>

It's weird because like I said the same config works on others but not to me.

Also I've noticed that when hovering on the extension icon it says "Permission needed" after I refresh the page but I've checked all the permissions and are all on.

tilfin commented 1 year ago

@unavoidable0100 Do you have checked "Show only matching roles" in Settings? Try unchecking that box.

JakeJeffreys commented 11 months ago

Im experiencing the same issue in Chrome version 115.0.5790.114 and Extension version 3.0.0.

Any profile that uses source_profile is ignored from the list. "Show only matching roles" is unchecked. I can fix by removing all of the source_profile fields and manually adding that information into each profile but I'd rather not.

Seems like a pretty valid source_profile bug.

crptz commented 11 months ago

@JakeJeffreys Hi, thanks for the info but in my case I don't use source_profile I use the format that I provided in my previous response

[test]
aws_account_id = <account-id>
role_name = <role-name>
region = <region>
color = <color>

Of course I've tried other formats too but no luck again. I have the same versions of Chrome and Extension that you mentioned.

I tried to completely clear the cookies from Chrome and it actually worked but... only for one day, Next day the extension wasn't working again, I tried to clear cookies but nothing, I tried reinstalling Chrome and Extension, nothing again. I'm out of options

takobaba commented 8 months ago

I started to experience the same issue when the extension auto updated itself to version 4. I fixed the issue by just making a dummy change on the config and saving. After I clicked save I went back on the AWS console and I was able to list the roles.

crptz commented 8 months ago

Sorry for not updating the status, been very busy lately.

At this point I'm still not sure why sometimes the extension didn't work. I have tried multiple browsers and I get the same result every time: roles not displaying.

I can't say for sure but after clearing the browser cache the extension was working (as I mention again here), at least most of the times. And I say this (most of the times) because this was happening almost every other day and I was keep clearing the cache, most of the times worked, others did not.

At some point the extension was working fine for many days in row so I didn't give it much attention to maybe debug more?

But still this doesn't makes sense because:

  1. my colleagues had no issue ever
  2. I tried multiple browsers (Chrome, Edge, Brave, Firefox) and still had the same issue
  3. reinstalled the extension many times to all browsers (and the browsers themselves) and still had the same issue for a month or so
  4. tried it in Private Mode to all browsers and still the same issue
  5. tried many times to edit the configuration in case something was wrong with the syntax or something.

To be honest I haven't used the extension for like 2 months now. I intent to use the extension in future projects but until then I'm closing this issue and will reopen it if any problem occurs again.

Thank you all