Registry Mirror
Skip to content

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

Backlog

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    rewrite

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions