Skip to content

Is there an official way to fully override the User-Agent from the client? #2926

Description

@perfectyc2201

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.

Expected behavior:
Allow setting a fully custom User-Agent that completely replaces the default one, without appending the driver version.

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.

Would like to know:
Is there an official way to fully override the User-Agent from the client?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions