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

Provide S3 AWS credentials from application.conf #140

Merged
merged 3 commits into from Jan 11, 2017

Conversation

neowulf
Copy link
Contributor

@neowulf neowulf commented Jan 7, 2017

Fixes #137

@lightbend-cla-validator
Copy link

Hi @neowulf33,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

http://www.lightbend.com/contribute/cla

@drewhk
Copy link
Member

drewhk commented Jan 10, 2017

LGTM

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good apart from the logging

response <- Http().singleRequest(signedReq)
_ <- Future(system.log.info("Response: {}", response))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why spawn a future for doing the logging?
what is the toString representation of the request and response? can it be big, and therefore inappropriate for logging?

val response = for {
signedReq <- Signer.signedRequest(req, signingKey)
_ <- Future(system.log.info("Request: {}", signedReq))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of using system.log you should use a more specific `LoggingAdapter via

val log = Logging(system, getClass)

@neowulf
Copy link
Contributor Author

neowulf commented Jan 10, 2017

Oops, those log statements were part of my debugging process. I have removed them.

/**
*
* @author siva
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use author tags, we encourage collective code ownership: https://github.com/akka/alpakka/blob/master/CONTRIBUTING.md#pull-request-requirements

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah my bad. I have removed them in the next commit.

@ktoso
Copy link
Member

ktoso commented Jan 11, 2017

LGTM, would like the @author javadoc be removed though as our guidelines require :)
Thanks, very nice addition!

@ktoso
Copy link
Member

ktoso commented Jan 11, 2017

LGTM, thanks a lot! Very nice improvement.

@ktoso ktoso merged commit 6c8fa71 into akka:master Jan 11, 2017
@neowulf neowulf deleted the creds_in_appconf branch January 11, 2017 20:05
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

5 participants