ClickHouse / ClickHouse/clickhouse-java

Can users set a fully custom User-Agent that completely replaces the default one, without appending the driver version?

Đang mở
#2,935 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:general client-api-v2 enhancement
Ngôn ngữ chính
Java
Star
1.6k
Fork
636
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
29

Mô tả

### Use case
Security/compliance policies in some organizations require hiding internal client version information from server logs. Currently there is no way to do this from the client side.

### Describe the solution you'd like
Allow setting a fully custom User-Agent that completely replaces the default one, without appending the driver version.

### Describe the alternatives you've considered
When using the ClickHouse client to send requests to server, the User-Agent header always includes the driver version:User-Agent: ClickHouse-JavaClient/0.6.5 (OpenJDK 64-Bit Server VM/BiSheng_JDK_Enterprise_205.2.0.110.B001; Apache-HttpClient/5.3.4)

Using client_name can only prepend a custom prefix, but the driver version suffix is always appended at the end and cannot be removed.

### Additional context

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

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

Hướng nghiên cứu

Bắt đầu bằng cách theo dõi cách Java client xây dựng User-Agent header và cách client_name được áp dụng. Kiểm tra các client request test hiện có, sau đó xác minh rằng một giá trị tùy chỉnh hoàn toàn sẽ thay thế header mặc định mà không nối thêm phiên bản driver.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
api
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
68/100

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.