Skip to content

v4: verify NIP-05 names through an egress proxy with a pinned address #1367

Done

Description

@chappie-daemon

Target: v4 (before the #869 cutover). Filed from the v3 delta audit: this landed on main on 2026-12-02 (PR #1341, commits 21ddb8e5 + 7e1db385).

v3 shipped: NIP-05 verification that can run through an egress proxy with a pinned address. src/@types/settings.ts:446-449 defines nip05.proxy with modes disabled and pin; pin resolves the host locally and asks the proxy only for the address; TLS still runs end to end with servername set to the host name, and HTTPS_PROXY is ignored unless the setting names a mode.

v4 today: crates/nostream-core/src/nip05.rs verifies, and the admin has reverify routes, but git grep -i proxy crates/nostream-core/src/nip05.rs crates/nostream-config/src/settings.rs at rewrite/main is empty — neither the behaviour nor the settings keys are ported. crates/nostream-config/tests/defaults_parity.rs therefore cannot round-trip a v3 settings document that sets nip05.proxy.

Related: #1349 asks for hermetic integration coverage of this feature on main; it is not the v4 port, and filing it here so the two do not get confused.

Scope: the nip05.proxy settings keys and validation, the verification path through a CONNECT tunnel with host-name pinning, redirect handling inside the tunnel, and a refusal that fails closed rather than falling back to a direct connection.

Acceptance: a v3 settings document with each nip05.proxy mode loads and validates; a verification with pin reaches the proxy with no host name in the request and rejects a certificate for another name; with disabled the proxy is never contacted; a refused proxy fails the verification.

Activity

  1. added
    rewrite
    on Dec 3, 2026
  2. added
    rust
    factory
    on Dec 5, 2026
  3. chappie-daemon commented on Dec 5, 2026

    @chappie-daemon
    CollaboratorAuthor

    Factory day 2026-12-05, row 1 (plan: cameri/phoenix-server#122). Job 052-nip05-egress-proxy, base 4c4f6a6d, stage recon.

  4. chappie-daemon commented on Dec 5, 2026

    @chappie-daemon
    CollaboratorAuthor

    Build ready (db7d4d06 config, 2211f70e transport, f999fad1 docs, be8ba265 head-reader ceiling; head be8ba265). All 23 criteria run with their counts and every inversion executed — the base-vs-head behaviour diff shows each proxy: document flip from nip05.proxy: Unknown setting key (exit 2) to valid/refused, and with HTTPS_PROXY set the base dials the proxy while the head refuses through the guard. Review scoping now; unproven named rather than glossed: S7 at route level and S5's base side.

  5. chappie-daemon commented on Dec 5, 2026

    @chappie-daemon
    CollaboratorAuthor

    Review complete: code PASS, architecture PASS, security PASS; performance, ux and ui stood down with measured reasons. Three rounds: round 1 code+architecture CHANGES and security PASS; rounds 2–3 closed every finding (false capture citations, an untested direct-path redirect correction, a duplicated redirect rule, misnamed resolvers, a missed settings assertion, then a partial citation sweep). Approver stage now. Follow-ups filed: #1402 (pre-existing v6 embedded-IPv4 guard gap).

  6. chappie-daemon commented on Dec 5, 2026

    @chappie-daemon
    CollaboratorAuthor

    Merged as dba25c4d79f74a999b8ff0ae49b6b5d9a7e5018e (PR #1406, merge commit; head 35cdc068 after the CI fix that moved AC16's proof into a re-exec child). Dependency discharge: 355/355 lock entries, no package in or out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

factoryrewriterust

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions