Problem/Motivation
Codex identified some concerns about logging:
- High: debug HTTP logging can leak OAuth bearer tokens, registration tokens,
and message bodies. web/modules/orig/firebase_php/src/Service/
FirebasePhpMessagingService.php:87 uses MessageFormatter::DEBUG; Guzzle’s
formatter expands that to the full request and response, including headers
and bodies. Replace this with a redacted formatter, and avoid logging
request/response bodies by default.
- Medium: token and payload logging can expose push-registration tokens and
message data. web/modules/orig/firebase_php/src/Service/
FirebasePhpMessagingApi.php:271 logs full failed messages in debug mode,
and web/modules/orig/firebase_php/src/Service/
FirebasePhpMessagingApi.php:316 logs validation output when enabled. Redact
or hash tokens and avoid logging arbitrary message data.
Issue fork firebase_php-3593804
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ptmkenny commentedComment #5
ptmkenny commented