[ 
https://issues.apache.org/jira/browse/FLINK-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15575336#comment-15575336
 ] 

ASF GitHub Bot commented on FLINK-4652:
---------------------------------------

GitHub user greghogan opened a pull request:

    https://github.com/apache/flink/pull/2635

    [FLINK-4652] [streaming connectors] Automatically refresh AWS credentials

    By using the credentials explicitly we are responsible for checking and 
refreshing credentials before they expire. If no refreshment is done we will 
encounter AmazonServiceException: 'The security token included in the request 
is expired'. Utilize automatic refreshment of credentials by passing the 
AWSCredentialsProvider directly to AmazonClient by removing the 
getCredentials() call.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/greghogan/flink 
4652_dont_pass_credentials_explicitly_to_amazonclient

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2635.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2635
    
----
commit 7958e6e595ff9a1e9b83c4e8fa9b4a69a3427d3f
Author: Greg Hogan <c...@greghogan.com>
Date:   2016-10-14T13:24:14Z

    [FLINK-4652] [streaming connectors] Automatically refresh AWS credentials
    
    By using the credentials explicitly we are responsible for checking and
    refreshing credentials before they expire. If no refreshment is done we
    will encounter AmazonServiceException: 'The security token included in
    the request is expired'. Utilize automatic refreshment of credentials
    by passing the AWSCredentialsProvider directly to AmazonClient by removing
    the getCredentials() call.

----


> Don't pass credentials explicitly to AmazonClient - use credentials provider 
> instead
> ------------------------------------------------------------------------------------
>
>                 Key: FLINK-4652
>                 URL: https://issues.apache.org/jira/browse/FLINK-4652
>             Project: Flink
>          Issue Type: Bug
>          Components: Kinesis Connector
>    Affects Versions: 1.2.0
>            Reporter: Kristian Frøhlich Hansen
>            Assignee: Greg Hogan
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> By using the credentials explicitly we are responsible for checking and 
> refreshing credentials before they expire. If no refreshment is done we will 
> encounter AmazonServiceException: 'The security token included in the request 
> is expired'. To utilize automatic refreshment of credentials pass the 
> AWSCredentialsProvider direclty to AmazonClient by removing the 
> getCredentials() call.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to