Skip to content

Rig wizard: mine to a Pithead or any other pool (with TLS choice); stop pinning control to the pool's address #4009

Open
0 of 4 issues completed

Description

@pithead-developer

What's the problem

The rig wizard accepts any host:port but treats the pool as a Pithead. _submit_rig (dashboard/mining_dashboard/wizard/server.py:306) takes host:port, an optional worker (defaults to hostname, becomes pools[].user) and an optional password, with no scheme or TLS option. The host then needs a successful 5 s TCP dial (lib/pithead/08-uninstall-firstboot.sh firstboot_consume_rig), so a pool that is down at setup blocks it. api_allow_from is pinned to the resolved IPv4 of the pool host (lib/pithead/14-local-miner.sh:306-336), so for a public pool control is pinned to the pool operator's address. Wording is Pithead-only. Public pools commonly need TLS.

What it impacts

Owners who want an appliance rig on a public pool with no Pithead: they cannot set it up offline, cannot choose TLS, and cannot reach the rig's update and check API from their LAN.

How I found it

Owner decisions of 2026-11-10 (item 4). Reading the wizard server, firstboot_consume_rig and render_rig_miner_config. The wizard-side details (5 s dial, numeric port check) came from the earlier research rounds and were not re-read in the skeptic pass.

How important is it

High for 2.1.0, part of making the rig stand alone.

Acceptance criteria

  • The rig step offers 'My Pithead' (prefilled when one answers) and 'Another pool'; for another pool the user-or-wallet field is labelled as such, the password stays optional, and a TLS on/off choice (with an optional fingerprint pin) is offered.
  • A failed pool dial is shown as a warning on the confirmation screen and the user can continue; host and port shape validation stays.
  • For a rig mining to another pool, api_allow_from is the rig's own connected subnet(s), with a documented way to widen it; for a Pithead rig it stays pinned to the coordinator. The token is always required.
  • The token card is shown in both cases, states that the token travels over plain HTTP on the LAN, and is worded for the case.
  • rig.json gains a paired boolean, default true so existing files keep working unchanged.
  • A KVM leg sets up a rig through 'Another pool' pointed at the CI Pithead's stratum, with no pairing, and reads its feed and API from the LAN. Automated tests use a Pithead only. Validating against an outside pool is a manual check the owner runs ad hoc when needed, since an automated leg would send hashrate away from the operator's pool (owner, 2026-11-10).
  • No Pithead-only field becomes mandatory.

Possible solutions

  • paired in rig.json and branch the allow-list on it (preferred).
  • Infer paired from the answering port: rejected as too clever for a user choice.

Sub-issues

Sub-issues

0 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added this to the v2.1.0 milestone on Nov 10, 2026
  2. added
    enhancement
    appliance
    on Nov 10, 2026
  3. pithead-developer commented on Nov 12, 2026

    @pithead-developer
    ContributorAuthor

    Grouped with #4011, but PR #4056 does not close it: The rig wizard is a much larger change than this update-channel hardening (wizard UI flow, firstboot_consume_rig, api_allow_from wiring, and its own KVM legs); it needs its own branch, review scope, and bench legs rather than riding this PR.. Released for its own pick.

  4. added
    tracker
    on Nov 12, 2026
  5. pithead-architect commented on Nov 12, 2026

    @pithead-architect

    A local session judged this too big for one local session (Too big for one local session: #4009 alone spans the wizard SPA, wizard server, host firstboot and the miner-config renderer (~6 source files, four subsystems, its own KVM legs), and the two grouped siblings are blocked by open work outside this group (#4017 on rigforge#682 + #4014; #4019 on #4009 i). The runner filed 4 chunks as sub-issues and marked this issue a tracker, so it is not picked again:

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

    applianceenhancementtracker

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions