Skip to content

Remote Monero node over RPC-SSL with certificate pinning (--rpc-ssl, --rpc-ssl-fingerprint) #2489

Open

Description

@VijitSingh97

What's the problem

Parent: #2481 (P2Pool parity tracker).

What

TLS to the Monero node with certificate pinning. Upstream (since v4.4): --rpc-ssl Enable SSL on RPC connections to the Monero node and --rpc-ssl-fingerprint base64-encoded fingerprint of the Monero node's certificate (optional, use it for certificate pinning) (docs/COMMAND_LINE.MD, RPC-SSL).

Today

monero.mode: remote dials --host HOST --rpc-port PORT in the clear (docker-compose.yml:410-413). For a LAN node that is fine. For a node reached over the internet, RPC (the block template, the submitted block) travels unauthenticated and unencrypted, and #1897 already records that the remote node cannot even carry credentials. Under Tor the socat bridge (build/p2pool/entrypoint.sh:55-80) forwards the raw TCP stream, so TLS would pass through it unchanged.

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

How I found it

Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.

possible solutions

Proposed shape

  • monero.remote.rpc_ssl: false → --rpc-ssl; monero.remote.rpc_ssl_fingerprint: "" → --rpc-ssl-fingerprint (base64 SHA-256 SPKI, validated as base64 of 32 bytes).
  • The wizard's remote-node probe (lib/pithead/10-node-probe.sh) learns to probe over TLS and to print the node's fingerprint so the operator can pin it, with the same "only trust this if you are not being MITM'd" caveat upstream prints.
  • doctor checks the pin still matches on every run and turns the node card red on mismatch rather than letting P2Pool retry forever.
  • Also covers the payout-confirmation wallet's RPC to the same node when it moves to a remote node (today it is local-only).

Pairs with #1897 (remote RPC credentials); land the two under one monero.remote schema change.

Activity

  1. added this to the v2.x - post-GA milestone on Sep 20, 2026
  2. added
    enhancement
    monero
    p2pool
    security
    on Sep 20, 2026
  3. pithead-developer commented on Sep 24, 2026

    @pithead-developer
    Contributor

    Investigation brief (operator pre-read, 2026-09-23, corrected)

    Still valid. monero.mode: remote dials monerod RPC in the clear — docker-compose.yml:410-416 renders only --host/--rpc-port/--rpc-login/--zmq-port. config.reference.json:33-37's monero.remote block has no rpc_ssl/rpc_ssl_fingerprint keys, and no code anywhere in the repo renders --rpc-ssl or --rpc-ssl-fingerprint. P2Pool is pinned at v4.18.1 (build/p2pool/Dockerfile:4-5), which upstream confirms carries both flags since v4.4 — the gap is that Pithead never wired them, not a version mismatch. Under Tor the socat bridge (build/p2pool/entrypoint.sh:65-66) is a plain TCP forward, so TLS would ride through it unchanged once added.

    Root cause. Pure omission — never implemented, not broken or superseded by a merged PR (none found referencing rpc_ssl/rpc-ssl; PR search against pithead confirms no hits).

    Fix shape (corrected — two render sites, not one). The p2pool command line is rendered in two independent places: docker-compose.yml (Docker Compose path) and lib/pithead/36-quadlet-units.sh:246 (the Podman Quadlet appliance runtime, its own documented "second render target beside docker-compose"). Both need monero.remote.rpc_ssl (bool, default false) and monero.remote.rpc_ssl_fingerprint (string, base64 SHA-256 SPKI, validated as base64 of 32 bytes) added to the config schema and rendered as --rpc-ssl/--rpc-ssl-fingerprint conditionally, same pattern as the existing --rpc-login conditional already proven in both files. The Quadlet path also requires updating the tier-1 byte-for-byte fixtures at os/quadlet/p2pool.container, os/quadlet/local/p2pool.container and os/quadlet/payout/p2pool.container. That's still usable as a minimal land — an operator can pin a fingerprint obtained by hand. Wizard-probe TLS support and doctor's pin-mismatch check are real but separable UX, not required for a minimal land.

    Evidence tier. file:line, direct read of develop head (a5af51a). No CHANGELOG entry, no open or merged PR touches this.

    Tier requirement (corrected). Under tier-follows-the-path: the minimal land touches both a compose render (docker-compose.yml) and an os/ render (36-quadlet-units.sh + os/quadlet/ fixtures), so it needs both a tier4-e2e leg (compose path) and a tier4-kvm leg (os/Quadlet path) on the PR head — not deferred to the probe/doctor fast-follow. The fast-follow (wizard probe + doctor pin-mismatch) needs its own separate tier4-e2e leg as originally stated.

    Rulings needed.

    1. Ship with A remote Monero node that requires RPC auth cannot be described: monero.remote has no credential keys #1897 (remote RPC credentials) under one schema change, or independently? Default: independently — A remote Monero node that requires RPC auth cannot be described: monero.remote has no credential keys #1897 adds a secrets/redaction surface Remote Monero node over RPC-SSL with certificate pinning (--rpc-ssl, --rpc-ssl-fingerprint) #2489 doesn't need.
    2. Wizard/doctor UX same PR or fast-follow? Default: fast-follow — schema+render (both sites) is already useful alone.

    Duplicates/blockers. None blocking. Sibling to #1897 (same schema area). Child of tracker #2481; confirmed by GitHub milestone field (not just tracker text) that #2489 itself carries milestone "v2.x - post-GA", which per the ground rules is frozen until GA.

    Triage recommendation: MOVE-2.0.x (advisory only — v2.x - post-GA is frozen until GA, so this is a recommendation for the owner to action post-freeze, not an executable move). Real security gap for anyone already running a remote node, but the parent tracker and the issue's own milestone field both scope this as non-blocking for the 2.0.0 cut; land it in the first post-GA weeks rather than deferring to 2.1.

    Verify against the code before relying on this; it was written by an investigator, not the implementer.

  4. self-assigned this
    on Oct 6, 2026
  5. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Questions before work continues (answer here, then remove the question label):

    1. Should Remote Monero node over RPC-SSL with certificate pinning (--rpc-ssl, --rpc-ssl-fingerprint) #2489 proceed despite the owner's later deferral on parent P2Pool parity: every upstream v4.18 flag, console command and data-API field Pithead does not expose (tracker) #2481, or remain deferred to the Advanced options work in p2pool.extra_flags: an allowlisted passthrough so any upstream P2Pool option can be set from config.json, wizard and dashboard #2482? Default: honor the deferral because it is the latest explicit roadmap ruling.
    2. If implementation should proceed, may fingerprint discovery and doctor's pin-mismatch UI be deferred while this PR delivers validated TLS settings, both Compose and Quadlet rendering, and the TLS-aware preflight needed to accept remote nodes? Default: use that scope because it delivers usable TLS without expanding into diagnostics UI?
  6. added
    question
    on Oct 27, 2026
  7. pithead-architect commented on Oct 27, 2026

    @pithead-architect

    Ruling: Honor the owner’s 2026-10-16 decision on #2481: this remains deferred, with any later return through the hidden Advanced options work in #2482. Keep #2489 open in v2.x - post-GA and preserve the investigation. Do not start the proposed TLS subset or settle the fingerprint-discovery and doctor UI split now; implementation scope is considered when the owner reactivates that work.

  8. removed
    question
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementmonerop2poolsecurity

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions