• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 46922131161
81%

Build:
DEFAULT BRANCH: main
Ran 02 Dec 2026 04:08PM UTC
Jobs 2
Files 355
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Dec 2026 04:02PM UTC coverage: 81.033% (+0.06%) from 80.973%
46922131161

push

github

web-flow
feat(nip05): verify through an egress proxy with a pinned address (#1341)

## Description

Adds `nip05.proxy` (`disabled` or `pin`, default `disabled`) so a relay
that only reaches the internet through an egress proxy can verify NIP-05
identifiers again, without handing name resolution to the proxy.

With `pin` and a proxy in `HTTPS_PROXY`, NIP-05 verification uses a new
`PinnedProxyAgent` (`src/utils/pinned-proxy-agent.ts`):

- the host is resolved by the relay with `createSafeLookup`, and a host
with any private, loopback or link-local address is refused before the
proxy is contacted (the same refusal as today);
- the proxy is asked for `CONNECT <address>:443` with an address that
was checked, never the host name. If the proxy cannot reach one address
(for example an AAAA record on an IPv4-only network) the next checked
address is tried, so the proxy can only be sent to addresses the relay
validated;
- TLS runs through the tunnel with the host name as `servername`, so the
certificate is checked against the host and not the pinned address;
- every new connection goes through the same steps, so a redirect target
is resolved, checked and pinned too (`beforeRedirect` still runs first);
- a proxy that answers the `CONNECT` with a non-2xx status, closes the
connection or cannot be reached fails the verification with a reason
that names the proxy and the host. There is no fallback to proxy-side
resolution;
- proxy credentials in the URL are sent as `Proxy-Authorization: Basic`.

Other changes: `nip05.proxy` is validated by `validateSettings`
(`disabled` or `pin`), added to `resources/default-settings.yaml` and to
both tables in `CONFIGURATION.md`, and the `nip05.mode` note now says
that `HTTPS_PROXY` is ignored unless `nip05.proxy` is `pin`.

With the setting absent or `disabled`, nothing changes: no proxy is
consulted and `HTTPS_PROXY` is ignored, as after #1278. With `pin` and
no `HTTPS_PROXY`, the connection is direct. `NO_PROXY` is not read.

## Relate... (continued)

6521 of 8673 branches covered (75.19%)

Branch coverage included in aggregate %.

123 of 132 new or added lines in 3 files covered. (93.18%)

13192 of 15654 relevant lines covered (84.27%)

708.09 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
86.23
src/utils/pinned-proxy-agent.ts
1
95.19
0.07% src/utils/nip05.ts
Jobs
ID Job ID Ran Files Coverage
1 Integration - 46922131161.1 02 Dec 2026 04:08PM UTC 355
36.67
GitHub Action Run
2 Unit - 46922131161.2 02 Dec 2026 04:09PM UTC 355
79.09
GitHub Action Run
Source Files on build 46922131161
  • Tree
  • List 355
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46922131161
  • 7e1db385 on github
  • Prev Build on main (#46653105938)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc