Skip to content

Releases: onlime/laravel-http-client-global-logger

v1.2.6

30 Jun 10:26
dab7e80
Compare
Choose a tag to compare
  • Fix message body obfuscation, improving the regexes in obfuscateBody() to prevent truncation on replacement.

v1.2.5

29 Jun 15:17
42284ae
Compare
Choose a tag to compare
  • Add access_key to the HTTP_CLIENT_GLOBAL_LOGGER_OBFUSCATE_BODY_KEYS defaults, with additional Uri obfuscation testing.
  • Added composer testbench:reset script to reset the Orchestra Testbench environment, which caches the config.

v1.2.4

16 Jun 20:14
78d771b
Compare
Choose a tag to compare
  • Revert obfuscateBody() refactoring from v1.2.3, as it caused preg_replace(): Compilation failed: lookbehind assertion is not fixed length at offset 0 issues.

v1.2.3

16 Jun 19:48
062d175
Compare
Choose a tag to compare
  • [Security] Body key obfuscation (obfuscate.body_keys config) is now also applied to response body, both for JSON or form-styled content.
  • Refactored obfuscateBody() for performance to run single regex replacements on message body.

v1.2.2

16 Jun 16:53
e855b08
Compare
Choose a tag to compare
  • [Security] Body key obfuscation (obfuscate.body_keys config) is now also applied to form-style request bodies, not only JSON bodies. This prevents accidental logging of e.g. OpenID Connect (OAuth 2.0) tokens on POST /token endpoint, which may contain the refresh_token and client_secret.
  • [Security] Added id_token as additional body key for obfuscation to the HTTP_CLIENT_GLOBAL_LOGGER_OBFUSCATE_BODY_KEYS default.

v1.2.1

26 Feb 20:57
6b7829e
Compare
Choose a tag to compare
  • Laravel 12 support
  • Drop Laravel 10 support and fixed CI

v1.2.0

15 Oct 15:51
1295444
Compare
Choose a tag to compare
  • Feature | You can now enforce trimming of response body by setting a X-Global-Logger-Trim-Always request header, which will ignore the Content-Type whitelisting.
  • Drop PHP 8.1 support
  • Upgrade pestphp/pest to v3

v1.1.3

14 Mar 15:51
52f27ed
Compare
Choose a tag to compare
  • Added GitHub Actions workflow, Improve test suite by @pascalbaljet in #4
  • Bumped saloonphp/laravel-http-sender dependency to support Laravel 11
  • Bumped Laravel 10 requirement to ^10.32 as it requires getGlobalMiddleware()
  • Removed unneeded guzzlehttp/guzzle dependency
  • Streamlined EventServiceProvider into ServiceProvider
  • Added tests for EventHelper, PendingRequestMixin and ServiceProvider
  • The added Guzzle middleware now has a name for easier debugging and testing

v1.1.2

16 Feb 15:08
880dec3
Compare
Choose a tag to compare
  • Feature | Support for trimming the response body by @pascalbaljet in #3
  • Laravel 11 support

v1.1.1

13 Nov 16:56
ac1ec4d
Compare
Choose a tag to compare
  • Feature | Handle Saloon events by @pascalbaljet in #2 – Can now also log Requests/Responses when using Saloon's MockClient by handling SendingSaloonRequest and SentSaloonRequest Saloon events.
  • Added common OAuth2 keys access_token,refresh_token,client_secret to default body obfuscation configuration.