Repository navigation
Tracy reports end up in log directories, e-mails and AI agents' context, so this release makes keysToHide and the scrubber reach every corner of them: URLs, headers, the POST body, stack traces and logged values.
🔒 Security
- The markdown output for AI agents hides sensitive request headers such as
Authorizationand applies#[SensitiveParameter]andkeysToHideto stack trace arguments, exactly like the HTML page (#618, GHSA-r7v7-8r9m-ggc9) - Query parameters matching
keysToHideare hidden in every URL of a report: the requested URL, the Referer and the URL items of$_SERVER, also in the log line and the e-mail - HTTP authorization in
$_SERVER(HTTP_AUTHORIZATION,PHP_AUTH_PW,PHP_AUTH_DIGEST) is hidden by default, and reports logged in production mode also hide the session cookie and theCookieandSet-Cookieheaders - The POST body is no longer shown as raw text: a JSON body of up to 10 kB is dumped as an array, like
$_POST, withkeysToHideapplied; of any other body only its length is shown - An argument hidden by its name stays hidden everywhere: in the trace inside the dump of an exception, and for all arguments of a variadic parameter
- The dumper applies
keysToHideand the scrubber to variables of closures and to components ofUriobjects, and masks the password in the address of aUri - Arrays and objects logged through
Debugger::log(), including the PSR context, respectkeysToHideand the scrubber
🐛 Bug Fixes
- The markdown report limits stack trace arguments by
maxLengthandmaxItems, so a large argument no longer exhausts memory (#620) - Dumping a lazy object no longer runs property hooks, so it does not initialize the object; virtual properties are shown as
{virtual}(#619, #621) - BlueScreen shows the NEON source for errors from
Neon::decode()andNeon::decodeFile(), also with Neon 4 - The dumper always picks the exposer of the most specific class, so
Ds\Mapis no longer dumped as aDs\Collection BlueScreen::renderToFile()leaves no empty or half-written files behind when rendering fails
⚡ Performance
- The info panel in the Bar reads OPcache status without the list of cached scripts, which could take over 100 ms on a server hosting several sites (#623)
Thanks to @TonnyJe for reporting the header disclosure, to @janlanger for the limits in the agent output (#618), to @Daaarkling and @mildabre for the lazy objects (#619, #621), and to @adrianbj for the OPcache speedup (#623).