Skip to content

dashboard.mode switches show in describe-change and refuse an appliance lockout - #4682

Draft
pithead-developer[bot] wants to merge 2 commits into
develop-v2.1.0from
agent/4539-dashboard-mode-switches-show-in-describe
Draft

pithead-developer[bot] wants to merge 2 commits into
develop-v2.1.0from
agent/4539-dashboard-mode-switches-show-in-describe

Conversation

@pithead-developer

@pithead-developer pithead-developer Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What's the problem

Part of #4539

Flipping dashboard.mode recreates the dashboard and caddy containers, but describe-change had no row for it, so an operator applied a mode switch blind. dashboard.mode: api with dashboard.control.enabled off also validated cleanly on an appliance, which has no shell, leaving no way to change the config back.

How I fixed it

  • lib/pithead/39-describe-change.sh: a DASHBOARD_MODE case. Each of the six transitions prints Dashboard mode: old → new, what is served, that the dashboard container is recreated and caddy is not, and that it takes effect on apply. Switching to api is a CONFIRM row.
  • lib/pithead/28-parse-and-validate-config.sh: api with control off errors on an appliance and warns on DIY. dashboard and both, and api with control on, are unchanged.
  • docs/configuration.md: the dashboard.mode row describes the preview and the guard.
  • Deviation from the issue text: it says dashboard and caddy are recreated, but nothing in the Caddyfile or the caddy service reads DASHBOARD_MODE, so apply recreates only the dashboard. The preview says so rather than claim a recreate that does not happen. api does not yet remove the web UI, so the row does not say headless. Revisit both when the route change lands.

Here is the proof

Tier 1 shell suite is the proof row (no rendering change, so no tier 4 job). On the final head every Shell tests (pithead suite, block 1..5) check, with and without every piece selected, the shell lint and the standalone suites are green; block 1 runs the new issue 4539 section (27 assertions). Reds: Build image (dashboard) and Build image (tor) fail in the Trivy CVE scan of their base images; this diff touches no Dockerfile or image input. Locally make lint-file-budget fails on files this diff does not touch.

  • describe-change row per transition naming dashboard and caddy, pinned in tests/stack
  • api + control off: appliance errors, DIY warns
  • api with control, dashboard and both validate unchanged
  • GitHub shell tiers green on this head; the two Trivy image scans are red for reasons outside this diff

Ponytail pass: nothing cut; every line serves an acceptance criterion.

pithead-developer[bot] and others added 2 commits December 4, 2026 05:51
…ance api lockout (#4539)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, caddy not) (#4539)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@pithead-developer pithead-developer Bot added this to the v2.1.3 milestone Dec 4, 2026
@pithead-developer

Copy link
Copy Markdown
Contributor Author

Blocked on the two Trivy image scans, which this change does not cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stage/blocked its issue waits on another issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants