A new server boot: separate firewall acceptance through CLI

Confirm a new boot through independent console evidence and the exact original manifest. CLI records only local acceptance while preserving original journals.

A shielded server at dawn, with a journal and a magnifying glass over a document.

After proving firewall boot loading, a separate question remains: how can setup continue on a new boot without rewriting original evidence? I added an explicit observation profile for an existing management firewall installation. It uses the current administrator key and sudo, but requires separately captured console evidence for this boot.

Keep the original installation intact

The install plan, old request, console evidence and server manifest retain their bytes. A new request points to the new console source; the profile selects the exact original plan with an independently reviewed SHA. Paths are placeholders; replace the SHA placeholder with the actual digest of the reviewed file.

{
  "schema_version": 1,
  "entry_mode": "existing",
  "environment_file": "/private/example-administrator.env",
  "firewall_boot": {
    "request_file": "/private/example-new-boot-request.json",
    "install_plan_file": "/private/example-original-install-plan.json",
    "install_plan_sha256": "<EXACT_ORIGINAL_INSTALL_PLAN_SHA256>"
  }
}

entry_mode=existing means separately reading an explicitly selected installation, not permission to adopt foreign rules. The original reader requires the exact manifest, accepted ownership, rules and current-boot receipt. Matching service names or similar policy are insufficient.

Plan confirms the machine and new boot

The original plan is checked before opening the new channel. Independent new console evidence must identify the same machine and a later boot than installation. Identity is checked on the same SSH connection before original sudo reading. Planning alone is not accepted completion.

deploy-cli host setup plan \
  --profile-file "$NEW_BOOT_PROFILE" --plan-file "$SETUP_PLAN"

Apply records only local acceptance

After review, approve only operator-local records. This profile neither needs nor accepts --approve-privileges. CLI rereads the exact observation. It installs no rules, starts no service, requests no reboot and changes no original bindings.

deploy-cli host setup apply \
  --plan-file "$SETUP_PLAN" --plan-sha256 "$SETUP_PLAN_SHA256" \
  --approve-local-write

Selected actual CLI JSON fields follow. Local completion binds five files: plan, planning record, execution, observation intent and actual report. firewall_boot_ready=true covers only the selected management firewall on this independently admitted current boot.

{
  "status": "passed",
  "entry_mode": "existing",
  "scope": "existing-management-firewall-new-boot-observation",
  "completed_stages": 1,
  "local_write_attempted": true,
  "host_write_attempted": false,
  "host_write_performed": false,
  "firewall_boot_ready": true,
  "runtime_ready": false,
  "whole_host_ready": false
}

Subsequent reads create no records

Retain the completion digest separately from the full response. Verify checks local files and reads original state again. A changed boot, manifest, console source, trust or rules does not automatically renew authority. The command and selected actual response fields follow:

deploy-cli host setup verify \
  --plan-file "$SETUP_PLAN" --plan-sha256 "$SETUP_PLAN_SHA256" \
  --completion-sha256 "$BOOT_COMPLETION_SHA256"
{
  "status": "passed",
  "local_write_attempted": false,
  "host_write_attempted": false,
  "host_write_performed": false,
  "firewall_boot_ready": true
}

Two actual refusals

First I submitted the old request with previous console evidence on the VM: planning refused. Then I added unnecessary privilege approval to apply: that also refused. The following summary combines two saved responses. The first case had already created a local planning-attempt record, with no server writes. The second refused before local execution.

{
  "plan_with_old_console": {
    "status": "failed",
    "host_write_attempted": false,
    "host_write_performed": false,
    "local_write_attempted": true
  },
  "apply_with_privilege_approval": {
    "status": "failed",
    "host_write_attempted": false,
    "host_write_performed": false,
    "local_write_attempted": false
  }
}

Repeated reading and evidence preservation

Apply with the accepted completion SHA also acts as a read. Without it, apply does not resume an occupied or partial prefix. The fixture preserved 22 selected server files, packages and SSH/Nginx/network/boot-service observations exactly; 47 original operator files also stayed unchanged. Verify and pinned reading performed no writes.

deploy-cli host setup apply \
  --plan-file "$SETUP_PLAN" --plan-sha256 "$SETUP_PLAN_SHA256" \
  --completion-sha256 "$BOOT_COMPLETION_SHA256" \
  --approve-local-write

I separately ran systemctl is-active deploy-cli-firewall-boot.service. Actual stdout follows; its exit code was 0. The original reader report is shown separately with identifiers and digests omitted.

active

Selected actual report fields follow. Empty transition_plan_sha256 selects the original management branch. An accepted WireGuard successor requires its own explicitly selected scope; this reader cannot fall back to the old policy.

{
  "protocol": "deploy-cli.firewall.current-boot/v1",
  "status": "verified",
  "write_performed": false,
  "unit": "deploy-cli-firewall-boot.service",
  "transition_plan_sha256": ""
}

How the fixture was checked

A separate writable overlay booted over the powered-off prepared VM. It obtained an actual new boot. Independent serial console confirmed the same machine, while fresh SSH/sudo verified access. Network checks ran in a separate namespace and establish neither public Internet nor provider reachability. The parent disk SHA remained exact after normal shutdown.

The frame below summarizes saved actual results in a genuine VTE terminal. Server commands were not executed again during capture. The VM is off; this run changed neither rented E01, the main server nor provider settings.

A genuine VTE frame summarizing saved results from a separate VM boot: new independent console, exact original manifest and operator-local acceptance. Verification and replay performed no server writes; parent disk and original records were preserved. Commands were not executed again during capture.

Next stage: WireGuard

Next come separate original WireGuard steps: prerequisites, node-local key creation, public-key exchange, configuration and accepted firewall successor. Private keys stay on their nodes. This establishes neither PHP/database nor full setup readiness; runtime_ready and whole_host_ready remain false. Primary E01 backups remain in the Mirohost panel.

  1. Operations & Security nftables default-deny without losing server control
  2. Operations & Security When to restrict root and password-based SSH
  3. Operations & Security WireGuard on Debian: private SSH access and a post-reboot check
  4. Operations & Security Recovering VPS access when SSH stops working
  5. Operations & Security Firewall boot loading through CLI: installation and post-reboot verification