Guard recovery bootstrap from production host
CI / tests-and-images (pull_request) Has been cancelled
CI / tests-and-images (pull_request) Has been cancelled
This commit is contained in:
1 parent
97803ca5de
commit
16f97d5f73
7 files changed
+60
-2
No files matched your search
@@ -47,6 +47,9 @@ from planned configuration.
|
||||
- The repository has a cold-backup archive/verification tool with staging-only
|
||||
restore and unit tests. It has not run against production; do not treat this
|
||||
as an active backup or verified recovery.
|
||||
- Recovery bootstrap has an explicit `--recovery-target` mode that refuses the
|
||||
inventoried production hostname/IP; its host-identity guard has shell tests.
|
||||
The mode has not been run on a VPS.
|
||||
- An isolated local Compose smoke test built the backend/OpenSearch images,
|
||||
reached healthy status for OpenSearch, backend, and Caddy, and returned HTTP
|
||||
200 for `/review` through Caddy. Its containers, networks, and volumes were
|
||||
|
||||
@@ -15,7 +15,9 @@ configuration, and a backup and restore have been tested.
|
||||
`sudo bash infra/bootstrap/bootstrap-ubuntu-24.04.sh` from a verified copy
|
||||
of this branch on the VPS. The script installs Docker Engine/Compose and Git,
|
||||
sets Docker log rotation, and creates root-owned paths. It refuses other OS
|
||||
versions and does not change SSH, UFW, sudoers, or user groups.
|
||||
versions and does not change SSH, UFW, sudoers, or user groups. Use
|
||||
`--recovery-target` only on a replacement host; it refuses the known
|
||||
production host identity.
|
||||
2. Install the approved repository checkout at `/opt/akyldash/current` and
|
||||
configure `/etc/akyldash/production.env` plus
|
||||
`/etc/akyldash/review_secret` outside Git. The secret file must be
|
||||
|
||||
@@ -16,7 +16,9 @@ run recovery commands against the existing production by accident.
|
||||
Preserve the host's existing root SSH and firewall policy until an owner has
|
||||
reviewed the change.
|
||||
3. Check out the approved Git revision and run
|
||||
`sudo bash infra/bootstrap/bootstrap-ubuntu-24.04.sh`. It installs Docker
|
||||
`sudo bash infra/bootstrap/bootstrap-ubuntu-24.04.sh --recovery-target`. The
|
||||
recovery mode refuses the inventoried production hostname/IP and writes a
|
||||
root-only marker at `/etc/akyldash/recovery-target`. It installs Docker
|
||||
Engine, Compose, Git, Docker log limits, and target directories.
|
||||
4. Configure DNS to point through Cloudflare to the recovery host and allow the
|
||||
owner to review/open TCP `80` and `443`. The production Compose Caddy service
|
||||
|
||||
Reference in new issue
Block a user