Skip to content

Releases: ernolf/admin_audit_http_client

admin_audit_http_client v0.2.0

12 May 20:24
v0.2.0
0b4e458

Choose a tag to compare

Added

  • loglevel_audit_http_client config key (int, default 0): controls which responses are logged — 0 = all, 1 = HTTP 400+ only, 2 = HTTP 500+ only
  • audit_http_client_logs config key (string, default 'both'): selects log output format — 'json', 'plain', or 'both'
  • audit_http_client_logs_exclude_domain config key (array, default []): list of hostnames to exclude from logging; supports wildcard prefix (*.example.com)

Full Changelog: v0.1.0...v0.2.0

admin_audit_http_client v0.1.0 (Initial Release)

12 May 16:31
v0.1.0
cc319f8

Choose a tag to compare

  • LoggingClientService: reflection-based IClientService decorator that injects HttpClientLoggerMiddleware into the Guzzle HandlerStack via HandlerStack::unshift()
  • HttpClientLoggerMiddleware: logs all outgoing HTTP requests including method, URI, HTTP version, status code, all request/response headers, cURL transfer statistics, and compression metrics
  • CountingStream: wraps 2xx response body streams to count decompressed bytes; writes the log entry on stream close or garbage collection
  • TransferStatsStore: static store to correlate asynchronous on_stats cURL callback data with the middleware response handler
  • LogPathHelper: derives per-host log file paths; writes one .json and one .log file per remote host
  • HandlerStackReadyListener: prepared for future event-based injection once a HttpClientHandlerStackReadyEvent is available in Nextcloud core
  • logdir_audit_http_client config key with automatic fallback chain: explicit override → sibling of logfile_audit → sibling of logfile<datadirectory>/admin_audit_http_client_logs/
  • Log entries contain: request ID (X-Nextcloud-ReqId), timestamp, method, URI, HTTP version, status, request headers, response headers, cURL handler stats (size_download, speed_download, total_time, etc.), compression stats (encoding, compressed_bytes, decompressed_bytes, ratio)

Full Changelog: https://github.com/ernolf/admin_audit_http_client/commits/v0.1.0