Skip to content

Tier 1: the clearnet-sync banner in status and the doctor warning, then their all-clear #3083

Done

Description

@VijitSingh97

What's the problem

While a chosen clearnet sync has no host attestation of the return to Tor, ./pithead status prints CLEARNET INITIAL SYNC OR TOR TRANSITION PENDING and ./pithead doctor warns. After the attestation the banner is gone and doctor reports all node P2P is Tor-only (manual checklist steps 1.10 and 1.13). No test asserts this operator text: print_clearnet_banner (lib/pithead/04-status.sh) and the doctor block (lib/pithead/06-doctor.sh) are only stubbed in tests. The predicate clearnet_tor_attested is tested in test-clearnet-firewall.sh, and tier 4 asserts the transition itself.

A second problem arrives with #3574. Under the Performance profile the nodes stay on clearnet and never return to Tor, yet the banner and the doctor result depend only on the sync flag plus the attestation. Performance would show "transition pending" for ever, or a change made without a test could claim "Tor-only" while a node is on clearnet. The text must be right for every profile, and then be pinned by a test.

What it impacts

  • Operators who run status or doctor under Performance: a permanent "pending" warning that contradicts a deliberate choice, or a false all-clear about how P2P is routed.
  • Operators with a temporary clearnet sync under Balance or Privacy: this text is the host-side signal that the IP is still exposed, and nothing guards it against regression.
  • Maintainers: checklist steps 1.10 and 1.13 stay manual until a test exists.

How I found it

How important is it

Medium, and the P3-hardening label stays. The text has no routing effect, but it ships with the Performance profile in v2.1.0, and a permanent false warning on a deliberate choice is a visible defect. It starts after #3574 lands (the profile and PITHEAD_PROFILE in .env must exist). The old block on #2774 is obsolete: #2774 is closed.

Acceptance criteria

All checks run in tier 1 (no docker, no bench), reuse the attestation fixture of test-clearnet-firewall.sh, and set the profile through PITHEAD_PROFILE in .env as #3574 renders it.

  • Balance and Privacy, MONERO_CLEARNET_SYNC=true and, separately, TARI_CLEARNET_SYNC=true, no attestation: status prints the PENDING banner naming Monero, Tari, or Monero + Tari as set, and doctor emits the clearnet WARN.
  • Same flags after a valid attestation: no banner, and doctor emits all node P2P is Tor-only.
  • A missing attestation, one that names a different transition (stale), and one the host does not own each keep the banner and the WARN.
  • Performance (flags true, never attested): status prints no PENDING banner and doctor emits no clearnet WARN. doctor emits one info line saying P2P uses clearnet by the Performance choice, like the firewall opt-out row.
  • Invariant over every case above plus a Performance config with one sync flag explicitly false: doctor never prints all node P2P is Tor-only while a local node's P2P is on clearnet (an unattested override, or Performance), and the PENDING banner never appears under Performance.
  • docs/privacy.md states what status and doctor print for a temporary override and for Performance.
  • No dashboard or old-UI change; no explanatory code comments.

Possible solutions

Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)

What's the problem

Manual step: checklist 1.10 and 1.13.

  • While a chosen clearnet initial sync (or its Tor transition) is pending, status prints CLEARNET INITIAL SYNC OR TOR TRANSITION PENDING and doctor warns.
  • After the host attests the return to Tor, the banner is gone and doctor reports all node P2P is Tor-only.

Current coverage:

  • print_clearnet_banner (lib/pithead/04-status.sh) and the doctor block (lib/pithead/06-doctor.sh) are only stubbed out in tests.
  • The predicate clearnet_tor_attested is tested (test-clearnet-firewall.sh), and tier 4 asserts the transition itself, but no test asserts this operator text.

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 check (tier 1):

  • With MONERO_CLEARNET_SYNC=true and no attestation, assert the banner and the doctor WARN.
  • After writing a valid attestation (the existing test-clearnet-firewall.sh fixture), assert the banner is gone and the OK line is shown.

Found while building the manual QA walkthrough (#3065). Part of #3068. Test debt for after the 2.0.0 cut, so it is blocked by #2774.

Activity

  1. added
    setup
    testing
    P3-hardening
    blocked
    on Oct 3, 2026
  2. removed
    blocked
    on Oct 14, 2026
  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Parked in Icebox under the lean roadmap (owner, 2026-10-21): this tests a surface that v2.1.0 reshapes, so writing it now means rewriting it; the feature PRs carry their own tests.

  4. added
    blocked
    on Oct 27, 2026
  5. removed
    blocked
    on Nov 9, 2026
  6. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    Contributor

    Merged in #4430.

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