Skip to content

feat: redact email addresses in exception text too, through Inventory 0.2.0 - #87

Merged
crazeydave merged 1 commit into
mainfrom
feat/inventory-redact
Oct 28, 2026
Merged

crazeydave merged 1 commit into
mainfrom
feat/inventory-redact

Conversation

@crazeydave

Copy link
Copy Markdown
Contributor

Adopts Inventory 0.2.0's Redact (bleedingdeacons/inventory#8).

Register's EmailRedactingEnricher was added in Configure, which runs before Inventory's own enrichers, and could not touch the exception itself. So an address in an exception's message — an SMTP server refusing a recipient, say — reached the log files and Better Stack as it was, both as the exception text and as ExceptionMessage.

  • MauiProgram passes Redact = new EmailRedactor(LogRedactionKey.Get()).Redact. Inventory applies it to every property after its enrichers, and to the exception text in front of every sink.
  • EmailRedactingEnricher is removed; its tests now run EmailRedactor through Inventory's RedactingEnricher, plus one for an exception's text.
  • Tokens are unchanged (email:xxxxxxxx, per-tablet key), so logs still line up across the change.
  • Inventory and Inventory.Maui 0.1.1 → 0.2.0.

326 tests and the specs pass; both heads build.

… 0.2.0

Register's enricher ran in Configure, before Inventory's exception
enricher, so an address in an exception's message reached Better Stack
as it was. Inventory now takes the redaction itself and applies it to
every property and to the exception text in front of every sink.
@crazeydave
crazeydave merged commit 15629ce into main Oct 28, 2026
8 checks passed
@crazeydave
crazeydave deleted the feat/inventory-redact branch October 28, 2026 17:20
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.

1 participant