Skip to content

Forward appliance fixture credentials to authenticated metrics coverage #3667

Open

Description

@pithead-developer

What's the problem

The appliance stack fixture has the dashboard login from its wizard handoff but does not pass it as IT_DASHBOARD_PASSWORD when it launches the integration harness. Authenticated /metrics therefore becomes a missing leg, and strict coverage rejects the otherwise exercised check invocation. The targeted e2e check pregate also lacks this input; its authorized fixture credential source and supported transport are not yet established.

what it impacts

Authenticated metrics coverage in the supported appliance stack phase and targeted e2e check pregate, including grouped #3403/#3405 and draft #3616. The strict e2e pregate also prevents the required later paths from executing. Dashboard authentication itself is not shown broken; the fixture lacks the required input for its existing check.

How I found it

Job 2943's complete log and retained kvm-stack.log report /metrics via Caddy missing because the dashboard login is set but IT_DASHBOARD_PASSWORD is absent. tests/os/phases/stack.sh reads wizard credentials and uses them for the API probe, while _stack_run_integration invokes the harness without this input. tests/integration/lib/run-scenario.sh explicitly requires it for authenticated metrics. Open issues were searched for authenticated metrics, dashboard password forwarding and the input variable; no open issue owns this fixture gap.

bench-ci job 2943@3cd43211939a918edf2ca9364ca4bef47c4eb91e · pithead · tier4-kvm

Job 3055@99892fdc01722d1f719dcde9a63185ea2bfe05f4 reproduced the e2e caller omission after the Tor prerequisite was incorporated: its completed log, retained harness artifact and pregate manifest show missing authenticated metrics, strict coverage rejection and refusal of later destructive paths. Baseline and restoration passed. Exact generated evidence is retained in the occurrence comment and draft #3616.

how important is it

It prevents complete strict appliance coverage and leaves the authenticated metrics path untested in this fixture. No leaked credential or dashboard runtime defect is established.

acceptance criteria

  • Establish the e2e caller’s existing authorized fixture credential source and supported transport, without inventing or retrieving a new credential.
  • Complete both appliance and e2e caller forwarding through the supported integration input boundary.
  • Replace the former land-first dependency on Test: guard the release gate so no test is unregistered and no required leg skips green #3405 with joint validation: the Test: run every container-engine call form of lib/pithead on the Podman appliance #3403 owner incorporates these scoped fixes into existing testing: fix #3403, #3405 — enforce appliance and release test contracts #3616 with the strict implementation before either PR merges.
  • Obtain completed strict KVM install, stack and provision proof plus targeted e2e proof on the combined current head; authenticated metrics and the required later paths must execute and pass. Unrelated failing rows retain their owners; the whole phase need not pass.
  • Require current-head agent PASS followed by formal owner approval, and avoid duplicate delivery.
  • Retain failure for missing/incorrect required credentials; do not disable authentication or relabel the missing leg.
  • Add registered regressions covering both actual caller forwarding paths, including missing/incorrect inputs, failure propagation and exclusion of credential values from arguments, logs and artifacts.
  • Keep credential values out of command arguments, logs, artifacts and public evidence; document the fixture input contract.

possible solutions

Use the already captured wizard handoff credential at the integration launch boundary and retain the existing stdin-based authentication mechanism. The exact transport and cleanup must follow the repository's credential-handling contract.

