Skip to content

Conversation

subhashiyer9
Copy link
Member

@subhashiyer9 subhashiyer9 commented Sep 11, 2025

Problem

When the IAM user does not have permissions to ListBucket, it fails with error

software.amazon.awssdk.services.s3.model.S3Exception: Forbidden (Service: S3, Status Code: 403, Request ID: 4N4NV95674Y4J2MF, Extended Request ID: OoAXGw5Yj01ZsVLGY7ag7zvE7BDTFjPEJwoaIWQ4oEKkIa0k5QKEkTXy8TbLnmo4XMes4bKXGIA=)

The existing code for bucket exists was looking for a wrong condition and hence, it was failing with 403 error.

Solution

Fixes the right condition to check for 403 status code

Does this solution apply anywhere else?
  • yes
  • no
If yes, where?

Test Strategy

Testing done:
  • Unit tests
  • Integration tests
  • System tests
  • Manual tests

Release Plan

@subhashiyer9 subhashiyer9 requested a review from a team as a code owner September 11, 2025 17:31
@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@sonarqube-confluent

This comment has been minimized.

Fix bucket exists check to handle 403 errors
@sonarqube-confluent

This comment has been minimized.

@sonarqube-confluent
Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage 0.00% Coverage (0.00% Estimated after merge)
  • Duplications No duplication information (0.20% Estimated after merge)

Project ID: kafka-connect-storage-cloud

View in SonarQube

@subhashiyer9 subhashiyer9 merged commit 678adb9 into 11.0.x Sep 12, 2025
2 of 3 checks passed
@subhashiyer9 subhashiyer9 deleted the fix-bucket-exists-check branch September 12, 2025 04:38
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.

3 participants