-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attach OS user information to requests #371
Comments
Note that you can put whatever value you want (including the os.user or other identifying information) in the The default HTTP def build_client_name(client_name: str):
product_name = get_setting('product_name')
product_name = product_name.strip() + ' ' if product_name else ''
client_name = client_name.strip() + ' ' if client_name else ''
py_version = sys.version.split(' ', maxsplit=1)[0]
return f'{client_name}{product_name}clickhouse-connect/{version()} (lv:py/{py_version}; os:{sys.platform})' I'm a little nervous about automatically adding the os user to that string, both because it's already pretty long and there's arguably a security/privacy concern with passing that over the internet, but I could go either way. Is that the enhancement you're proposing? |
I agree that the |
That os_user field will not be populated by clickhouse-connect. It's only populated when using the TCP Native protocol. |
so I guess the only option is to add it to the FYI I saw that in a CH instance recently :
|
The concern is security behind a load balancer, if you have a generic user and a production issue, you want as much information as possible to trace it without going to potentially massive logs + it gets to the |
It would be beneficial if
clickhouse-connect
included the OS user information in the requests made to the Clickhouse server, as that would improve server-side functionality related to logging, usage, compliance, security, audit trails, etc. For example, the relatedclickhouse-driver
library does so.The text was updated successfully, but these errors were encountered: