Repository navigation
dashboard.mode switches show in describe-change and refuse an appliance lockout - #4682
Draft
pithead-developer[bot] wants to merge 2 commits into
Draft
pithead-developer[bot] wants to merge 2 commits into
pithead-developer[bot] wants to merge 2 commits into
Conversation
Contributor
Author
|
Blocked on the two Trivy image scans, which this change does not cause.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the problem
Part of #4539
Flipping
dashboard.moderecreates the dashboard and caddy containers, butdescribe-changehad no row for it, so an operator applied a mode switch blind.dashboard.mode: apiwithdashboard.control.enabledoff 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: aDASHBOARD_MODEcase. Each of the six transitions printsDashboard mode: old → new, what is served, that the dashboard container is recreated and caddy is not, and that it takes effect on apply. Switching toapiis a CONFIRM row.lib/pithead/28-parse-and-validate-config.sh:apiwith control off errors on an appliance and warns on DIY.dashboardandboth, andapiwith control on, are unchanged.docs/configuration.md: thedashboard.moderow describes the preview and the guard.DASHBOARD_MODE, so apply recreates only the dashboard. The preview says so rather than claim a recreate that does not happen.apidoes 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 newissue 4539section (27 assertions). Reds:Build image (dashboard)andBuild image (tor)fail in the Trivy CVE scan of their base images; this diff touches no Dockerfile or image input. Locallymake lint-file-budgetfails on files this diff does not touch.Ponytail pass: nothing cut; every line serves an acceptance criterion.