Skip to content

Conversation

@csumisha
Copy link

Add GetBucketType() method to query bucket type via the ?bucket-type S3 extension endpoint. This allows validating replication targets to prevent setting warehouse buckets as replication destinations.

@harshavardhana
Copy link
Member

Add GetBucketType() method to query bucket type via the ?bucket-type S3 extension endpoint. This allows validating replication targets to prevent setting warehouse buckets as replication destinations.

why do we need this API? @csumisha

@csumisha
Copy link
Author

Add GetBucketType() method to query bucket type via the ?bucket-type S3 extension endpoint. This allows validating replication targets to prevent setting warehouse buckets as replication destinations.

why do we need this API? @csumisha

@harshavardhana Should throw validation error when trying to add a table warehouse bucket as a replication target bucket. https://github.com/miniohq/eos/pull/2717

@csumisha csumisha requested review from klauspost and twuebi January 13, 2026 13:08
Add GetBucketType() method to query bucket type via the
?bucket-type S3 extension endpoint. This allows validating
replication targets to prevent setting warehouse buckets
as replication destinations.
@harshavardhana
Copy link
Member

yes but why do we need this new API and exposed via minio-go?

@klauspost
Copy link
Contributor

@harshavardhana It is using HeadBucket - I guess we don't have that as a standalone function, but rather a bunch of different calls.

@csumisha
Copy link
Author

@harshavardhana as @klauspost mentioned there is no standalone head function, what is your recommendation here?

@csumisha csumisha force-pushed the bucket-type-api branch 2 times, most recently from 53f85f9 to 5b9dc0e Compare January 16, 2026 07:36
Add HeadBucket method that performs HEAD request on bucket and returns
HeadBucketInfo struct with bucket metadata from response headers.
Includes Type field for MinIO bucket type extension (standard/warehouse).
@csumisha
Copy link
Author

Not required, handled it differently https://github.com/miniohq/eos/pull/2717

@csumisha csumisha closed this Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants