Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Refactor GatewayUri - #53

Closed
nothingmuch wants to merge 3 commits into
payjoin:mainfrom
nothingmuch:gateway-uri
Closed

nothingmuch wants to merge 3 commits into
payjoin:mainfrom
nothingmuch:gateway-uri

Conversation

@nothingmuch

Copy link
Copy Markdown
Contributor

Use a non optional Scheme & Authority for representing the internal state, instead of a Uri which may be relative, and may contain a path.

Authority is normalized to have an explicit port, as before.

Resolution of authority to a socket addr is now async, to avoid blocking while waiting for host resolution, in anticipation of gateway opt-in allowing adversary chosen hostnames to be resolved which may be a DoS concern.

Closes #51.

Since not all dependencies have precise semvers constraints, a blanket
cargo update can break MSRV.

This means that the repository can bitrot, with CI jobs failing in ways
not related to changes to the codebase.

This is a workaround, see also payjoin#43 for description of the proper way to
fix this.
Use a non optional Scheme & Authority for representing the internal
state, instead of a Uri which may be relative, and may contain a path.

Authority is normalized to have an explicit port, as before.

Resolution of authority to a socket addr is now async, to avoid blocking
while waiting for host resolution, in anticipation of gateway opt-in
allowing adversary chosen hostnames to be resolved which may be a DoS
concern.

Closes payjoin#51.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ws and connect bootstrapping may block

1 participant