A package changed: accepting the new E-01 state
A signed index, the exact deb and installed-file verification. A separate accepted successor preserves the original journal.
An automatic update stopped the inspection
Protected HTTPS on the educational E-01 already answered local requests, but the CLI inspection stopped at the package state. A background update replaced libbrotli1: 1.1.0-2+deb13u1 was installed in place of 1.1.0-2+b7. The APT indexes changed too. The command found a mismatch with the saved result of the initial step and refused to continue.
That refusal is useful: working HTTPS does not explain where a new package came from. Silently accepting the current list as the initial one would erase the very change the inspection was meant to detect. The transition needs its own evidence, while the initial journal must remain unchanged.
Permission for one change
Comparing the 337 initial package records identified one replacement; the other 336 were preserved. The nine packages added by the minimal PHP step were checked separately by name, state, version and architecture. Automatic installation flags also matched the saved result. Unchanged PHP versions alone are insufficient for that conclusion.
The newly accepted state must describe this particular replacement. It must not mean “allow every future update” or “stop checking packages.” Another difference will need another explanation. This keeps the inspection useful after the first legitimate update.
From the signature to installed files
The manual evidence connected several layers: the signed InRelease and its validity period, the Packages index checksum, the required version entry, and the SHA256 and size of the .deb archive. The keyring matched its previously recorded checksum. The archive control fields confirmed the name, version and architecture, while its payload matched all 7 regular files and 3 symbolic links installed on E-01.
Each link answers a different question. The signature authenticates repository metadata; the index checksum connects it to the package list; an entry in that list identifies the exact archive; comparison with the server checks the content actually installed. A package name or a plausible version number cannot replace that chain.
What the CLI already repeats
CLI components repeated the package-state comparison and signed-index verification on the real E-01, from the pinned keyring through sqv to the required archive entry. Separate negative checks made sqv reject altered signed text, unsigned content and data that is not an OpenPGP keyring. Temporary files were removed after both successful and refused checks.
These are separate parts of the evidence. The initial archive payload comparison with installed files was a manual pass; success of the index-verification component alone does not replace it. Completing the transition requires bringing these checks together and repeating them before saving the new confirmation.
A separate immutable successor
The new state confirmation is recorded as a separate immutable record linked to the initial result. It binds the exact permitted replacement to evidence of its origin. The initial plans and journals stay in place: they explain the starting point, while the successor explains why a different state can now be accepted.
A repeatable operation needs a plan, controlled application and an independent reading of the result. The plan should show what will be accepted; application should create only the agreed confirmation; verification should read it and compare it with the server again. If inputs change between these steps, continuation should stop rather than silently broaden the permission.
On the real E-01, the CLI completed planning, application, its built-in fresh verification and a separate verify. It created a separate root-owned store with mode 0700, an owner marker and one capsule with mode 0600. The initial journals remained unchanged. Separate verification and replaying the same application performed no durable writes: replay read the stored capsule instead of replacing it.
The Bash example below shows how to repeat the operation. Paths are placeholders; prepare the files for your own server. The commands do not create profiles automatically. PLAN_SHA256 comes from the reviewed saved plan; the committed successor reference contains plan_file, plan_sha256 and manifest_sha256. No password, private key or access credential values appear in the arguments. Planning creates a new local file; checks also use temporary files that are removed afterwards. No durable writes does not mean no temporary I/O.
set -euo pipefail
# Bash: replace these example paths with prepared private input files.
ADMIN_ENV_FILE=/private/example/administrator.env
REQUEST_FILE=/private/example/current-request.json
FPM_FILE=/private/example/original-fpm.json
KEY_FILE=/private/example/archive-keyring.gpg
ACTIVATION_FILE=/private/example/activation-reference.json
ENABLE_FILE=/private/example/enable-reference.json
MINIMAL_FILE=/private/example/minimal-reference.json
APPLICATION_FILE=/private/example/application-profile.json
APPLICATION_REFERENCE=/private/example/application-reference.json
SUCCESSOR_FILE=/private/example/replacement-profile.json
PLAN_FILE=/private/example/new-successor-plan.json
HTTPS_FILE=/private/example/https-profile.json
SUCCESSOR_REFERENCE=/private/example/committed-successor-reference.json
: "${ARCHIVE_KEY_SHA256:?Set the previously verified keyring SHA256}"
common=(
--env-file "$ADMIN_ENV_FILE"
--request-file "$REQUEST_FILE"
--fpm-file "$FPM_FILE"
--key-file "$KEY_FILE" --key-sha256 "$ARCHIVE_KEY_SHA256"
--activation-file "$ACTIVATION_FILE"
--enable-file "$ENABLE_FILE"
--minimal-file "$MINIMAL_FILE"
--application-file "$APPLICATION_FILE"
--application-reference "$APPLICATION_REFERENCE"
)
# Plan: PLAN_FILE must not already exist.
deploy-cli host application package-successor-plan "${common[@]}" \
--successor-file "$SUCCESSOR_FILE" --plan-file "$PLAN_FILE"
# Review the plan, then set its exact retained SHA256.
: "${PLAN_SHA256:?Set the reviewed plan SHA256}"
deploy-cli host application package-successor-apply "${common[@]}" \
--successor-file "$SUCCESSOR_FILE" --plan-file "$PLAN_FILE" \
--plan-sha256 "$PLAN_SHA256" --approve-privileges
deploy-cli host application package-successor-verify "${common[@]}" \
--successor-file "$SUCCESSOR_FILE" --plan-file "$PLAN_FILE" \
--plan-sha256 "$PLAN_SHA256"
# Use the explicit reference to the committed successor.
deploy-cli host application https-successor-inspect "${common[@]}" \
--successor-file "$SUCCESSOR_FILE" \
--successor-reference "$SUCCESSOR_REFERENCE" \
--https-file "$HTTPS_FILE"
Full HTTPS inspection with an explicit reference
The separate https-successor-inspect command accepted an explicit reference to the confirmed successor and successfully completed 8 HTTP checks. It rechecked the package evidence, capsule, original sources and entire saved private application state, including PIDs. This reads HTTPS that is already installed: authentication, application responses, denials, names, redirects and protective headers are checked together.
The original https-inspect still correctly refuses with parent/packages. It does not discover a successor automatically or weaken its initial condition. A different acceptable state is selected through a separate command and an exact reference, so an accidental change gains no permission alongside the verified update.
Package evidence has a boundary
The automated evidence covered one replacement and 18 installed payload objects. The check connecting libraries to processes is limited to two services and four processes. It is not a global integrity check of processes or every library on the server.
This run did not install packages, refresh APT, restart services or reboot the server; it made no network or provider changes either. Automated HTTPS installation and recording its adoption remain separate work. The last confirmed external-access state is closed ports and no public DNS; successful local inspection does not change it.