v0.6.1
This commit is contained in:
parent
8a85a4d9af
commit
e9782eaa82
1 changed files with 1711 additions and 440 deletions
98
readme.txt
98
readme.txt
|
|
@ -1,43 +1,67 @@
|
|||
=== Telemetry (by ROBOTSTXT) ===
|
||||
=== Telemetry disabler (by ROBOTSTXT) ===
|
||||
Contributors: robotstxt, javiercasares
|
||||
Tags: telemetry, http, logging, debug, requests
|
||||
Requires at least: 6.2
|
||||
Tags: telemetry, privacy, http, requests, logging
|
||||
Requires at least: 4.0
|
||||
Tested up to: 7.1
|
||||
Stable tag: 0.2.0
|
||||
Requires PHP: 7.4
|
||||
Version: 0.2.0
|
||||
Stable tag: 0.6.1
|
||||
Requires PHP: 5.6
|
||||
Version: 0.6.1
|
||||
License: GPL-3.0-or-later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
Logs outbound HTTP requests made by WordPress for inspection.
|
||||
Reduces the telemetry WordPress sends out and logs every outbound HTTP request, so your site shares less and you can see everything.
|
||||
|
||||
== Description ==
|
||||
|
||||
Telemetry (by ROBOTSTXT) records the external HTTP requests that WordPress (and its plugins and themes) performs through the WordPress HTTP API, so they can be inspected from the administration panel.
|
||||
A WordPress site talks to the outside world all the time: update checks for core, plugins and themes, and every HTTP call made by the ecosystem around them. Each of those calls can expose details about your site: its URL, versions, active plugins and themes, database server, PHP extensions, and more.
|
||||
|
||||
For every outbound call, the plugin stores the request method, full URL, host and path, query parameters, body parameters or raw body, sanitized request headers, user agent, and the caller backtrace summary. Sensitive values (authorization headers, passwords, tokens, API keys, secrets, nonces) are automatically redacted before storing, and all payloads are size-limited to keep the database lean.
|
||||
Telemetry disabler (by ROBOTSTXT) gives you control over that conversation in two ways: it sends less, and it shows you everything.
|
||||
|
||||
The Logs screen provides a paginated list with filters by method, host, and date range, a detailed single-entry view, and nonce-protected delete actions. Entries pointing to `api.wordpress.org` get a dedicated analysis view that groups environment, extensions, platform, and image support parameters.
|
||||
= Send less =
|
||||
|
||||
Updates for this plugin are delivered through the [Manager (by ROBOTSTXT)](https://www.robotstxt.software/plugins/robotstxt-manager/) plugin. If the Manager is not active, the plugin shows a dismissible reminder in the plugins list and a permanent notice on its Settings screen.
|
||||
The three WordPress.org update checks run in "Safe" mode by default, meaning they only send the minimum data required to keep receiving updates:
|
||||
|
||||
* **Core version check** (`api.wordpress.org/core/version-check/`): only the WordPress version, PHP version, locale, normalized MySQL/MariaDB version (for example "11.8.8-MariaDB", without distribution or logging suffixes), and update channel. Site counts, database history, PHP extensions and platform details are removed, the site-identifying `wp_install`/`wp_blog` headers are stripped, and translation payloads are reduced to their project dates (no `Project-Id-Version` or `X-Generator` metadata).
|
||||
* **Themes version check** (`api.wordpress.org/themes/update-check/`): each theme is reported with only its name, version, update URI, template and stylesheet; translations are reduced to their project dates, plus the site locale.
|
||||
* **Plugins version check** (`api.wordpress.org/plugins/update-check/`): each plugin is reported with only its version, update URI and requirements (WordPress, PHP, dependent plugins); translations are reduced to their project dates, plus the locale and the "all" flag.
|
||||
* Update URIs pointing at wordpress.org are kept as-is (they are public slugs); update URIs hosted anywhere else are replaced with a deterministic hash, so external plugin and theme sources are not disclosed.
|
||||
|
||||
Each check can be switched back to "Original" in the Settings screen to send exactly what WordPress would send without this plugin.
|
||||
|
||||
Additionally, outbound requests normally identify the site in the User-Agent header (for example "WordPress/6.9; https://example.com/"). With the "Hash the site URL in the User-Agent" setting (enabled by default), the URL is replaced with a fixed hash so the site is no longer identifiable while remaining consistent across requests.
|
||||
|
||||
= See everything =
|
||||
|
||||
Every outbound HTTP request made through the WordPress HTTP API is recorded in the site's own database: request method, full URL, host and path, query parameters, body parameters or raw body, sanitized request headers, user agent, and a caller backtrace summary to know which component triggered the call.
|
||||
|
||||
The Logs screen provides a paginated list with filters by method, host and date range, a detailed single-entry view, and nonce-protected delete actions. Entries pointing to `api.wordpress.org` get a dedicated analysis view that groups environment, extensions, platform, and image support parameters.
|
||||
|
||||
= Privacy by default =
|
||||
|
||||
* Sensitive keys (`authorization`, `password`, `pass`, `token`, `secret`, `api_key`, `apikey`, `nonce`) are redacted before anything is written to the database.
|
||||
* Credentials embedded in URLs are stripped, and query strings are stored redacted.
|
||||
* Payloads are truncated (64 KB per JSON blob, 64 KB raw body, 16 KB caller trace).
|
||||
* Log retention is configurable (12 hours by default, 1 day, or 3 days), a maximum of 1000 entries is always enforced, and the cleanup runs when browsing the logs and twice a day automatically.
|
||||
* Logs are only accessible to administrators (`manage_options`).
|
||||
* No data ever leaves the site; logs are stored in the site's own database.
|
||||
|
||||
On Multisite, the network administrator chooses between two modes in **Network Admin → Telemetry**: "Per-site" (default), where every site keeps its own settings and its own log table managed by each site administrator, or "Global", where one shared configuration and one central log table (on the main site) collect the outbound requests of the whole network, managed from the Network Admin only.
|
||||
|
||||
Updates for this plugin are delivered through the [Manager (by ROBOTSTXT)](https://www.robotstxt.software/plugins/robotstxt-manager/) plugin. If the Manager is not active, the plugin shows a dismissible reminder in the plugins list and a permanent notice on its Settings screen.
|
||||
|
||||
== Using the plugin ==
|
||||
|
||||
= Logs =
|
||||
|
||||
Navigate to **Telemetry → Logs**. Use the method, host, and date filters to narrow the list, then click **View** on any entry to see its full details, or **Delete** to remove it.
|
||||
Navigate to **Telemetry → Logs**. Use the method, host and date filters to narrow the list, then click **View** on any entry to see its full details, or **Delete** to remove it. The **Delete all logs** button requires a second confirmation before permanently removing every entry.
|
||||
|
||||
= Settings =
|
||||
|
||||
Navigate to **Telemetry → Settings**. The "Delete all telemetry logs and plugin options on uninstall" checkbox controls the uninstall behavior: unchecked by default, so all telemetry data is preserved when the plugin is removed. When the Manager (by ROBOTSTXT) plugin is not active, a permanent notice about updates is shown on this screen.
|
||||
Navigate to **Telemetry → Settings**. The three WordPress.org update checks (Core, Themes, Plugins) can run in "Safe" mode (default, limited data) or "Original" mode (unchanged WordPress behavior). "Hash the site URL in the User-Agent of outbound requests" (enabled by default) replaces the site URL in outbound User-Agent headers with a fixed hash. "Log retention" controls how long entries are kept (12 hours by default, 1 day, or 3 days). The "Delete all telemetry logs and plugin options on uninstall" checkbox controls the uninstall behavior: unchecked by default, so all telemetry data is preserved when the plugin is removed. When the Manager (by ROBOTSTXT) plugin is not active, a permanent notice about updates is shown on this screen.
|
||||
|
||||
= Multisite =
|
||||
|
||||
Navigate to **Network Admin → Telemetry**. The "Configuration mode" setting controls how the plugin runs: "Per-site" (default) lets every site manage its own Settings and Logs screens, while "Global" centralizes the configuration and the logs of the whole network on the main site, managed from the Network Admin only. When switching to Global, the network settings start from the main site values.
|
||||
|
||||
== Extra Configurations ==
|
||||
|
||||
|
|
@ -47,7 +71,7 @@ This plugin does not require any `define()` in `wp-config.php`.
|
|||
|
||||
= Automatic download =
|
||||
|
||||
Visit the plugin section in your WordPress, search for "Telemetry (by ROBOTSTXT)"; download and install the plugin.
|
||||
Visit the plugin section in your WordPress, search for "Telemetry disabler (by ROBOTSTXT)"; download and install the plugin.
|
||||
|
||||
= Manual download =
|
||||
|
||||
|
|
@ -55,9 +79,21 @@ Extract the contents of the ZIP and upload the contents to the `/wp-content/plug
|
|||
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
= Does the plugin stop WordPress updates from working? =
|
||||
|
||||
No. Safe mode keeps the minimum data the WordPress.org APIs need to deliver updates: what you have installed and at which version. Everything else (site counts, environment details, site-identifying headers, translation metadata) is removed.
|
||||
|
||||
= What is the difference between "Safe" and "Original" modes? =
|
||||
|
||||
"Safe" (default) sends only the minimum data required to keep receiving updates. "Original" sends exactly what WordPress would send without this plugin. You can switch each of the Core, Themes and Plugins checks independently.
|
||||
|
||||
= How does the plugin work on Multisite? =
|
||||
|
||||
By default every site manages its own settings and logs ("Per-site" mode). A super administrator can switch the network to "Global" mode in **Network Admin → Telemetry**: one shared configuration and one central log table on the main site then cover the whole network, and the per-site Telemetry screens are replaced by the Network Admin ones.
|
||||
|
||||
= Does the plugin send any data anywhere? =
|
||||
|
||||
No. The plugin only records outbound HTTP requests in the site's own database for local inspection. Nothing is transmitted to third parties.
|
||||
No. The plugin only records outbound HTTP requests in the site's own database for local inspection, and reduces what WordPress sends to third parties. Nothing is transmitted by the plugin itself.
|
||||
|
||||
= Where is the data stored? =
|
||||
|
||||
|
|
@ -73,31 +109,31 @@ Install and activate the [Manager (by ROBOTSTXT)](https://www.robotstxt.software
|
|||
|
||||
== Compatibility ==
|
||||
|
||||
* WordPress: 6.2 - 7.1
|
||||
* PHP: 7.4 - 8.5
|
||||
* WordPress: 4.0 - 7.1
|
||||
* PHP: 5.6 - 8.5
|
||||
* MariaDB: 10.6+
|
||||
* Multisite: compatible (`Network: true`)
|
||||
* Multisite: compatible (Per-site and Global modes)
|
||||
|
||||
On WordPress versions older than 5.1, the Core update check Safe mode cannot reduce the query arguments (the needed hook does not exist in those versions); the site-identifying headers and the translations payload are still reduced.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
Only the 3 last versions. The full changelog will be at changelog.txt
|
||||
|
||||
= 0.2.0 =
|
||||
= 0.6.1 =
|
||||
|
||||
* Added: Settings screen with uninstall behavior option (data preserved by default)
|
||||
* Added: Manager (by ROBOTSTXT) dependency notice, dismissible in the plugins list and permanent in Settings
|
||||
* Added: `uninstall.php` routine honoring the delete-data option, Multisite aware
|
||||
* Added: `bin/deploy.sh` distributable packaging script
|
||||
* Changed: minimum requirements lowered to WordPress 6.2 and PHP 7.4
|
||||
* Changed: Plugin, author, and update URLs moved to robotstxt.software
|
||||
* Removed: bundled self-updater (`robotstxt-updater.php`, `update.json`) in favor of the Manager plugin
|
||||
* Security: query strings and credentials in URLs are redacted before storing
|
||||
* Fixed: query parameters were not stored due to a discarded `wp_parse_args()` return value
|
||||
* Fixed: UTF-8 scrubbing no longer discards whole payloads
|
||||
* Changed: minimum requirements lowered to WordPress 4.0 and PHP 5.6, with compatibility fallbacks for older WordPress APIs
|
||||
* Fixed: duplicated "Save Changes" button on the Settings screen
|
||||
* Changed: plugin renamed to "Telemetry disabler (by ROBOTSTXT)" with a new description
|
||||
|
||||
= 0.1.0 =
|
||||
= 0.6.0 =
|
||||
|
||||
* Initial release: outbound HTTP logging with custom table, Logs admin screen with filters, pagination, view and delete actions, and secret redaction
|
||||
* Added: Multisite configuration mode (Per-site by default, Global from the Network Admin) to run the settings and logs per site or centrally for the whole network
|
||||
|
||||
= 0.5.0 =
|
||||
|
||||
* Added: log retention setting (12 hours by default, 1 day, 3 days) with a 1000-entry cap, cleanup when browsing the logs and via a twice-daily cron
|
||||
* Added: "Delete all logs" button with a double confirmation step
|
||||
|
||||
= Previous versions =
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue