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

Clean up original Authentication; Rely on SDK for Chain. #353

Merged
merged 3 commits into from
Dec 1, 2017

Conversation

rhyas
Copy link

@rhyas rhyas commented Nov 20, 2017

This PR removes the logic for searching for authentication credentials in favor of just relying on the SDK to find credentials through the standard means. This is necessary to allow role delegation using source_profile configurations for credentials. None of the authentication classes the SDK provides will support that, but if you let the SDK just do all the work to find the credentials, everything just works. This also greatly simplifies the logic within the kitchen-ec2 client wrapper.

I suspect this will break most/all of the tests in client_spec.rb because everything it tests is gone. I vote for just removing it, and passing the buck to the SDK for both finding, and testing all the various methods, of credential finding. I didn't remove the tests in this PR yet, pending discussion on that point.

@rhyas
Copy link
Author

rhyas commented Nov 20, 2017

This will resolve #344.

@rhyas
Copy link
Author

rhyas commented Nov 20, 2017

Cleaned up the test suite to remove the creds testing, since it doesn't exist anymore.

@cheeseplus
Copy link
Contributor

This looks great! We'll give this a look but the simplification is long overdue.

@cheeseplus cheeseplus added this to the 1.4.0 milestone Nov 21, 2017
@rhyas
Copy link
Author

rhyas commented Nov 30, 2017

This was tagged for 1.4.0, but didn't make it into the release. Is there a reason? And is there a plan to get it merged anytime soon? Trying to use this across a team, and maintaining a one-off is tedious. (:

@cheeseplus
Copy link
Contributor

It was tagged as 1.4. for a hot minute before we decided it needed to be a major release thing and there were lots of other fixes that could go out with less impact. I'm gearing up for the 2.x release (granted this is the most major change) shortly but 1.4 has only been out a day or so.

@cheeseplus cheeseplus merged commit e6d7964 into test-kitchen:master Dec 1, 2017
dalvizu added a commit to dalvizu/kitchen-ec2 that referenced this pull request Jan 2, 2018
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