Skip to content

KVM: the console's certificate fingerprint matches the served certificate, and five wrong tokens mint a fresh one #3070

Closed

Description

@VijitSingh97

What's the problem

Manual step: checklist 13.3–13.4 (M1, M2). The first-boot console prints the setup address, the one-time token and a SHA-256 fingerprint. The operator compares it with the browser's certificate. Five wrong tokens mint a fresh token on the console.

Current coverage:

  • tests/os/phases/boot.sh only matches the token banner loosely.
  • No KVM test compares the printed fingerprint with the certificate actually served; appliance-hostname-leg.sh reads SANs only. test-appliance-identity.sh asserts only that the fingerprint contains :.
  • The lockout counter is tier 1 only (test_wizard_setup_and_install.py).
  • The host loop that re-mints the token (lib/pithead/12-firstboot-wizard.sh) has no test, and no KVM row ever sends a wrong token.

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 (KVM boot phase):

  • Parse the serial banner, and assert the fingerprint equals openssl s_client -connect <ip>:443 | openssl x509 -fingerprint -sha256.
  • Send five wrong tokens. Assert a new pit-XXXXXX appears on serial, the old token is refused, and the new one is accepted.

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
    testing
    appliance
    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

    Grouped with #2633, but PR #3572 does not close it: Console certificate and token-rotation coverage requires separate appliance KVM work and shares no implementation with dashboard pytest timing.. Released for its own pick.

  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2143. Draft PR #3583 adds console certificate and token-rotation coverage; local checks and both reviews pass. KVM proof is blocked by bench-ci#2143 because the installed client rejects the required --base argument; no job was created. Resume the exact-head boot proof after the client update; GitHub checks remain queued.

    The runner resumes this issue when that one closes.

  5. added
    blocked
    and removed
    blocked
    on Oct 21, 2026
  6. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. Fleet tier4-kvm submit and idempotent replay exited 1 with submission response lost: No route to host; no job ID returned. The runner re-checks it (first at 2026-10-21T19:13Z, at most 5 times); the durable fix is tracked in p2pool-starter-stack/bench-ci#2109.

  7. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #3554. KVM boot job 2685 passed every new assertion; completed evidence is preserved verbatim in draft PR #3583. The sole failing GitHub check is the certifi image-security gate owned by #3554; its fix must reach develop-v2.1.0 before this branch can merge the base and renew proof.

    The runner resumes this issue when that one closes.

  8. added
    blocked
    on Oct 21, 2026
  9. 6 remaining items

  10. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2160. Job 2735 failed before guest startup when the pinned XMRig clone hit HTTP/2 cancellation and early EOF; no boot assertions ran. Implementation and reviews remain complete, and the failure evidence is recorded in draft #3583. bench-ci#2160 must establish supported recovery before a fresh current-head boot proof can run.

    The runner resumes this issue when that one closes.

  11. added
    blocked
    on Oct 22, 2026
  12. removed
    blocked
    on Oct 23, 2026
  13. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Operator released this block (owner, 2026-10-23: use idle developer capacity on the backlog). It waited on bench-ci#2160, which is a recurring Cosign git-fetch flake that PR #3602 removes; KVM jobs pass between occurrences. Under the 10-21 rulings a flaky or iceboxed item is rerun rather than waited on, so carry on. If the same failure recurs on a bench proof, rerun it once before re-blocking.

  14. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Waiting on a transient artifact_read condition, not on another issue. bench-ci evidence for accepted job 2813 exhausted five client read attempts with No route to host and exit 1; no verdict is available. The runner re-checks it (first at 2026-10-23T01:54Z, 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

    Merged in #3583.

  16. added a commit that references this issue on Oct 23, 2026
    2178e8d
  17. added 4 commits that reference this issue on Oct 24, 2026
    9a4e138
    ca1a67e
    64e34ac
    04d1fa8
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-hardeningappliancetesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions