Skip to content

Sanitize shortid when storing metrics#1434

Open
zealsham wants to merge 1 commit intopayjoin:masterfrom
zealsham:exclude-shortid
Open

Sanitize shortid when storing metrics#1434
zealsham wants to merge 1 commit intopayjoin:masterfrom
zealsham:exclude-shortid

Conversation

@zealsham
Copy link
Collaborator

@zealsham zealsham commented Mar 21, 2026

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:

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
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 23390790251

Details

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

Changes Missing Coverage Covered Lines Changed/Added Lines %
payjoin-mailroom/src/lib.rs 49 50 98.0%
Totals Coverage Status
Change from base Build 23300212261: 0.1%
Covered Lines: 10710
Relevant Lines: 12713

💛 - Coveralls

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.

2 participants