Skip to content

Tier 4: stratum password accept/reject and a TLS-pinned client against the real proxy #3078

Closed

Description

@VijitSingh97

What's the problem

Manual checklist steps 4.1–4.3 and 6.7 lack automated real-proxy password and pinned-TLS client controls. The manual QA walkthrough (#3065), tracked by #3068, identified this gap. The original release dependency #2774 is closed.

what it impacts

DIY and appliance miners can lose authentication or TLS compatibility without a test detecting it. This is a demonstrated coverage gap, not evidence of a current production failure.

How I found it

The original inventory found no password scenario, only password-off argv checks in tests/integration/lib/run-state.sh, a stand-in mini-stack proxy and positive-only appliance shares in tests/os/rig-share-leg.sh. Current source now has the local-pruned-main-stratum-tls password/TLS scenario and the reusable tests/integration/rotate-auth-probe.py from #2344, but lacks the owner-requested negative controls. The owner extended the scope in the 2.0.0 RC manual-test automation sweep and settled retained-worker fixture setup in the operator ruling on this issue.

how important is it

Post-2.0.0 test debt for access control and the Connect-a-miner identity. It needs real-proxy DIY and appliance proof before coverage is claimed; static rendering and container health do not establish client authentication.

acceptance criteria

  • Reuse tests/integration/rotate-auth-probe.py against the real proxy. Authenticate a unique fixture worker without submitting shares, disconnect, and verify zero active connections and a numeric proxy-owned per-worker accepted counter of zero. Describe the retained row as fixture setup; refused logins create no worker row.
  • For 120 seconds, wrong and missing passwords produce explicit refusal, no job, no active connection and an accepted counter remaining numeric zero throughout. Do not substitute dashboard cumulative counters or a missing row for numeric zero.
  • With TLS enabled, change exactly one fingerprint nibble and require rejection before login/job. The fingerprint from the Connect-a-miner card and cleartext on the same published port both succeed with the correct password.
  • DIY uses the raw login probe and requires real mining jobs. The appliance uses its shipped prebuilt XMRig for explicit password/pin rejection and new proxy-owned accepted shares in both positive arms. Cover missing wire passwords separately because an unconfigured XMRig password defaults to x.
  • Register pure regression fixtures in CI and the appliance control in the KVM stack phase run by the RC gate. Demonstrate that the authentication control fails with its guard removed and passes when restored. Record current-head tier4-e2e and tier4-kvm stack evidence, including restoration and skips.
  • Correct the existing coverage documentation and keep credentials, miner logs and topology out of published output.

possible solutions

Extend the existing probe with bounded raw login, fingerprint and proxy-counter controls. Reuse the local TLS scenario for DIY and add a remote-node TLS scenario for the KVM stack guest, where the shipped XMRig can prove accepted shares. #2344 remains the separate credential-rotation behavior and may reuse the same probe.

Activity

  1. added
    setup
    testing
    P3-hardening
    blocked
    on Oct 3, 2026
  2. VijitSingh97 commented on Oct 12, 2026

    @VijitSingh97
    CollaboratorAuthor

    Extension from the 2.0.0 RC manual-test automation sweep (owner, 2026-10-12: automate what the RC tester did by hand). Add to this issue's test:

    add the negative arms RC testing ran with a real miner. (a) Wrong stratum password for 120 s: an explicit login refusal, no job, and the proxy's own per-worker accepted counter stays numeric 0 (not the dashboard's cumulative card); then the right password accepts. (b) With p2pool.stratum_tls on, a TLS client whose pinned fingerprint has one nibble flipped fails the handshake with no login or job, the correct pin from the Connect-a-miner card mines, and cleartext still works on the same port. Client: the raw login probe #3078 proposes on DIY; on the appliance the prebuilt XMRig the image ships for the built-in miner (--tls-fingerprint; lib/pithead/14-local-miner.sh).

  3. removed
    blocked
    on Oct 14, 2026
  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Grouped with #3077, but PR #3520 does not close it: PR #3520 says: Per the operator ruling, #3078 and #3079 remain outside this PR and receive no closing keyword. #3078 needs separate real-proxy password/TLS negative controls and tier4-e2e proof, including its owner extensions. #3079 needs separate apply/restore/factory-reset confirmation fixtures, including its ow. Released for its own pick.

  5. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Grouped with #3075, but PR #3604 does not close it: Requires real-proxy password/TLS negative controls and separate tier4-e2e proof, including the owner's extensions.. Released for its own pick.

  6. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Grouped with #3076, but PR #3609 does not close it: Real-proxy password/TLS controls and the owner's appliance miner extensions require separate e2e proof beyond the internal-disk installer path.. Released for its own pick.

  7. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

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

    May the test first register the worker through an authenticated login without submitting shares, disconnect it, then run the 120-second wrong-password control against its retained numeric zero counter (my default, because this preserves both explicit refusal and the required proxy-owned counter without changing upstream behavior)?

  8. added
    question
    on Oct 22, 2026
  9. pithead-architect commented on Oct 22, 2026

    @pithead-architect

    Ruling: Take the default: authenticate a unique test worker without submitting shares, disconnect it, verify zero active connections and a numeric proxy-owned accepted counter of zero, then run the 120-second wrong-password control. Require explicit refusal, no job, no active connection and that counter remaining zero throughout; also cover missing passwords. Describe the retained row as fixture setup, never as a worker created by a refused login. Reuse tests/integration/rotate-auth-probe.py, record concrete acceptance criteria, and preserve the owner's correct-password mining, incorrect-pin rejection, correct-pin mining and same-port cleartext controls, including appliance coverage. Show the authentication control fails when its guard is removed and passes when restored. Continue through the normal queue with current-head tier4-e2e and required appliance evidence; return waiting while jobs run.

  10. removed
    question
    on Oct 22, 2026
  11. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submission exhausted five same-key attempts with No route to host, exit 1; no job ID was confirmed. The runner re-checks it (first at 2026-10-22T08:11Z, at most 5 times); the durable fix is tracked in p2pool-starter-stack/bench-ci#2109.

  12. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2179. Current-head e2e proof passed, but KVM image preparation failed before appliance assertions with the missing BuildKit snapshot tracked by bench-ci#2179. Implementation, local checks and reviews are complete; the owner-managed recovery must be verified before fresh appliance proof can run, and the blocker is documented on PR #3611.

    The runner resumes this issue when that one closes.

  13. added
    blocked
    and removed
    blocked
    on Oct 22, 2026
  14. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submission exhausted five supported-client attempts with No route to host, exit 1; no job ID confirmed. The runner re-checks it (first at 2026-10-22T23:33Z, at most 5 times); the durable fix is tracked in p2pool-starter-stack/bench-ci#2109.

  15. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. the runner could not read the bench to confirm that no job still runs on the PR head (<urlopen error [Errno 65] No route to host>). The runner re-checks it (first at 2026-10-23T03:29Z, at most 5 times).

  16. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. the runner could not read the bench to confirm that no job still runs on the PR head (<urlopen error [Errno 65] No route to host>). The runner re-checks it (first at 2026-10-23T06:01Z, at most 5 times).

  17. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Merged in #3611.

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

    P3-hardeningsetuptesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions