Skip to content

Cross Account Buckets get region calls fail with 403 #5634

@HarshitGupta11

Description

@HarshitGupta11

Describe the bug

We have a cross region bukcet setting. Both the accounts have all the permissions on the bucket but after performing an sdk upgrade to 2.25.3 our getBucketRegion calls fail with 403.
After some investigation we found that in the earlier versio(2.21.) we were sending the call to the global endpoint whereas for the newer version(2.25.) we see its being sent to the local endpoint.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The bucket region call should work.

Current Behavior

Described above.

Reproduction Steps

Create two buckets in different accounts and create trust relationships between them. Then make a get bucket location call from both the accounts to both the buckets.

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

2.25.53

JDK version used

1.8

Operating System and version

Redhat 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.closed-for-stalenessp2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions