Skip to content

Remove public /metrics endpoint from directory#1178

Merged
spacebear21 merged 1 commit intopayjoin:masterfrom
spacebear21:private-directory-metrics
Oct 27, 2025
Merged

Remove public /metrics endpoint from directory#1178
spacebear21 merged 1 commit intopayjoin:masterfrom
spacebear21:private-directory-metrics

Conversation

@spacebear21
Copy link
Collaborator

Closes #1174

Metrics collection is typically done on a private network address rather than one that is exposed to open internet. This removes the public /metrics endpoint and serves metrics requests separately on the --metrics-port if one was provided.

Pull Request Checklist

Please confirm the following before requesting review:

Metrics collection is typically done on a private network address rather
than one that is exposed to open internet. This removes the public
/metrics endpoint and serves metrics requests separately on the
--metrics-port if one was provided.
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 18787026556

Details

  • 0 of 16 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 83.581%

Changes Missing Coverage Covered Lines Changed/Added Lines %
payjoin-directory/src/lib.rs 0 16 0.0%
Totals Coverage Status
Change from base Build 18783991185: -0.1%
Covered Lines: 8990
Relevant Lines: 10756

💛 - Coveralls

@zealsham
Copy link
Collaborator

ACK

@DanGould
Copy link
Contributor

cACK

@spacebear21 spacebear21 merged commit 2009ac0 into payjoin:master Oct 27, 2025
10 checks passed
_ => not_found(),
};

Ok(response)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we serve this at "/" metrics rather than "/"

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.

payjoin-directory should not expose /metrics publicly

4 participants