Skip to content

Backport to 1.4.x: Configurable auth metadata for AWS#8866

Merged
tyrannosaurus-becks merged 1 commit into
release/1.4.xfrom
backport-pr-8783-1.4.x
Apr 27, 2020
Merged

Backport to 1.4.x: Configurable auth metadata for AWS#8866
tyrannosaurus-becks merged 1 commit into
release/1.4.xfrom
backport-pr-8783-1.4.x

Conversation

@tyrannosaurus-becks
Copy link
Copy Markdown
Contributor

Backports #8783

* add aliasmetadata sdk helper and add to aws auth

* split into ec2_metadata and iam_metadata fields

* fix tests

* strip pointer

* add test of default metadata

* more test <3

* switch from interface to custom marshallers

* add tests for marshalling

* store nil when selected fields are default

* separate loop into pieces

* separate acc test into multiple

* Update builtin/credential/aws/path_login.go

Co-Authored-By: Jim Kalafut <jkalafut@hashicorp.com>

* changes from feedback

* update aws test

* refactor to also populate auth metadata

* update how jsonification is tested

* only add populated metadata values

* add auth_type to ec2 logins

Co-authored-by: Jim Kalafut <jkalafut@hashicorp.com>
@tyrannosaurus-becks tyrannosaurus-becks added this to the 1.4.1 milestone Apr 27, 2020
@tyrannosaurus-becks tyrannosaurus-becks requested a review from a team April 27, 2020 20:44
@tyrannosaurus-becks tyrannosaurus-becks merged commit f03b22d into release/1.4.x Apr 27, 2020
@tyrannosaurus-becks tyrannosaurus-becks deleted the backport-pr-8783-1.4.x branch April 27, 2020 22:36
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