Activity

  1. added
    needs-triage
    on Oct 25, 2026
  2. added
    testing
    on Oct 25, 2026
  3. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3405. Draft PR #3669 contains credential forwarding, regression tests and corrected documentation; focused checks pass and both reviews found no source defects. Required strict KVM proof needs #3405's implementation in #3616 to land on the release base. Its owner must land that prerequisite, then this branch can merge the updated base and submit the managed proof; the blocker is documented on the PR.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Oct 25, 2026
  5. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    ContributorAuthor

    Additional affected caller in 2974@3cd43211939a918edf2ca9364ca4bef47c4eb91e for grouped #3403/#3405 / draft #3616: the targeted e2e current-state pregate also records /metrics via Caddy as missing because dashboard login is enabled and IT_DASHBOARD_PASSWORD is absent. The raw job log was reopened and the check artifacts retained. This expands the known caller coverage beyond the appliance invocation; the available credential source and transport for this e2e caller remain unknown.

    The job's binding failure was a separate Tor positive control, owned by #2619, and the detached harness did not launch. No successful strict-coverage verdict is claimed. Preserve credential safety and the missing-input failure while accounting for both callers; no credential values are included in this report.

  6. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    ContributorAuthor

    Current-head strict e2e occurrence for grouped #3403/#3405 and draft #3616: 3055@99892fdc01722d1f719dcde9a63185ea2bfe05f4 reached the check pregate but recorded authenticated /metrics via Caddy as missing because the dashboard input was absent. Strict coverage rejected that omission and refused the later destructive paths. The completed job log, retained harness log and pregate manifest were read; no later-path PASS is claimed. Baseline and restoration proof passed.

    This is the already reported e2e caller of #3667, not a new defect. Draft #3669 currently waits for #3405's strict implementation; this occurrence exposes the prerequisite cycle. The implementation head is preserved, and no unchanged e2e retry or authentication bypass was attempted. Joint validation needs to account for both the appliance fixture and the e2e pregate caller while preserving missing/incorrect-input failure and credential safety.

    bench-ci job 3055@99892fdc01722d1f719dcde9a63185ea2bfe05f4 · pithead · tier4-e2e

    • options: {"mode": "targeted", "require_complete": true}
    • status: completed · conclusion: failure · exit 1 · 19m 41s
    • baseline verified: yes · rig restored: yes
    • node guard: not recorded · no comparison recorded
    • steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
    • rows: 120 pass · 1 fail · 2 skip (by-design 1, missing 1)
    • failed rows:
      • E2E FAILED for '99892fdc01722d1f719dcde9a63185ea2bfe05f4' (harness exit 1). Artifacts under on . (no issue linked)
        Generated by bench-ci evidence 3055@99892fdc01722d1f719dcde9a63185ea2bfe05f4; re-run it to check.
  7. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    ContributorAuthor

    The operator’s joint-validation ruling supersedes the former land-first dependency on #3405. #3667 / PR #3669 must first establish the e2e caller’s existing authorized fixture credential source and supported transport, then complete both appliance and e2e caller fixes. Preserve missing/incorrect-input failures and keep values out of arguments, logs and artifacts. The current #3669 head covers only the appliance caller; no e2e fix or runtime PASS is claimed.

    The #3403 owner then incorporates the scoped fixes into existing #3616 with #3405’s strict implementation. Before either PR merges, obtain completed strict KVM install, stack and provision proof plus targeted e2e proof on the combined current head, including authenticated metrics and required later paths. Keep unrelated failing rows with their owners, avoid duplicate delivery, and require current-head agent PASS followed by formal owner approval. Both PR descriptions have been corrected in place; the obsolete native #3667 dependency and blocked label are being removed so its owner can continue.

  8. removed
    blocked
    on Oct 27, 2026
  9. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    ContributorAuthor

    Filed privately (pithead-3667.md); it needs an answer there, then remove the question label.

  10. added
    question
    and removed
    question
    on Oct 27, 2026
  11. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    ContributorAuthor

    The operator’s removed hold is superseded by completed source incorporation: both #3667 caller fixes and the inventory correction are now in existing #3616 at 1277bc8bd0d7d6f7ba85746439e9ca934cf605de. Only the three scoped commits were picked; the intervening merge was excluded. The assigned release base was merged separately, and conflicts preserve dashboard stdin forwarding together with strict coverage.

    The appliance and e2e credential regressions were independently reproduced RED on the unchanged pre-fix head and GREEN after incorporation. Verifier and security reviews are source-clean on the combined head. Strict install 3107@1277bc8bd0d7d6f7ba85746439e9ca934cf605de and targeted e2e 3108@1277bc8bd0d7d6f7ba85746439e9ca934cf605de are queued; exact generated evidence is in both drafts. No duplicate jobs were submitted by the #3667 session, and no runtime PASS is claimed.

    The normal e2e runner path must establish authenticated metrics and the required later paths using only the existing authorized per-tier input; no plaintext was retrieved or new credential installed. Strict stack and provision proof follow sequentially after install. Keep unrelated failing rows with their owners. Before either PR merges, require completed combined-head proof, current-head agent PASS and then formal owner approval. Both PR dependency/evidence records have been updated in place.

  12. pithead-developer commented on Oct 28, 2026

    @pithead-developer
    ContributorAuthor

    Needs an operator action (do it, then close this or, then remove the operator-action label):

    Strict install 3107 passed; e2e 3108 confirmed the dashboard input absent/empty at the fixed forwarding boundary, so mapping recovery must precede merge and completed runtime proof. On miner-1, the owner must read ~/README.md, wait for the runner to be idle, back up its installed BENCH_CI_CONFIG, and merge a nonempty IT_DASHBOARD_PASSWORD into the existing [tiers."pithead/tier4-e2e"].env using that bench’s existing authorized dashboard password, preserving other entries and permissions without printing the value or passing it in argv; from the installed checkout validate with uv run python -c 'import os; from pathlib import Path; from bench_ci.config import load; load(Path(os.environ["BENCH_CI_CONFIG"]))', stop bench-ci-update.timer, wait for bench-ci-update.service to become inactive/failed, restart bench-ci, wait for its normal synced-at-tip readiness, then restart the timer. Verification is a fresh owner-submitted strict targeted e2e run showing authenticated metrics and later paths executed, plus the remaining stack/provision proofs; rollback restores the saved config and repeats validation and the same idle-restart procedure.

  13. added
    operator-action
    on Oct 28, 2026
  14. pithead-developer commented on Oct 28, 2026

    @pithead-developer
    ContributorAuthor

    Completed current-head evidence for grouped #3403/#3405 and joint #3667 proof has been read. Install proof and GitHub checks are green at 1277bc8bd0d7d6f7ba85746439e9ca934cf605de. Targeted e2e 3108@1277bc8bd0d7d6f7ba85746439e9ca934cf605de again records authenticated metrics input as missing; strict coverage refuses the required later paths. The complete log, retained harness log and pregate manifest were fetched and read.

    Filed bench-ci#2297 for the distinct effective runner-input gap and the resulting wrapper failure row. Reuse the owner-managed mapping recovery instructions already handed to the manual infrastructure queue by the #3667 session; do not create a second repair path or credential. The #3403 session has not inspected active mapping values/state. The caller fixes remain incorporated; no #3667 block was restored, no unchanged e2e run repeated and no host changed.

    Independent strict stack proof continues in 3155@1277bc8bd0d7d6f7ba85746439e9ca934cf605de; provision follows sequentially on the unchanged head. Both drafts contain refreshed generated evidence, source review results and pending proof limits. Required later paths, current-head agent PASS after proof and formal owner approval remain pending; unrelated failing rows retain their owners.

  15. pithead-developer commented on Oct 28, 2026

    @pithead-developer
    ContributorAuthor

    Completed stack evidence and the complete log/retained artifact were read at preserved head 1277bc8bd0d7d6f7ba85746439e9ca934cf605de. The engine forms, original census negative control and churn detection pass, as do the non-destructive appliance check and stratum controls. The job remains non-passing: preview failures have canonical owner #3625, and the distinct local-Tari continuity omission on the remote fixture is now #3765. These unrelated findings were not folded into this implementation or bypassed.

    Current-head install proof and GitHub checks remain green. Strict provision job 3157@1277bc8bd0d7d6f7ba85746439e9ca934cf605de is running; refreshed generated evidence is in both drafts. Targeted e2e remains pending the existing owner-managed input recovery tracked by bench-ci#2297; no unchanged e2e retry or #3667 block was restored. Completed current-head owned proof, agent PASS after runtime evidence and formal owner approval remain required before merge.

  16. removed
    operator-action
    on Nov 6, 2026
  17. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Operator: released to the runner (owner 2026-11-06). New work goes to the local Flash-Next model first; Claude only after three local rounds or for sensitive work.

  18. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2297. PR #3669 is blocked on bench-ci#2297. The bench's pithead/tier4-e2e config does not set IT_DASHBOARD_PASSWORD, so targeted e2e 3108 on combined head 1277bc8 shows /metrics via Caddy as missing and strict coverage refuses the later paths, even though the forwarding is in place. Already proven on that head: install 3107 is green; stack 3155's non-destructive check passes with 0 missing (the appliance fix works), and its other red rows belong to #3383/#3625 and #3765; provision 3160's single red row belongs to #3674, with #3759 owning fixture isolation. This session merged develop-v2.1.0 to clear the conflict and added a selftest that drives the credential through the base's new remote inline-pregate wrapper; it fails when the wrapper drops stdin or leaks the value and passes on head 1e38ee2. The security reviewer found nothing; I fixed two verifier gaps and left two out of scope (the strict missing-input gate is #3616's; the wrapper drain path is base code). I rewrote the PR body with fresh evidence and posted the block explanation on the PR. GitHub CI is still running: most checks, including the Shell suite with the new test, are unfinished, and one has failed, the dashboard Trivy scan, which looks like the repo-wide apt CVE in #3923. To unblock: the owner completes bench-ci#2297; the #3403 owner refreshes #3616 with this head (it is also conflicting with its base) and submits one strict targeted e2e; once /metrics via Caddy passes, correct docs/dev/testing-strategy.md:475 in place.

    The runner resumes this issue when that one closes.

  19. added
    blocked
    on Nov 6, 2026
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

    blockedneeds-triagetesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions