MariusAlch / vscode-json-to-ts

VSCode extension - Convert JSON object to typescript interfaces
123 stars 17 forks source link

Add disclaimer about what you are logging to your analytics #16

Closed chill-cod3r closed 7 months ago

chill-cod3r commented 3 years ago

I was a bit surprised to find this code here:

https://github.com/MariusAlch/vscode-json-to-ts/blob/master/src/lib.ts#L45

You’re actually logging out the first 250 characters of whatever JSON someone is using this extension for. Sure, anyone can look at the code as I have and see that you’re doing it. However imo you should put a disclaimer somewhere so that people can be cautioned to not put sensitive JSON in here - it’s unfortunately not obvious to everyone. This plugin has 297k downloads, that’s a lot of JSON data going to your analytics server. Vscode has plenty of anonymous ways to log telemetry data and imo this goes outside the bounds of that.

markuspeitl commented 1 year ago

@wolfejw86 Wow thanks for the info, almost installed the extension. Quite unethical to to do this (Some people might unknowingly leak sensitive information with this) I am no lawyer, but i am pretty sure it is at least illegal in the EU as it violates the GDPR.

rentolo-zzimick commented 1 year ago

@wolfejw86 @markuspeitl what do you think if I create another extension without this logging and with improvements like to work for other languages too, support single type output (without extracting sub type definitions)?

rentolo-zzimick commented 1 year ago

Also we can collaborate on it if you guys want 😀

MariusAlch commented 7 months ago

I've added this initially just to see how people are using the extension. Removed this all together with version 1.8.0