Skip to content

Released version 2.12.3

Latest

Choose a tag to compare

@dg dg released this 01 Dec 14:20
· 43 commits to master since this release

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 Authorization and applies #[SensitiveParameter] and keysToHide to stack trace arguments, exactly like the HTML page (#618, GHSA-r7v7-8r9m-ggc9)
  • Query parameters matching keysToHide are 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 the Cookie and Set-Cookie headers
  • 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, with keysToHide applied; 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 keysToHide and the scrubber to variables of closures and to components of Uri objects, and masks the password in the address of a Uri
  • Arrays and objects logged through Debugger::log(), including the PSR context, respect keysToHide and the scrubber

🐛 Bug Fixes

  • The markdown report limits stack trace arguments by maxLength and maxItems, 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() and Neon::decodeFile(), also with Neon 4
  • The dumper always picks the exposer of the most specific class, so Ds\Map is no longer dumped as a Ds\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).