Reading original preparation through the administrator after closing root SSH

Verifying original initialization and two package records through key authentication and sudo: five administrator SSH launches, zero root launches and no reader writes.

Two protected history capsules between a vault door and an administrator channel.
Two protected history capsules between a vault door and an administrator channel.

The wizard can verify the prepared image and produce an access plan. The next lower boundary is reading original preparation after switching to the administrator. We retain root approvals, verify the current boot and read the same records through the selected key and sudo.

What we ran on the fixture

On a fresh isolated Debian 13 VM, we completed EFI and APT preparation, approved kernel installation, menu configuration and one reboot. Independent serial-console evidence confirmed the new boot. After image acceptance, the original access coordinator created the administrator and applied its SSH policy with root SSH disabled. Its plan, apply and independent verify passed.

This is a local fixture reproduction. The training VPS and production were unchanged by this step. The new verifier runs after access setup is complete; its own reads must retain the server records unchanged.

Who runs the commands

In the administrator session, we checked the current username. The actual fixture response:

id -un
ops

ops is this VM’s test account. We separately checked that sudo refuses the command without a password when cached authentication is ignored:

sudo -k -n true
sudo: a password is required

With a command, -k makes sudo ignore cached credentials; -n prevents password prompting. This refusal is expected under our password-required sudo policy. Debian sudo(8).

Retaining the original approval role

The original initialization and package plans remain root plans bound to the old console evidence. The separate current request retains the selected account, key and machine, with independent evidence for the new boot. Original input files are not rewritten into new approvals.

The private root profile is used locally to validate the original plan bindings. The administrator performs the server reads. We also verify that the private key matches the approved public key. Current boot identity is checked within the same SSH execution before the privileged read; the sudo password travels through the private channel.

Reading original initialization and the package chain

The following is a command template. Its variables contain absolute private paths and exact original approval SHA256 digests. This command creates no result file, reinitializes no locks and starts no APT transaction:

deploy-cli host setup preparation-read \
  --root-env-file "$ORIGINAL_ROOT_ENV" \
  --administrator-env-file "$ADMIN_ENV" \
  --request-file "$ORIGINAL_REQUEST" \
  --current-request-file "$CURRENT_REQUEST" \
  --initialization-plan-file "$INITIALIZATION_PLAN" \
  --initialization-plan-sha256 "$INITIALIZATION_SHA256" \
  --refresh-plan-file "$ORIGINAL_REFRESH_PLAN" \
  --refresh-plan-sha256 "$REFRESH_SHA256" \
  --kernel-plan-file "$ORIGINAL_KERNEL_PLAN" \
  --kernel-plan-sha256 "$KERNEL_SHA256"

We first read the original CLI-directory and APT-lock initialization records. We then check the actual two-step package chain before and after reading the selected installed versions and their approved dependency closure. Finally, we read original initialization again. Its two results must match.

Selected fields from the actual response:

{
  "status": "passed",
  "administrator_history_verified": true,
  "initialization_retained": true,
  "package_genesis_retained": true,
  "package_operations": 2,
  "root_ssh_dispatched": false,
  "host_write_performed": false,
  "local_write_performed": false,
  "image_accepted": false,
  "whole_host_ready": false
}

A separate trace of SSH launches confirmed five administrator connections and zero root connections during this command. The original 27 selected preparation and reboot entries survived access setup. Files, content, modes and inodes were retained. The packages directory modification time changed during the separate fixture pending-file creation and removal; it is excluded from unchanged metadata. During the actual read with that controlled record present, all 31 selected entries matched exactly before and after refusal.

Refusal checks

A wrong kernel-plan digest, old console evidence and a mismatched selected key were refused. To test unfinished package state, the fixture separately created a controlled pending file. The reader refused and left that file and original records unchanged. Selected response fields:

{
  "status": "failed",
  "root_ssh_dispatched": false,
  "host_write_performed": false,
  "local_write_performed": false
}

The fixture removed only its own controlled file in a separate operation. The read command does not repair journals, switch access roles or repeat installation. Its parser accepts no host-write or local-write approval.

The completed scope

Original preparation can now be verified through the administrator after root SSH is disabled. This response leaves image_accepted and whole_host_ready false because it attests history reads. No new utility package steps were executed. Next, they must extend the same chain with expected-predecessor checks under package locks and explicit proof of the reboot boundary.

The frame shows a genuine terminal with a labeled summary of saved results, rather than raw command output. Capture did not repeat server preparation, administrator creation or reboot.

Summary of original preparation read through the administrator
Summary of original preparation read through the administrator
  1. Platform Engineering Verifying initial APT initialization after a restart
  2. Platform Engineering Accepting the prepared image after reboot: EFI, directories and a new reference
  3. Platform Engineering Packages after reboot: checking versions and original history
  4. Platform Engineering Connecting the prepared image to the wizard: credentials and planning without server writes
  5. Platform Engineering Continuing package history: utilities after initial preparation

A project by the author · Weather Solution200

After reading, a look outside.

Temperature, rain and wind in your city. Check the forecast and plan the hours ahead.

Check the forecast
Next article