Can users set a fully custom User-Agent that completely replaces the default one, without appending the driver version?
まだ誰も着手していません。
評価
調査の方向性
まず、Java クライアントが User-Agent ヘッダーをどのように構築し、client_name がどのように適用されるかを追跡します。既存のクライアントリクエストのテストを確認し、その後、完全にカスタムされた値によってデフォルトのヘッダーが置き換えられ、ドライバーのバージョンが追加されないことを検証します。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 637
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ClickHouse/clickhouse-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ClickHouse/clickhouse-java#3143 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
ClickHouse/clickhouse-java#3111 ·
-
area:data-type bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-java#3098 · コメント 1 件 ·
-
bug client-api-v2 test
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
ClickHouse/clickhouse-java#3076 ·
-
area:sql-parser bug client-v1
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
ClickHouse/clickhouse-java#3066 ·
ClickHouse/clickhouse-java の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
1.0.0-alpha2 Type/Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
wso2/dpdp-accelerator#272 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
infinispan/infinispan#18150 ·
-
area/frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100