HTTPS for the next setup stage: explicit clean and existing completion
Verifying initial installation, adopted TLS and accepted interrupted state through one explicit HTTPS readiness command, with exact references and no repeated reload.
Once HTTPS installation has its own journal and verification, the next setup stage needs a clear answer: which completion does it use? An accessible page alone is insufficient. TLS may come from the initial installation, explicit adoption of an existing configuration, or separate acceptance of a state left by an interrupted operation.
I added a separate https-readiness command to the CLI. It verifies one explicitly selected result and passes it to the next stage. I exercised all three paths on separate Debian VMs using the actual underlying setup commands. I did not copy journals between fixtures.
Three paths to working HTTPS
| Completion | What is verified | Allowed entry |
|---|---|---|
installation | A completed initial HTTPS installation | clean or existing |
adoption | A separately adopted existing configuration | existing only |
reconciliation | Separate acceptance of a verified state after interruption | clean or existing |
clean identifies the selected setup entry. It does not assert that the server is currently empty. Completed steps have already installed packages, files and services. That entry cannot silently switch to adoption. If its installation was interrupted, the actual state must first receive separate acceptance.
Bind the reference to one completion
The private reference file contains a plan path, its SHA256 and the completion manifest. The template below requires the values from the verified run in place of the angle-bracket placeholders. It is not a ready-made file for any server.
{
"plan_file": "/ABSOLUTE/PRIVATE/https-plan.json",
"plan_sha256": "<EXACT_PLAN_SHA256>",
"manifest_sha256": "<EXACT_COMPLETION_MANIFEST_SHA256>"
}
After reviewing the reference file, record its own SHA256 independently. The next stage then receives exact bytes rather than trusting a name such as completion.json. The CLI checks that digest, the retained plan kind and the manifest, then reads the local reference again after the lower role verifies.
sha256sum -- "$COMPLETION_REFERENCE"
Read a completed installation
In this example, INSTALL_AUTHORITY_FLAGS contains the prepared private SSH parameters, lower role references, application and TLS profiles, and the original firewall selector. This is a placeholder name for an operator-prepared array. The CLI does not discover these authorities automatically.
deploy-cli host application https-readiness \
"${INSTALL_AUTHORITY_FLAGS[@]}" \
--entry-mode clean \
--completion-kind installation \
--completion-reference "$COMPLETION_REFERENCE" \
--completion-reference-sha256 "$COMPLETION_REFERENCE_SHA256"
For installation, the reference already selects the installation plan. No second plan is needed. The command has no installation or reload approval: even --approve-privileges is rejected for this read.
Adopt existing TLS explicitly
The existing entry can use a completed adoption protocol. It requires its own references to accepted package state. The example below uses ADOPTION_AUTHORITY_FLAGS for the corresponding lower parameters, without installation or firewall selectors.
deploy-cli host application https-readiness \
"${ADOPTION_AUTHORITY_FLAGS[@]}" \
--entry-mode existing \
--completion-kind adoption \
--successor-file "$PACKAGE_SUCCESSOR_PROFILE" \
--successor-reference "$PACKAGE_SUCCESSOR_REFERENCE" \
--completion-reference "$ADOPTION_REFERENCE" \
--completion-reference-sha256 "$ADOPTION_REFERENCE_SHA256"
I exercised this path after explicitly replacing one package and separately accepting the resulting state on the fixture. Repeated reading preserved all 49 selected files exactly. An open port alone cannot substitute for these dependencies.
Use separate acceptance after interruption
The third fixture performed a real Nginx reload followed by a controlled SIGKILL of the installer. The original journal retained pending/unknown. A separate protocol accepted the verified active HTTPS state into a new journal; the next read explicitly selected that completion.
The original lower parameters and firewall selector remain required. Additional flags identify the interrupted installation plan, while the completion reference selects the new acceptance result.
deploy-cli host application https-readiness \
"${INSTALL_AUTHORITY_FLAGS[@]}" \
--entry-mode clean \
--completion-kind reconciliation \
--installation-plan-file "$ORIGINAL_INSTALLATION_PLAN" \
--installation-plan-sha256 "$ORIGINAL_INSTALLATION_PLAN_SHA256" \
--completion-reference "$ACCEPTANCE_REFERENCE" \
--completion-reference-sha256 "$ACCEPTANCE_REFERENCE_SHA256"
This path passed for both clean and existing entries. The CLI rejected a substituted manifest and a different completion kind. All 48 selected files remained unchanged. The original apply still refused with partial: separate acceptance did not rewrite the initial operation's history.
The answer received by the next stage
These selected checks fields come from an actual successful response, with the private manifest omitted. This is a shortened projection, not the complete raw output:
{
"https_verified": "true",
"configuration_writes": "0",
"service_actions": "0",
"whole_host_ready": "false",
"public_edge_verified": "false",
"deletion_authority": "false"
}
The next stage receives confirmation of a specific HTTPS completion. The external Cloudflare edge, backup freshness, notification delivery and whole-server readiness require their own operations. Accepting a working configuration also does not grant permission to delete it as something created by that acceptance.
The frame below summarizes saved results from the three fixture scenarios. It is a genuine terminal capture showing a summary, without a new command run.
Even an index cache can invalidate an old reference
Reading the educational VPS exposed a useful boundary: installed packages matched the accepted state, but the APT index cache had changed. Lower verification required an exact match to the retained evidence and refused. Readiness did not reinstall packages or replace that evidence.
This case requires a separate protocol for accepting changed metadata. Adding it to overall setup must preserve the distinction between changing installed packages and refreshing their catalog. Otherwise, a successful TLS check would hide an unverified transition in a lower layer.
HTTPS reads a newer APT checkpoint only through an explicit reference
After accepting the APT cache separately, I added an explicit checkpoint-reading mode to the same readiness command. Existing application, TLS and package-successor parameters are retained. It additionally requires independent SHA256 pins for the original package reference and the new index reference. These are different files and manifests; neither substitutes for HTTPS completion.
The example extends the ADOPTION_AUTHORITY_FLAGS array already defined above. All variables identify reviewed private files from the specific run. An incomplete set of new parameters is rejected; omitting them retains the original strict reader.
deploy-cli host application https-readiness \
"${ADOPTION_AUTHORITY_FLAGS[@]}" \
--entry-mode existing \
--completion-kind adoption \
--successor-file "$PACKAGE_SUCCESSOR_PROFILE" \
--successor-reference "$PACKAGE_SUCCESSOR_REFERENCE" \
--successor-reference-sha256 "$PACKAGE_REFERENCE_SHA256" \
--completion-reference "$ADOPTION_REFERENCE" \
--completion-reference-sha256 "$ADOPTION_REFERENCE_SHA256" \
--index-reference "$INDEX_CHECKPOINT_REFERENCE" \
--index-reference-sha256 "$INDEX_REFERENCE_SHA256"
This variant currently supports only existing with adoption. It freshly verifies the selected signed index, archive, installed files and current runtime, then the complete application state and local HTTPS. The original TLS adoption journal is read with its retained bindings. The command creates no new HTTPS journal.
On a fresh Debian VM, the correct invocation and repeat reading succeeded. Substituted index-reference or HTTPS-reference manifests and an added foreign Nginx file were refused. I removed only the owned test file afterwards; all 51 selected historical files remained exact. These negative scenarios ran on the VM.
The new mode and repeat reading then also completed without writes on the educational E-01. All 54 selected files, the package snapshot and Nginx/PHP-FPM observations were preserved. The original reader separately refused: there is no automatic switch to newer evidence. Selected actual response fields follow; private manifests and other fields are omitted.
{
"status": "passed",
"write_performed": false,
"checks": {
"https_verified": "true",
"configuration_writes": "0",
"service_actions": "0",
"same_boot_only": "true",
"all_cached_indexes_authenticated": "false",
"package_install_authority": "false",
"whole_host_ready": "false",
"public_edge_verified": "false"
}
}
same_boot_only means this result does not carry across a reboot. Whole-server readiness, the public edge and a new boot require their own checks. Primary E-01 backups remain in the Mirohost panel; the separate R2 experiment is not a prerequisite for this reader.