Skip to content

Mask secrets in logs, strip REQUEST_URI to path, add CI and 7.0.0 release artifact - #2

Merged
megyptm merged 13 commits into
masterfrom
claude/logger-github-issue-7d0d5d
Oct 31, 2026
Merged

megyptm merged 13 commits into
masterfrom
claude/logger-github-issue-7d0d5d

Conversation

@megyptm

@megyptm megyptm commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1

Changes

  • REQUEST_URI: the file fallback logs only the path (no query string, fragment, scheme, userinfo, host or port); Logger::logFullRequestUri(true) is an explicit opt-in.
  • Redaction (both backends): sensitive context keys, key=value secrets, Authorization: Bearer/Basic values, Throwable messages and traces, and values reached through objects (JsonSerializable, Stringable, public properties) are masked; depth-limited; Logger::setSensitiveKeys() and Logger::setRedactor() (hook output is re-scanned).
  • Contract fixes: unknown log level rejected in both backends (validation independent of Monolog); LoggerCleanupService defaults to the logger's logs/ directory and keeps the index.php guard; Monolog log folders get the guard file.
  • Release 7.0.0 artifact: README per the Maatify presentation standard, Package Reference, Usage Guide, examples, llms.txt, SECURITY, CODE_OF_CONDUCT, LICENSE (proprietary, unchanged), CHANGELOG ## [7.0.0].
  • CI and tooling: workflow (PHP 8.4/8.5 latest deps, 8.4 lowest deps, Consumer Verification Harness, examples smoke, workflow lint, stable CI gate), PHPStan level max without baseline, composer scripts, release artifact verifier; require.php is now >=8.4.27 <8.5.0 || >=8.5.12 <8.6.0.

Breaking changes (see CHANGELOG)

PHP constraint; redaction output (***REDACTED***, objects logged as class + properties); unknown level now throws in the fallback; LoggerCleanupService default directory; //host/path request URIs.

Verification

  • 33 tests / 102 assertions, PHPStan level max, Consumer Verification Harness (2 clean installs), 4 examples, release artifact verification for 7.0.0.
  • Defects were reproduced with failing tests before each fix (RED), including the Monolog-absent fallback run in a process where Monolog is genuinely not loadable.

Open decisions

LICENSE year, [Unreleased] compare link, and the stray 6.0.1 on Packagist (owner decisions, not part of this PR).

🤖 Generated with Claude Code

megyptm and others added 11 commits October 31, 2026 18:29
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… drop composer version (#2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…constraint (#2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ooling (#2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…les, release verifier checks (#2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eck (#2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… cleanup service (#2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… level in both backends (#2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@megyptm megyptm changed the title Strip query string from REQUEST_URI and add log redaction hook Mask secrets in logs, strip REQUEST_URI to path, add CI and 7.0.0 release artifact Oct 31, 2026
megyptm and others added 2 commits October 31, 2026 19:46
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@megyptm
megyptm marked this pull request as ready for review October 31, 2026 17:53
@megyptm
megyptm merged commit 98a4306 into master Oct 31, 2026
6 checks passed
@megyptm
megyptm deleted the claude/logger-github-issue-7d0d5d branch October 31, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not write the query string in REQUEST_URI of file log entries

1 participant