Skip to content

Sanitize shortid when storing metrics#1434

Merged
spacebear21 merged 1 commit into
payjoin:masterfrom
zealsham:exclude-shortid
Apr 2, 2026
Merged

Sanitize shortid when storing metrics#1434
spacebear21 merged 1 commit into
payjoin:masterfrom
zealsham:exclude-shortid

Conversation

@zealsham

@zealsham zealsham commented Mar 21, 2026

Copy link
Copy Markdown
Collaborator

This pr addresses part of #1421. It replaces the actual unique mailbox identifier with "{short_id} when storing http metrics. Exposing the unique identifiers in metrics is a privacy/security risk.

chatgpt helped me extract the exact metric from the inmemory opentelemetry exporter

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls

coveralls commented Mar 21, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Test Coverage Report for Build 23903718713

Details

  • 59 of 60 (98.33%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 84.34%

Changes Missing Coverage Covered Lines Changed/Added Lines %
payjoin-mailroom/src/lib.rs 50 51 98.04%
Totals Coverage Status
Change from base Build 23766203897: 0.1%
Covered Lines: 10798
Relevant Lines: 12803

💛 - Coveralls

@nothingmuch nothingmuch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Comment thread payjoin-mailroom/src/middleware.rs Outdated
@zealsham
zealsham force-pushed the exclude-shortid branch 2 times, most recently from 9fbc8b5 to b114cd2 Compare April 2, 2026 13:41
This pr addresses part of payjoin#1421. It replaces the actual unique
mailbox identifier with "{short_id} when storing http metrics.
Exposing the unique identifiers in metrics  is a privacy/security risk
@zealsham
zealsham requested a review from nothingmuch April 2, 2026 15:37

@spacebear21 spacebear21 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@spacebear21
spacebear21 merged commit 9ed621f into payjoin:master Apr 2, 2026
16 checks passed
@benalleng benalleng mentioned this pull request Jun 7, 2026
17 tasks
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.

4 participants