bloomreach / bloomreach/s4cmd

Allow skipping validation/lookup before uploads.

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
1.4k
Forks
209
PR merge metrics
No merged PRs in 30d

Description

I'm trying to PUT an image to a bucket that doesn't have `s3:ListBucket` permission for the bucket root `"Resource": "arn:aws:s3:::my-bucket"`... which isn't necessary to successfully PUT a resource. I'd like to be able to skip validation similar to setting `validate=False` in boto2. S3 and thus boto3 respond with a 403 when trying to make a head request to a resource when no `s3:ListBucket` permission is present on the root .

I've made the following change https://github.com/apbodnar/s4cmd/commit/d5a58600bf311c18a5996b3a985c8676e0dc7adb which fixes my specific problem. I'm happy to open a PR for a better solution if I can get a little more guidance on the best course of action since i'm unsure how my change effects other use-cases.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the proposed change in commit d5a58600bf311c18a5996b3a985c8676e0dc7adb and tracing the upload validation or lookup path it changes. Confirm that an upload can skip the preflight request when requested, while existing validation behavior remains unchanged; the issue does not name tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cli, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.