Hacker News new | ask | show | jobs
by eddythompson80 16 days ago
FYI - ONNX will automatically exfiltrate data about your application with no way to opt out other than building it from source with telemetry disabled. Maybe you could block DNS too.
5 comments

onnxruntime.disable_telemetry_events() works doesn't it?
Same with setting `ORT_DISABLE_TELEMETRY=1` in the environment before loading the library.
Immich (The self-hosted photos alternative), is also apologizing for the telemetry making its way into a recent update. See: https://www.reddit.com/r/selfhosted/comments/1xnbujt/psa_imm...
Not to be that guy but I don't think this is the gotcha y'all think it is. I didn't know that ONNX had telemetry.

edit: I seem to have misunderstood the intent of the parent comments. Apologies

Top-level comment said "no way to opt out other than building it from source with telemetry disabled", so if that's not true then this is important to know. See https://www.astralcodexten.com/p/if-its-worth-your-time-to-l...
I don’t understand what you mean. I’ve maintained a decently popular ONNX wrapper for years, had 0 idea there was telemetry, and this is quite useful info to have, particularly because it would be a PITA to rebuild binaries right now.
Previous developer here. To clarify, ONNX and ONNX Runtime are two different things. ONNX Runtime is a Microsoft project while ONNX is community owned. Previously ONNX Runtime collected telemetry for their Windows users that use the prebuilt binaries from Microsoft. No data collection for non-Windows cases.
Thank you!
I only found out ONNX had telemetry because one time my program (that uses it) out of nowhere started hanging on closing. Looking at the command line output I realised it was because ONNX telemetry couldn't connect to their server and it just kept retrying the connection.
Good lord.

I was doing a Dart wrapper for MXC* this week, and found it was doing telemetry, though IIRC it was forthrightly/clearly documented.

Been on this planet long enough that I've seen plenty of MBAs saying "hoover every piece of data every time we can" and eng going along without thinking or saying anything.

I'm still somewhat surprised Microsoft would do that in SDKs.

* tl;dr: MS' CLI sandbox a la bubblewrap

I'm just passing information for anyone who wants to disable it without recompiling anything.
Yeah I read your tone wrong, that's on me. Sorry
Previous developer here. Previously there was a bug preventing it working as expected. Someone reported the issue to us via Github issues. If the repo is still alive, you can check the issue and code. ONNX Runtime is almost fully open source. You can audit the code. Before I left, I can say for sure that if you build everything from source there would be no telemetry. However, Windows itself may still collect data, which is a separated and large topic.
Almost a week later, and the repo is still offline, and no further comment that I could find from Microsoft or anyone else. Is Microsoft now "some random person in Nebraska"? (https://m.xkcd.com/2347/)
I don't think this is true, with an env var of `ORT_DISABLE_TELEMETRY=1 stops sending telemetry on all of the builds I tested.

The flag/telemetry client doesn't exist on v1.28.0, and when I tested on v1.29.0, v1.30.0, v1.31.0, v1.31.1 and v1.32.0 running on MacOS, all built from source locally at those various checkpoints, I don't see the any of the telemetry infrastructure built (device ID is unset, no network queue created, no network session storage created).

Could you provide more context on what the issue here was/is? I might be missing it.

Isn't ONNX itself not MS specific?
They probably mean "ONNX Runtime", which has unfortunately become synonymous with ONNX-the-standard.
Doesn't help that alternative runtime implementations are often a bit behind the standard.
Does it use network for anything else? Or does it run a "am I online" check on startup?

It's a bit disappointing to me that software which I expect to be fully offline, sometimes isn't.

Oh you must not be familiar with Microsoft
Yikes. Another bad actor who thinks they are entitled to data.
are you new to Microsoft?