[
https://issues.apache.org/jira/browse/HADOOP-13237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated HADOOP-13237:
-----------------------------------
Attachment: HADOOP-13237-branch-2.002.patch
Here is patch 002 for branch-2. I'm currently doing a full test run against an
S3 bucket in US-west-2.
* Documentation updated.
* Tests added.
bq. we could have an anon provider subclass which has the constructor; that
would eliminate the need to have a handler.
I'm not sure I understood this comment. {{AnonymousAWSCredentialsProvider}} is
our own code in S3A, so we have control over the constructors we want it to
provide. I considered providing a constructor that accepts and ignores a
{{URI}} and {{Configuration}}, but I thought it would cause confusion to see a
constructor with unused arguments. Instead, I expanded the reflection logic to
support calling the default constructor. I haven't yet made any changes
related to this in this revision of the patch, so if you still want to request
changes, please let me know.
bq. maybe also: log @ Info?
I looked into this. Unfortunately, info-level logging would propagate out to
stderr in the shell example I gave earlier, and this would be undesirable
output. Maybe the existing debug-level logging is sufficient?
> s3a initialization against public bucket fails if caller lacks any credentials
> ------------------------------------------------------------------------------
>
> Key: HADOOP-13237
> URL: https://issues.apache.org/jira/browse/HADOOP-13237
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 2.8.0
> Reporter: Steve Loughran
> Assignee: Chris Nauroth
> Priority: Minor
> Fix For: 2.8.0
>
> Attachments: HADOOP-13237-branch-2.002.patch, HADOOP-13237.001.patch
>
>
> If an S3 bucket is public, anyone should be able to read from it.
> However, you cannot create an s3a client bonded to a public bucket unless you
> have some credentials; the {{doesBucketExist()}} check rejects the call.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]