-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
aws-sam-cli: disable telemetry #79478
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
Conversation
Since v0.19.0 aws-sam-cli sends telemetry data to AWS[1]. To protect the users' privacy, we opt-out by default. [1] aws/aws-sam-cli#1272
Example runs: Telemetry enabledOutput edited to improve readability. Note that they assign unique values to:
Telemetry disabled
|
Also note that the installation ID and telemetry options are saved in a configuration file (although the env var takes precedence):
{
"telemetryEnabled": true,
"installationId": "<REDACTED>"
} |
LGTM |
This is awesome. Thanks for this PR! |
Anything else you need from me to get this merged, please do let me know. Thanks for the awesome work you are doing on NixOS! |
Hey @stefano-m, sorry for the delay in getting back to you. Personally, I am okay with disabling telemetry by default (and thanks for being privacy-conscious!). I gave this a bit more thought and felt that by generating a wrapper around Can we generate the wrapper conditionally, so user's can actually override the default and opt in? |
@dhl I can see your point, although I fail to understand why someone wanted to use telemetry ( Note that for example
(Disclosure: I somewhat contributed to those setting with #74516) If you still prefer to have the option to enable telemetry, I would propose instead that we generate the wrapper with telemetry disabled by default and add a conditional parameter to the derivation to explicitly enable telemetry. Would you be OK with that? Thanks |
I have just re-read your comment and actually you say
🤦♂️ ... So, yes... I will do that. 🙇♂️ |
If someone really wants to opt into telemetry, they can do so by setting `enableTelemetry` to `true` (the default is `false`), in which case the wrapper that sets `SAM_CLI_TELEMETRY` to `0` will not be created. Note that this actually allows a user to optionally disable telemetry from the command line or the (poorly documented) configuration in `~/.aws-sam/metadata.json`. The downside is telemetry will be enabled at least on the first run, causing a unique installation ID to be saved in the configuration file.
@GrahamcOfBorg build aws-sam-cli |
Motivation for this change
Since v0.19.0 aws-sam-cli sends telemetry data to AWS[1]. To protect the users'
privacy, we opt-out by default.
[1] aws/aws-sam-cli#1272
Cc maintainers @andreabedini @dhl
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)