Tobin Baker created HADOOP-12807:
------------------------------------

             Summary: S3AFileSystem should read AWS credentials from 
environment variables
                 Key: HADOOP-12807
                 URL: https://issues.apache.org/jira/browse/HADOOP-12807
             Project: Hadoop Common
          Issue Type: Improvement
          Components: fs/s3
            Reporter: Tobin Baker
            Priority: Minor
             Fix For: 2.7.3


Unlike the {{DefaultAWSCredentialsProviderChain}} in the AWS SDK, the 
{{AWSCredentialsProviderChain}} constructed by {{S3AFileSystem}} does not 
include an {{EnvironmentVariableCredentialsProvider}} instance. This prevents 
users from supplying AWS credentials in the environment variables 
{{AWS_ACCESS_KEY_ID}} and {{AWS_SECRET_ACCESS_KEY}}, which is the only 
alternative in some scenarios.

In my scenario, I need to access S3 from within a test running in a CI 
environment that does not support IAM roles but does allow me to supply 
encrypted environment variables. Thus, the only secure approach I can use is to 
supply my AWS credentials in environment variables (plaintext configuration 
files are out of the question).



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

Reply via email to