ClickHouse / ClickHouse/clickhouse-java

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

Aperta
#2,935 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area:general client-api-v2 enhancement
Lingua principale
Java
Stelle
1.6k
Fork
636
Merge medio
2g 23h
PR unite (30g)
29

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by tracing how the Java client constructs the User-Agent header and how client_name is applied. Check the existing client request tests, then verify that a fully custom value replaces the default header without appending the driver version.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
68/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.