@@ -301,11 +301,10 @@ Each run also sends one event to Mapbox:
301301It never includes a file path or free text you typed. It carries a random ID
302302that is replaced on the first run a day after it was created. It is sent in
303303the background, so a command never waits for it, and dropped if it can't be
304- delivered. It is sent with your own token (` --token ` , ` MAPBOX_ACCESS_TOKEN `
305- or your login) when you have one, and with the CLI's own public token
306- otherwise; Mapbox Events keeps the token an event was sent with, and the
307- account it belongs to, alongside the event. With no token of your own and
308- no way to fetch the CLI's, the event is dropped.
304+ delivered. It is only ever sent with the CLI's own public token, never
305+ yours (` --token ` , ` MAPBOX_ACCESS_TOKEN ` or your login); Mapbox Events keeps
306+ the token an event was sent with alongside the event. When the CLI's token
307+ can't be used, the event is dropped, and it is never sent twice.
309308` MAPBOX_CLI_NO_TELEMETRY=1 ` or ` mapbox config set telemetry off ` turns it off.
310309
311310### Diagnostics and settings
@@ -491,22 +490,27 @@ and `--dry-run` show it alongside everything else on the request.
491490
492491### The CLI's own requests
493492
494- The CLI has a token of its own, for requests it makes for itself. Telemetry
495- uses your own token whenever you have one: ` --token ` or
496- ` MAPBOX_ACCESS_TOKEN ` , then your login. Only when you have none does it use
497- the CLI's token:
498- ` MAPBOX_CLI_TOKEN ` , or a public token fetched from
499- ` https://cli.mapbox.com/config/token.json ` and kept in
500- ` ~/.mapbox/cli-token.json ` . It is replaced only when the Tokens API says it
501- is revoked, invalid, expired or malformed, not when one API refuses it. A
502- refusal of a valid token, or one the Tokens API cannot explain, counts; the
503- third in a row pauses telemetry's sending with it for an hour, as three
504- fetches in a row that find no usable token pause fetching. The token is
505- restricted to ` https://cli.mapbox.com/ ` , so every request with it carries
506- that as its ` Referer ` . The CLI's token is only used for what
507- ` src/cli_token.rs ` lists for it: telemetry, and ` mapbox report ` , which is
508- the other way around: it prefers the CLI's token to yours and falls back to
509- yours while the CLI's can't be used.
493+ The CLI has a token of its own, for requests it makes for itself.
494+ Telemetry uses only that token, never the one you run commands with
495+ (` --token ` , ` MAPBOX_ACCESS_TOKEN ` or a login): it uses a public token
496+ fetched from ` https://cli.mapbox.com/config/token.json ` and kept in
497+ ` ~/.mapbox/cli-token.json ` . ` MAPBOX_CLI_TOKEN ` is a developer override that
498+ replaces that token with another CLI token, such as one for staging, and
499+ is used only when it is a public ` pk. ` token. With neither usable, the
500+ event is dropped, and an event that was refused is never sent again. A
501+ refusal is checked with the Tokens API and the endpoint asked for a new
502+ token at once: a token that is revoked, invalid, expired or malformed is
503+ replaced, and a different token served is used from the next run on.
504+ Three failures in a row, each a fetch that finds no usable token or a
505+ refusal the endpoint has no different token for, stop telemetry sending
506+ and fetching for an hour. That count is telemetry's own, and
507+ ` MAPBOX_CLI_TOKEN ` is sent whatever it says. A new token ends it, even one
508+ ` mapbox report ` fetched. The token is restricted to
509+ ` https://cli.mapbox.com/ ` , so every request with it carries that as its
510+ ` Referer ` . The CLI's token is only used for what
511+ ` src/cli_token.rs ` lists for it: telemetry, and ` mapbox report ` , which
512+ prefers the CLI's token and falls back to yours while the CLI's can't be
513+ used.
510514
511515### Proxies
512516
@@ -663,7 +667,7 @@ tools are used and how to improve our products.
663667 ` --dry-run ` or whether a named profile was used), how it ended and how
664668 long it took, how many requests it made with their HTTP status and sizes,
665669 the kind of token it used and the Mapbox account that token belongs to,
666- the Mapbox access token the event itself was sent with, a random
670+ the CLI's own public token the event itself was sent with, a random
667671 identifier that is replaced every day, which run started this one when it
668672 ran inside another, CLI version, how the CLI was installed, the version
669673 it was updated from and any newer one it offered, OS/architecture,
@@ -679,8 +683,8 @@ tools are used and how to improve our products.
679683 adoption, prioritize investments, and improve the reliability,
680684 performance, and developer experience of our CLIs.
681685- ** What We Do Not Collect:** Code completion outputs, source code, project
682- file names, directory contents, non-Mapbox API keys, or credentials other
683- than the Mapbox access token an event is sent with .
686+ file names, directory contents, non-Mapbox API keys, or credentials,
687+ your Mapbox access token included .
684688- ** Who has Access:** Telemetry data will not be disclosed to, or accessed
685689 by, third parties other than Mapbox affiliates and passive cloud storage
686690 and hosting providers necessary to maintain our infrastructure.
0 commit comments