Skip to content

load_bucket tries to fetch bucket region even if both --bucket and --region are provided #45

Closed

Description

@alexyarovoy

client.load_bucket tries to fetch bucket region even if both --bucket and --region are provided as parameters.

It means that if user is not authorized to use buckets meta APIs like List Buckets or Get Bucket Location, user won't be able to use the bucket in any way. Even when user is authorized to list particular bucket content. From my experience having rights only to bucket content is not uncommon.

I've tested, and if I disable the call to get_bucket_location and replace it with region provided, other functionality works as expected.

Additionally, error in the application does not describe the real reason. Just says "No bucket found (region: us-east-1)".

Activity

  1. added
    enhancement
    on Jan 28, 2025
  2. jkbe commented on Feb 4, 2025

    @jkbe

    +1, this is the single thing that keeps me from successfully trying out stu :)

  3. mjclarke94 commented on Feb 10, 2025

    @mjclarke94

    Yep, also bumping into this.

  4. jkbe commented on Feb 10, 2025

    @jkbe

    This is fixed by #46, I just built the current default branch locally to confirm it

  5. lusingander commented on Feb 11, 2025

    @lusingander
    Owner

    @JakobEdding Thanks for checking.

    In addition, I removed the bucket existence check by head-object in #47. Now I think we can open the bucket even if we don't have permission to it.

  6. jkbe commented on Feb 19, 2025

    @jkbe

    Hi @lusingander, are you planning a release of stu that includes this fix?

  7. lusingander commented on Feb 20, 2025

    @lusingander
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions