Bucket public access #1026
-
|
Hi, I was wondering if it’s possible to grant public download access to anonymous users using versitygw. While exploring the codebase, it seems like an Authorization header is always required, even when the access policy permits fetching objects. For reference, here’s the policy I’m using: {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": ["*"],
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<bucket>/*"
}
]
}Is there a way to bypass the Authorization header for public access, or am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
The "public" access still requires a valid access key. The "public" in this case is anyone with an account. If you want to give access to objects without needing to create accounts, then presigned urls is the way to achieve this. |
Beta Was this translation helpful? Give feedback.
-
|
Since there has been multiple requests for this, we are investigating what it would take to allow full public read on buckets. |
Beta Was this translation helpful? Give feedback.
-
|
@madmax @jeroenrinzema This PR is now merged and will be in the next tag release: #1319 |
Beta Was this translation helpful? Give feedback.
@madmax @jeroenrinzema This PR is now merged and will be in the next tag release: #1319
It probably needs more testing, but the basic public access workflows seem to work.