Summary
The maskSensitive helper has tests for flat objects but no coverage for nested objects or arrays containing objects with sensitive keys. Both cases appear in real log context payloads and need to be handled correctly.
Scope
- Test nested object:
{ webhook: { url: 'https://example.com' } } → url masked inside the nested object
- Test array of objects:
{ hooks: [{ callback: 'x' }, { callback: 'y' }] } → both callback values masked
- Test non-sensitive nested key unchanged:
{ meta: { count: 5 } } → count value preserved
- Test deeply nested sensitive key (3 levels) is masked
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The
maskSensitivehelper has tests for flat objects but no coverage for nested objects or arrays containing objects with sensitive keys. Both cases appear in real log context payloads and need to be handled correctly.Scope
{ webhook: { url: 'https://example.com' } }→urlmasked inside the nested object{ hooks: [{ callback: 'x' }, { callback: 'y' }] }→ bothcallbackvalues masked{ meta: { count: 5 } }→countvalue preservedAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram