• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-pkgz / auth / 25572603805
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v2.1.3
DEFAULT BRANCH: master
Ran 08 May 2026 06:32PM UTC
Jobs 1
Files 25
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 May 2026 06:31PM UTC coverage: 84.66% (+0.4%) from 84.247%
25572603805

Pull #285

github

paskal
fix(sender/email): don't log email body, log size instead

The verify provider sends one-shot magic-link tokens by email; the
Email sender's debug log dumped the full body verbatim:

    [DEBUG] send "Confirmation token: <jwt>" to victim@example.com

Anyone with log access (centralized logging, crash bundles, support
tools, mail-gateway-adjacent observability) could redeem that token
within its TTL — independently of the legitimate recipient. The
verify-replay PR (#281) limits reuse to one consumption, but the
log-reader can still race the user for that one consumption.

Log only the recipient and the body length:

    [DEBUG] send 142-byte message to victim@example.com

Same fix in v1 (provider/sender/email.go:84) and v2
(v2/provider/sender/email.go:84), single PR.

Test: TestEmail_SendDoesNotLogBody captures logger output, sends a
known-secret body to a non-existent SMTP host, and asserts the body
substring is absent while the recipient is present. Added in both
modules.
Pull Request #285: fix(sender/email): don't log email body, log size instead

1 of 1 new or added line in 1 file covered. (100.0%)

2798 of 3305 relevant lines covered (84.66%)

7.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25572603805.1 08 May 2026 06:32PM UTC 25
84.66
GitHub Action Run
Source Files on build 25572603805
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #285
  • PR Base - master (#25421111866)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc