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

auth/aws: Make identity alias configurable #5247

Merged

Conversation

joelthompson
Copy link
Contributor

This is inspired by #4178, though not quite exactly what is requested
there. Rather than just use RoleSessionName as the Identity alias, the
full ARN is uses as the Alias. This mitigates against concerns that an
AWS role with an insufficiently secured trust policy could allow an
attacker to generate arbitrary RoleSessionNames in AssumeRole calls to
impersonate anybody in the Identity store that had an alias set up.
By using the full ARN, the owner of the identity store has to explicitly
trust specific AWS roles in specific AWS accounts to generate an
appropriate RoleSessionName to map back to an identity.

Fixes #4178

This is inspired by hashicorp#4178, though not quite exactly what is requested
there. Rather than just use RoleSessionName as the Identity alias, the
full ARN is uses as the Alias. This mitigates against concerns that an
AWS role with an insufficiently secured trust policy could allow an
attacker to generate arbitrary RoleSessionNames in AssumeRole calls to
impersonate anybody in the Identity store that had an alias set up.
By using the full ARN, the owner of the identity store has to explicitly
trust specific AWS roles in specific AWS accounts to generate an
appropriate RoleSessionName to map back to an identity.

Fixes hashicorp#4178
@jefferai jefferai added this to the 0.11.1 milestone Sep 2, 2018
@chrishoffman chrishoffman modified the milestones: 0.11.1, 0.11.2 Sep 5, 2018
builtin/credential/aws/backend_test.go Outdated Show resolved Hide resolved
builtin/credential/aws/path_config_identity_test.go Outdated Show resolved Hide resolved
builtin/credential/aws/path_login.go Outdated Show resolved Hide resolved
builtin/credential/aws/path_login.go Outdated Show resolved Hide resolved
builtin/credential/aws/path_login.go Show resolved Hide resolved
website/source/api/auth/aws/index.html.md Show resolved Hide resolved
@vishalnayak vishalnayak merged commit d12547c into hashicorp:master Sep 26, 2018
@joelthompson joelthompson deleted the aws_auth_configurable_aliases branch September 26, 2018 16:01
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.

4 participants