250 points · by Ice_cream_suit · 9y ago · 150 comments
The .NET Core CLI/SDK dev tool to build and package code is the only thing sending telemetry. It's not the main `dotnet` command itself nor anything in the runtime. The data is also available for anyone to analyze: https://docs.microsoft.com/en-us/dotnet/core/tools/telemetry
It's definitely nothing out of the ordinary and is common practice among many tools and apps you already use. Your smartphone sends back way more data if you're that concerned.
There's also a warning the first time you use it, and if you're using something like this then it's a reasonable expectation that as a software developer you understand the message and how to disable it if you want to.
EDIT: the insights based on this telemetry are also interesting to look at and add further clarity: https://blogs.msdn.microsoft.com/dotnet/2017/07/21/what-weve...
> It's definitely nothing out of the ordinary and is common practice among many tools and apps you already use.
Also as usual it's opt-out and NOT opt-in. People get riled because (usually)
a) built in telemetry is almost always an unexpected and unannounced change - only to be discovered later.
b) opt-in is the only approach that leaves your trust in tact - everyone uses opt-out because they know the majority of users people will not choose to opt in given a choice.
Most apps are opt-out though, the checkboxes are already checked and a message shown. I agree that it would be easier to just enter an option on the command line instead of typing the environment variable option.
IMO, this is the key problem. I have no issue with optional telemetry, but there should be a bright line here: all telemetry should be opt-in. If necessary, by law. It should not become standard practice for applications to send data without explicit consent.
What about when it's run through VS or some other tool that hides much of the text? How does it know that I've read this information when it could be buried in several thousand lines of output from itself and other tools like make or msbuild?
Being explicit about opt-out is even less acceptable for command line tools than it is GUI based ones.
https://github.com/dotnet/cli/issues/3093#issuecomment-32632...
> opt-out
Just like Google's chrome, flutter, android sdk, etc. Just like apple osx, xcode, etc. Macromedia everything. the list goes on. Even mozilla who had it right now have so many telemetry modules that most ignore the main setting about it.
my point? I don't think I have any other than to highlight this is a lost cause and everyone should be eternally vigilant with everything :(
That's not true. My iPhone asked me if I want to share iPhone / iCloud analytics and I said no. This wasn't an opt-out, but an explicit question. I remember my Google Nexus asking me about it as well, including for Google's Keyboard. I said no and again no opt-out happened.
And in fact it would be illegal to collect user telemetry in the EU without the user's explicit consent ;-)
https://news.ycombinator.com/item?id=15411533
The only way to find out what your device - no matter which device - send out is to sniff out all the traffic it generates. While easy to do on Wifi this is harder to accomplish on the mobile data connection.
If indeed iOS is collecting user data without the user's consent, or allowing a company like Uber to collect that data, then I'm pretty sure a class action lawsuit or a huge EU fine will happen.
But that is a separate discussion altogether, the fact at hand being that iOS does ask the user explicitly whether telemetry should be enabled or not and I remember that Android does that too.
Google Analytics is a service that can be used by websites, online services and mobile apps to track users. If I were to guess, those are requests made by the browser or by the apps that you have installed. I was also talking about a Nexus 6 phone, with the pure Android experience, not whatever Samsung or the others are doing.
I don't feel this is relevant to the discussion at hand though.
[edit]: actually they do, and it is a pretty scary (and very long) reading, even the "basic" telemetry:
https://docs.microsoft.com/en-us/windows/configuration/basic...
Telemetry is a recent obsession of the industry and as trust declines this is the equivalent of stuffing a cigarette in the mouth of your customers and stealing their passports.
It’s just not ok on any level.
Wow that went way over the top. Who knew Telemetry is carcinogenic or was considered stealing. Honestly it's hard to take the anti-telemetry crowd seriously when these types of arguments are used.
If you'd actually read the issue before commenting, you'd realize that this behavior was added after people complained about the telemetry not being obvious. It's the sixth comment on the issue (by guardrex) - not even that far down. The very next comment is an MS contributor saying that he makes a good point that it wasn't obvious, and that they'd improve it in a future release. Which is why there's now a warning when using it. I mean, the link is old, but it should be understood that an issue on preview tooling from over a year ago might not represent the current state of the tooling. But yeah, on first release, all the notice you got was a blog post, if you even bothered to look for it.
It's also a fair point that it's still not made very clear that what information is collected under what circumstances. It's a huge problem with Windows, so you can understand why people have their jimmies rustled even over something small. Especially since windows 10 makes it impossible to completely opt-out of telemetry. Even after disabling the visual options, it's still regularly calling out to Microsoft servers. Even if you disable the services, updates will turn them back on and other services will start it up. And then it chews through your system's CPU like it's starving. Which means it's probably collecting far more data than it needs.
Finally, sometimes it's not even about what's collected or that there's an opt-out procedure. Sometimes just having a mechanism for transferring data can cause problems. 'sushihangover' comments on that issue that someone failed their HIPAA audit based on this behavior. I've no idea if it's an accurate example, but there are government, medical and enterprise environments where any non-sanctioned traffic is strictly prohibited and can cause liabilities.
Telemetry needs to be easy, simple, and thorough in its opt-out mechanisms. Microsoft has failed its users on this frequently and recently. I don't think this particular instance is that bad, but they should be doing damage control in all products based on the public perception that they're spying on users.
SQL Server Management Studio, on the other hand, is much better about its analytics opt-in request. Microsoft is a big company with varied practices. Not every division deserves a high-five about their privacy practices.
> It's definitely nothing out of the ordinary and is common practice among many tools and apps you already use. Your smartphone sends back way more data if you're that concerned.
Let MS take their knocks when they earn them. And it's totally fine if people point out that Microsoft has a problem with opting users into unwanted telemetry. Even if it's not important data, it's data that someone didn't volunteer to give up. It's a horrible, common-place practice that needs to end.
Honestly, they might not need automatic telemetry if they just made volunteering information during a bug or slowdown significantly easier. If it was easy to, for example, enable telemetry for a Visual Studio session to track down why it runs like a whale, and then to review the information sent before it was sent, people would use it all the time to better the software. Instead, people turn off everything they can and don't bother to enable it (required for some MS feedback apps) to report issues because they don't know what'll sneak across.
When your telemetry is easy, open, and transparent, people will gladly opt-in when they think it's needed. Or they can hide the data they care about and share the rest.
Well said. As a favour to the developers, I have always chosen to opt in for telemetry when it was asked upfront and in a transparent and guileless manner. One example is Firefox, where I opt in for its telemetry.
What I suspect I (and others) don't like is software that treats the user as if they're too dumb to decide for themselves and somehow too inconsequential to have full control over the software that they have bought. It gives off the impression that the software is more important than the user or their work/machine, which is why we see such a backlash. Stallman is right in this sense. You don't need to open source your software, but make the user your priority. Treat them well. And watch your software be praised far and wide. Conversely....
But in any case I agree that MS should definitely allow the owner of the machine the ability to block the transmission of any and all telemetry data.
Yeah, it's possible. And it will probably happen at some point or another, now that it's open source. But that won't stop the momentum of the core product.
> Also historically, is /var/log any different from telemetry? I can easily figure out which applications were installed, what the hardware on the system is, which cron jobs were executed etc.
Telemetry by definition includes the transmission of logged data. System logs may be collected and transmitted internally by an organization, though by default it is not. But pretty much everyone would be up in arms if a software vendor collected logs of not only what their own software is doing, but what other software on a user's system is doing. And that's the main problem with Windows telemetry - it's too invasive, resource intensive, opaque, and integrated for people to stomach. So they turn it off wherever they can, and thus starts this disgusting game of whack-a-mole with Microsoft.
The dotnet cli isn't as bad, but Microsoft has earned some black eyes from the behavior of their other departments. So everyone's going to feel the heat until they learn too control their greed for data.
However I think the way to disable it is a bit user hostile, maybe a prompt when run interactively for the first time and a env var for when running in automated environment.
1. Microsoft won’t engage with customers on removal of this even if it causes problems.
2. The feature fires off before it informs you.
3. We don’t trust Microsoft after they turned their platform into a data gathering and leak risk.
4. This spans more than just windows as a platform so the assumption that opt out is OK is leaking onto privacy respecting platforms.
5. This is resurrected because it’s still being fought.
6. No one else does this. This is new and we don’t want the assumption that it’s ok to go forward any more than it has.
7. Steamrolling opinion is not how you treat customers. That’s how you lose them.
Microsoft are doing a big platform push for tooling I.e SQL server, powershell, VScode etc and we’re making it known that when in Rome, do as Romans do.
A lot of younger users will be used to telemetry as a feature and are not sensitive to it. This does however pretty much kill the product for healthcare, finance and defence sectors.
In my case this signifies the end of a 15 year investment of my life in a platform.
If having telemetry in the development environment is bad too, then so was the “Visual Studio Customer Experience Program”. While that was opt-in, I would think that if telemetry was so dangerous that precautions would be taken to prevent it from being turned on. Precautions that would be at least as difficult as setting an environmental variable.
This will also be installed in places like the build server that may have extra permissions into the production environment. Often the firewall between production and development won't be as great as you think and all software has to be compliant because the developers will be dealing with real private data.
> If teletmetry is bad, running “dotnet restore” to download code from the internet is worse
"dotnet restore" could be hitting a local repository only, which is much more common in these environments.
> If having telemetry in the development environment is bad too, then so was the “Visual Studio Customer Experience Program”.
Typically it would be disabled, but things slip through the cracks, no matter how many precautions there are, which is why off by default is important.
Aside from that, it kills trust. The developers don't even understand that this is a privacy violation and refuse to fix it, so when the next thing on the slippery slope comes along I don't expect them to appreciate the ramifications of it. Will compiler error codes be considered telemetry? How about exceptions? How about code metrics? I can't trust the dotnetcore developers to respect privacy.
You have to do this as part of your configuration. Alongside that configuration, you can change a single environment variable to turn telemetry off.
> but things slip through the cracks
I don't see how negligence is a valid counterargument. You could use the external repository by mistake and do far more damage. Are you more likely to forget about the the telemetry opt-out? After all this fuss I doubt it.
The root comment also claims that Microsoft refuses to engage and allow the removal of it. The environment variable exists, Microsoft has clearly engaged and allowed the removal of it. This comment chain is FUD.
Finally, if you really care about privacy this much you should be building things from source. This applies to .NET Core as much as it applies to GCC. .NET Core is open source, so this is absolutely possible to do.
Here's an example for healthcare:
https://github.com/dotnet/cli/issues/3093#issuecomment-33389...
In this Github comment the only issue is a scared customer management (how I read it), which in my opinion has no experience in handling audit findings or software development. Stopping CIL (or CLI) projects because of this is ridiculous and shows a lack of professionalism.
I am in healthcare with multiple active development stacks (Java, Node, .NET, Python, ..) and in this regards I worry more of the Cordova/Node apps with their 1000s of npm dependencies which some of them do not even have a public source code repo and/or intentional anonymous author and/or without a license. Analyzing who is calling home there is a monumental task compared to the pretty uniform .NET or Java stacks.
This is such an odd thing to write. .Net core is not even wounded in those sectors.
Imagine you use a garbage collected golang code base for an implant defilibrator with limited memory (of course it will crash). Or Rust for a data shifting smartphone app (financial overkill). Or JavaScript when dealing with floating points in 64 or 32 bit during a medical parameter calculation (wrong result).
.NET Core can be used. JavaScript can be used. Python can be used. Just make sure you understand it well before you use it.
Just like any other tool that automatically checks the telemetry box for you. You just need to use an environment variable instead of a checkbox in this case because it is server software.
All that's missing is hiding the information in a basement, without stairs and a sign saying "beware of the tiger".
If you think that npm or any other tool you use doesn't do the same you are delusional.
https://code.visualstudio.com/docs/supporting/faq#_how-to-di...
https://code.visualstudio.com/license
> DATA. The software may collect information about you and your use of the software, and send that to Microsoft. Microsoft may use this information to provide services and improve our products and services. There may also be some features in the software that enable you to collect data from users of your applications. If you use these features to enable data collection in your applications, you must comply with applicable law, including providing appropriate notices to users of your applications. You can learn more about data collection and use in the help documentation and the privacy statement at http://go.microsoft.com/fwlink/?LinkID=528096&clcid=0x409. Your use of the software operates as your consent to these practices.
First we had to keep a close eye on our browsers, now we have to keep track of our text editors, dev tools, operating system, and even our own hardware. if we're really lucky, some will have some obscure way of limiting it.
Making you job easier and improving your product are not valid excuses for this kind of despicable behavior.
When I set up my next dev machine, everything will be sandboxed or the entire machine air-gaped. Some developers and software vendors can no longer be trusted.
In this case, it tells you how to completely turn it off the first time you use it.
* I'm assuming MS is being honest about what they're collecting in their documentation. If someone has evidence that their sources/binaries say something different, feel free to bring it up.
Then why don't they make it opt in?
> Is there actually a good reason to turn this off?
Security. In the sense of "enable only needed features, to reduce attack surface".
Of course it would be even better to not have it turned on by default in the first place.
Microsoft comes from a place of being automatically distrusted by a lot of people, and for good reason. It may seem unfair to you, but they have to conduct better than this to make up for this disadvantage.
Because opt-in telemetry doesn't really improve the open source project. It no longer provides a representative sample of the usage patterns in your app that you can use to guide your further development or maintenance efforts; the people that would opt-in majorly overlap with the people who are also willing to file issues and seek help channels.
Perhaps because they think it is a reasonable default that few people will want to change (vocal minorities and all that)? Curious if anybody who does opt-in telemetrics has stats on first-time downloads vs telemetry enables.
> Security. In the sense of "enable only needed features, to reduce attack surface".
I’d assume that the attack surface here is pretty small (HTTPS request via the standard mechanism, ignore the response). If .NET HTTPS APIs are broken, we’ve got bigger problems. At the end of the day, everything is a cost/benefit, and it seems like this is something pretty hard to get wrong + pretty large tangible benefit for the project.
I agree though that transparency about data collection is important, especially for building trust.
What fun....
"Behavior The telemetry feature is on by default.
You can opt-out of the telemetry feature by setting an environment variable DOTNET_CLI_TELEMETRY_OPTOUT (e.g. export on OS X/Linux, set on Windows) to true (e.g. “true”, 1). Doing this will stop the collection process from running."
I'd take the year away, not to make people think it's not relevant anymore.
Microsoft/.Net Foundation added telemetry to the dotnet command line last year | https://news.ycombinator.com/item?id=14836737 (Jul 2017)
MS reserves the right to look at memory dumps and crashed binaries "to improve the customer experience" or something...
Take these two things together, and... you lose your source code :-(
The fact that this is an opt-out vs. opt-in and the opt-out procedure is based upon an env. var. just caused dotnet to fail an externally conducted HIPAA privacy/security audit at a genome testing lab in the backyard of your main campus.
Lucky for us, we were able to convert the runtime to use Mono and get a temporary pass, but this killed the future CIL-based projects with the lab's management..."
Ouch!
https://github.com/dotnet/cli/pull/2145
"There is a way to opt-out of the telemetry gathering process by setting an environment variable DOTNET_CLI_TELEMETRY_OPTOUT. Doing this will stop the collection process from running. "
Also, the thread seems to have people from MS (the core team) actively soliciting feedback and wanting to work with users. They published a blog post before they started collecting telemetry, so it wasn't unannounced.
There are lots of ways that this could be worse. Maybe we shouldn't slap their hand when they are doing a pretty good job?
I can see how this is still completely unacceptable if you are a privacy maximalist, but most people aren't.