Repository navigation
refactor: publish every host port at 1024 or above, in 23000-23999 for the services bitkit does not dial by a fixed number - #19
Conversation
4dd2049 to
4c8a818
Compare
|
Validation: passes at 4c8a818. This PR is stacked on #18; merge #18 first, and then this PR merges into CI: the repository runs no checks on pull requests. Local checks:
Bring-up: I started the default stack,
Not started here: |
…r the services bitkit does not dial by a fixed number
4c8a818 to
6ffd9bf
Compare
|
Merged as 3fc1159. The repositories that used the old host ports move in their own PRs:
The trezor tooling docs in open synonymdev/bitkit-android#1170 name the User Env dashboard on |
Refs:
Description
80, and an SSH remote forward of a port under 1024 needs root on macOS, so a simulator tunnel that forwarded the stack's ports failed as a whole.23000-23999, mostly at23000plus the last three digits of its container port: LNURL server23000, LDK backup23003, LNURL-auth23005, LND gRPC/REST/P2P23009/23180/23735, LNURL-pay fixture23010, payment request peers23012/23013, VSS23050, darkhttpd23080, Paykit Server23101, homeserver admin23288, homeserver-proxy control23298, PostgreSQL23432, Homegate PostgreSQL23433, Trezor controller/dashboard/MCP/VNC/noVNC23901/23902/23903/23590/23680. Generic ports such as 3000, 5432 and 8080 no longer collide with a developer's own services.43782/39388, electrs60001, Homegate6288, the Pubky testnet's6881,15411,15412,6286,6287, the Trezor Bridge's21325/21328, and Trezor User Env's controller9001. A local E2E build keeps working with no app change.lnd:8080,darkhttpd:80and so on.127.0.0.1:23735(--externalip), and the LNURL-pay fixture's LNURL-channel names the same address. A wallet that opens a channel dials the published P2P port.payment-requests/preparereads the peers' host ports fromFIXTURE_ISSUER_PORTandRC56_PEER_PORT(default23012,23013).pubky-marketplacedefaultsMARKETPLACE_PAYKIT_PORTto23101.1000 x nfor parallel copies of the stack gets no collision.Out of Scope
just run docker, the bitkit-ios LNURL journey README, bitkit-cli CONTRIBUTING and bitkit-mono's dev wrapper.Design
N/A — no UI changes.
Preview
N/A — no user-visible changes.
QA Notes
Journeys
N/A
Manual Tests
lnurl-payon the new ports → bitcoind, electrs, darkhttpd, LND, LNURL server, LNURL-pay fixture, PostgreSQL, LDK backup and VSS start.23000/healthreports LND synced with URI…@127.0.0.1:23735. LND REST on23180answersgetinfowith the admin macaroon. The fixture's23010/healthanswers.23080serves the fee estimates. VSS on23050answersgetObjectwithout a token with 401.23003answers HTTP. TCP connects to23009,23432and23735succeed. LND reads its fee URL fromdarkhttpd:80inside the network.http://localhost:23000/pay/…. The fixture's pay and channel LNURLs (asked withHost: 127.0.0.1:23010) decode tohttp://127.0.0.1:23010/…. The channel request's URI is<lnd pubkey>@127.0.0.1:23735../pubky-marketplace upwaits on Paykit Server through its new default23101and reportsready.payment-requests/prepareon its defaults (23012,23013) runs to the end ("verified": true). After the driver image is rebuilt,seedpublishes Paykit Server ashttp://localhost:23101, andverifyreportspassed.6287signs up through homeserver-proxy: the proxy's control port23298lists itsLOCK200,UNLOCK204 andPUT201.6286answersPubky Homeserver,15411answers HTTP,23288answers as the homeserver admin, and6881and15412accept TCP.Automated Checks
docker compose configwith every profile: every published host port is 1024 or above, and none sit a multiple of 1000 apart up to 8000.