-
Notifications
You must be signed in to change notification settings - Fork 47
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
Telemetry code executes and throws in container, even with telemetry disabled #233
Comments
Hey @monken
|
You could just do a DNS lookup instead import socket
socket.gethostbyname('verkehrsnachrichten.merck.de') Should fail immediately if you are not on the internal network and doesn't require a heavy library like
|
Hi @monken, thanks for the valuable input. I guess @Scienfitz can have a look into the socket thing and also see how we can further tweak the telemetry part. Regarding Regarding |
removing the hash would mean we cant track roughly the number of unique users, a main metric we wanted I would support removing requests but there were additional requirements for this to work on the premade sagemaker kernels on UPTIMIZE AWS which had some sort of issue with it. So Id have to check that again to verify. |
This fixes #233 in that iT moves some code parts that have been executed even if telemetry was disabled (and thus could fail). It doesn't touch the suggested replacement of `requests` because a confirmation with the UPTIMIZE Sagemaker kernels would be required, which in itself requires an update of the Sagemaker<->baybe connection due to the Python 3.8 deprecation
the telemetry execution order had beenc hanged to not execute anything when its disabled, this should fix this Issue |
@monken |
Hi team,
I'm running baybe in a container under a non-root user. I'm setting
BAYBE_TELEMETRY_ENABLED=false
. However, some telemetry code still seems to be executed.As a workaround, I will create a user in the container so that this call doesn't throw an exception. However, I would expect that no code is executed as part of loading the baybe module when telemetry is disabled.
In general, the telemetry code seems pretty heavy (making suspicious syscalls to retrieve hostname, uid, tries to make an HTTP request which will likely raise some flags when scanning code bases for malicious behavior or backdoors).
I'd also wanted to mention that
this hash is irreversible and cannot identify the user or their machine
is not necessarily true. You can easily pre-compute a rainbow table of all hashes for valid usernames and then do a reverse lookup.The text was updated successfully, but these errors were encountered: