vivek807 opened a new pull request, #19609:
URL: https://github.com/apache/druid/pull/19609

   
   Fixes #19608.
   
   Description
   
   Adds support for AWS S3 Multi-Region Access Points (MRAPs) and S3 Access 
Point ARNs as the bucket value in Druid's S3 extension. Previously, any ARN 
passed as a bucket name was rejected at startup due to a strict DNS-naming 
validation check in CloudObjectLocation.
   
   Relaxed bucket validation in `CloudObjectLocation``
   
   The existing check enforces that a bucket name URL-encodes to itself, which 
is a proxy for DNS compliance. ARNs contain colons and fail that check 
unconditionally. The validation now accepts a bucket that either passes the 
existing DNS check or matches a valid S3 Access Point ARN pattern (regional and 
MRAP, across aws, aws-cn, and aws-us-gov partitions).
   
   Added `S3Utils.isS3Arn()`` and `S3Utils.normalizeBucketName()`
   
   Some tooling produces Access Point ARNs with a slash separator 
(accesspoint/alias) rather than the colon-delimited form (accesspoint:alias) 
that the AWS SDK expects. `normalizeBucketName()` canonicalizes the slash form 
to the colon form. It is a no-op for plain bucket names. 
S3DataSegmentPusherConfig.setBucket() and S3LoadSpec constructor both call this 
at the point of construction so the rest of the code never sees the 
unnormalized form.
   
   Release note
   
   Druid's S3 extension now accepts AWS S3 Access Point ARNs and Multi-Region 
Access Point (MRAP) ARNs as the druid.storage.bucket value. This enables 
operators to route deep storage traffic through a single global MRAP endpoint 
for multi-region active-active deployments and regional failover scenarios. 
Plain bucket names are unaffected.
   
   <hr> 
   
   Key changed/added classes in this PR
   
   - CloudObjectLocation — relaxed bucket validation to permit S3 Access Point 
ARNs
   - S3Utils — added isS3Arn() and normalizeBucketName()
   - S3DataSegmentPusherConfig — normalize bucket name on set
   - S3LoadSpec — normalize bucket name on constructor
   
   <hr>
   
   This PR has:
   
   This PR has: 
   
   - [x] been self-reviewed. 
   - [ ] ~~using the concurrency checklist~~ (no concurrency changes) 
   - [ ] added documentation for new or modified features or behaviors. 
   - [x] a release note entry in the PR description. 
   - [ ] added Javadocs for most classes and all non-trivial methods. Linked 
related entities via Javadoc links. 
   - [ ] ~~added or updated version, license, or notice information in 
licenses.yaml~~ (no new dependencies) 
   - [x] added comments explaining the "why" and the intent of the code 
wherever would not be obvious for an unfamiliar reader. 
   - [x] added unit tests or modified existing tests to cover new code paths, 
ensuring the threshold for code coverage is met. 
   - [ ] added integration tests. 
   - [ ] been tested in a test Druid cluster. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to