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

Allow for all credential forms #34

Merged
merged 1 commit into from
Oct 24, 2015
Merged

Allow for all credential forms #34

merged 1 commit into from
Oct 24, 2015

Conversation

robbiet480
Copy link
Contributor

I totally agree that credentials shouldn't be hardcoded.

Having said that, I think it should be allowed. I just implemented grunt-aws and noticed that they support passed in keys but not profiles (although profiles can be used by using the AWS_PROFILE environment variable according to the AWS docs). I have a profile setup on my local computer, but other developers on my project may not have the same. I would rather have an IAM user which has specific permissions to support both projects and keep the credentials in an AWS supported credentials JSON file in the repo (yes, in the repo) instead of having to explain differences between hardcoded & profile (in addition to all the other credential methods)

This pull request allows passing in credentials to the library via the Grunt config or a JSON file. It also improves the README.md to list all possible authentication avenues (IAM role, profile, hardcoded, JSON file, environment variables).

…. Improve README.md to list all possible authentication avenues
@Tim-B
Copy link
Owner

Tim-B commented Oct 3, 2015

Thanks for the pull request!

I'm still a bit undecided about whether this is a good idea.

If we do want to support hard coded credentials, perhaps it would be better to provide an option for setting a path which is passed to AWS.config.loadFromPath.

That way you could set your hard coded credentials in a separate file to your Gruntfile (and therefore could be excluded from version control), but it might still avoid the complications of using a profile.

@robbiet480
Copy link
Contributor Author

@Tim-B The credentials JSON option is built in now, in addition to the hardcoding of access key and secret key

Tim-B added a commit that referenced this pull request Oct 24, 2015
Allow for all credential forms
@Tim-B Tim-B merged commit a6ae5e6 into Tim-B:master Oct 24, 2015
@robbiet480
Copy link
Contributor Author

@Tim-B Thank you!

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.

None yet

2 participants