Skip to content

HDDS-16408. Prevent DeletePublicAccessBlock from deleting buckets - #11236

Open
F64116045 wants to merge 1 commit into
apache:masterfrom
F64116045:HDDS-16408
Open

HDDS-16408. Prevent DeletePublicAccessBlock from deleting buckets#11236
F64116045 wants to merge 1 commit into
apache:masterfrom
F64116045:HDDS-16408

Conversation

@F64116045

@F64116045 F64116045 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

S3 Gateway does not recognize the publicAccessBlock query parameter. As a result, DELETE /{bucket}?publicAccessBlock is routed to DeleteBucket and deletes an empty bucket.

Ozone does not support Public Access Block yet, but this request should not delete the bucket. This change excludes publicAccessBlock requests from the regular bucket deletion path, so the request returns 501 NotImplemented and the bucket remains unchanged.

The Public Access Block compatibility test will still fail until the feature is implemented. This change fixes the unsafe request routing; full Public Access Block support can be handled separately.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-16408

How was this patch tested?

mvn -pl hadoop-ozone/s3gateway \
  -Dtest=TestBucketDelete test
mvn -pl hadoop-ozone/integration-test-s3 -am \
  -DskipDocs -DskipShade -Dskip.npm \
  -Dtest=TestS3SDK \
  -Dsurefire.failIfNoSpecifiedTests=false test

CI: https://github.com/F64116045/ozone/actions/runs/34764029942

@F64116045
F64116045 marked this pull request as ready for review September 13, 2026 23:00
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.

1 participant