Aiven-Open / Aiven-Open/tiered-storage-for-apache-kafka

Support custom storage classes and empty values in s3.storage.class

Đang mở
#824 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
239
Fork
59
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

# What is currently missing?

The `s3.storage.class` configuration enforces a strict whitelist validation that only accepts native AWS S3 storage classes (e.g., STANDARD, INTELLIGENT_TIERING).

This blocks deployments using alternative S3-compatible providers (like Tencent Cloud COS, Ceph, or MinIO) that require custom string values for their storage tiers. Furthermore, users cannot set an empty string ("") to explicitly defer configuration to the provider's native bucket-level default storage class.

# How could this be improved?

Modify the validation logic to allow arbitrary string pass-throughs and empty values. We can either:

1. Change the validator to accept any string (including an empty string ""), allowing it to pass directly to the client payload.
2. Introduce a configuration flag like s3.storage.class.skip_validation: true to bypass the rigid enum check entirely.

# Is this a feature you would work on yourself?

* [ ] I plan to open a pull request for this feature

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.