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

Handle additional username formats #660

Merged
merged 1 commit into from
Sep 18, 2020
Merged

Handle additional username formats #660

merged 1 commit into from
Sep 18, 2020

Conversation

cirego
Copy link
Contributor

@cirego cirego commented Sep 18, 2020

Not all AWS User ARNs have the username as the second field. Some may
have it as the 3rd or 4th field. However, it seems very likely that most accounts
have them as the last field in the ARN.

This patch changes the behavior to grab the last field in the username and I hope
that it is behavior preserving for the original use case as well.

This patch is required for the organization that I work in and it would be great if we
can get this merged upstream!

Thanks for all the hard work that went into aws-vault. It's a great tool and I use
it everyday!

Not all AWS User ARNs have the username as the second field. Some may
have it as the 3rd or 4th field. However, it seems very likely that most accounts
have them as the last field in the ARN.

This patch changes the behavior to grab the last field in the username and I hope
that it is behavior preserving for the original use case as well.

This patch is required for the organization that I work in and it would be great if we
can get this merged upstream!
@mtibben mtibben merged commit 34a6dbf into 99designs:master Sep 18, 2020
@mtibben
Copy link
Member

mtibben commented Sep 18, 2020

Thanks @cirego

@cirego cirego deleted the patch-2 branch September 18, 2020 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants