feat(deckle-01): kill switch for the control plane that keeps the sites online #594
No reviewers
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos!594
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lab/20261101-0139"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #593
What
services.deckle-hosted.controlPlane.enable(defaulttrue). Set tofalseonhosts/deckle-01/configuration.nixit masksdeckle-hosted.service,deckle-build-image.serviceand the trash-purge timer. Caddy and the 02:30 database dump keep running, the sopsrestartUnitsand the metricsmonitoredServicesdrop the unit so a switched-off control plane neither fails activation nor pages anyone.New runbook
docs/runbooks/deckle-kill-switch.md: the immediatesystemctl stop, the durable flip, and what stops working meanwhile. ADR-0032 gets a consequence bullet pointing at it.Why it keeps the sites online
deploy/Caddyfileserves<slug>.<base>and custom hostnames withfile_serverfrom<data_dir>/docroot; the control plane is only the reverse-proxy upstream for the dashboard, editor, previews, git,/.deckle-hosted/*(contact form, appointments widget), redirect hosts and the on-demand TLSask. Caddy's unit isafterdeckle-hosted, notrequires, so masking the control plane does not touch it.Known gaps while switched off, all listed in the runbook: contact form and appointments widget,
www./old-slug redirects, and new or renewing TLS certificates (Caddy asks the control plane before issuing; renewals start a month before expiry, so days are harmless).Verification
trueandfalse: withfalse,systemd.unitshasdeckle-hosted.service,deckle-build-image.serviceanddeckle-hosted-trash-purge.serviceatenable = false(masked), the trash-purge timer is gone,caddy.servicestays enabled and the db-dump timer stays.scripts/test-configuration deckle-01dry-build did not run: the lab gateway blocks the sops-nix tarball download from GitHub, and the pre-commit symlink in this bare checkout is dangling. Please let the hook run on your clone before merging.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.