Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get bucket name directly from path to avoid calling 'listBuckets' #891

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kxm-kstlr
Copy link

@kxm-kstlr kxm-kstlr commented Mar 18, 2025

Pull Request Description

This pull request closes #890 .

Acceptance Test

  • Building the code with gradle clean build still works.

Questions

  • Does this pull request break backward compatibility?

  • Does this pull request require other pull requests to be merged first?

    • Yes, please see #...
    • No
  • Does this require an update of the documentation?

    • Yes, please see [provide details here]
    • No

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
@kxm-kstlr kxm-kstlr temporarily deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Inactive
@kxm-kstlr kxm-kstlr temporarily deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Inactive
@kxm-kstlr kxm-kstlr temporarily deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Inactive
@kxm-kstlr kxm-kstlr temporarily deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Inactive
@kxm-kstlr kxm-kstlr deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Active
@kxm-kstlr kxm-kstlr temporarily deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Inactive
@kxm-kstlr kxm-kstlr temporarily deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Inactive
@kxm-kstlr kxm-kstlr temporarily deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Inactive
@kxm-kstlr kxm-kstlr temporarily deployed to external-collaborators March 18, 2025 13:56 — with GitHub Actions Inactive

Verified

This commit was signed with the committer’s verified signature.
When using S3FileStore::getBucket the AWS user needs the permission 's3:ListAllMyBuckets'. In S3FileSystemProvider::createDirectory it is checked if a bucket exists, but this uses S3FileStore::getBucket thus needing the additional permission, even if this shouldn't be the case.
This commit adds S3FileStore::hasBucket to avoid the mentioned method call in S3FileSystemProvider.
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
@kxm-kstlr kxm-kstlr requested a deployment to external-collaborators March 19, 2025 07:47 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reading data from file requires s3:ListAllMyBuckets permission
1 participant