Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

docs(air-gapped): the published page still carried the sentence 408e699 retracted

xerj-org7c5468bc1050
diff --git a/landing/docs/recipes/air-gapped-deployment.html b/landing/docs/recipes/air-gapped-deployment.html
index 9e4cc039b..cc3d88c14 100644
--- a/landing/docs/recipes/air-gapped-deployment.html
+++ b/landing/docs/recipes/air-gapped-deployment.html
@@ -109,7 +109,7 @@
"$STAGE/xerj" --version
echo "staged $ASSET ($want) in $OUT"
)</pre>
- <p>The checksum proves archive integrity against the digest published beside it in the same release; it is not a signature, provenance statement, or attestation. <code class="inline">"$STAGE/xerj" --version</code> executes the staged binary, so the staging host must match the target platform; drop that line, or stage a different target by changing <code class="inline">TARGET</code> here <strong>and</strong> the triple spelled out in the enclave block below. The extracted tree is removed by the <code class="inline">trap</code> whenever the subshell exits normally or under <code class="inline">set -e</code>, so that only the archive and its <code class="inline">.sha256</code> cross the airgap. An <code class="inline">EXIT</code> trap does not run on <code class="inline">SIGTERM</code>/<code class="inline">SIGHUP</code>, so a dropped session leaves the tree. The trap body is <code class="inline">"$STAGE"</code> — relative to the directory the block already entered — and is installed before <code class="inline">tar</code>: an earlier version derived it from <code class="inline">$OUT</code> after the <code class="inline">cd</code>, which silently cleaned nothing when <code class="inline">OUT</code> was a relative path.</p>
+ <p>The checksum proves archive integrity against the digest published beside it in the same release; it is not a signature, provenance statement, or attestation. <code class="inline">"$STAGE/xerj" --version</code> executes the staged binary, so the staging host must match the target platform; drop that line, or stage a different target by changing <code class="inline">TARGET</code> here <strong>and</strong> the triple spelled out in the enclave block below. The extracted tree is removed by the <code class="inline">trap</code> on every exit this block can take after the <code class="inline">cd</code> &mdash; success, <code class="inline">set -e</code>, a failed digest, and a hangup, <code class="inline">SIGTERM</code> or Ctrl-C, because bash runs an <code class="inline">EXIT</code> trap when a non-interactive shell is killed by a fatal signal. Only the archive and its <code class="inline">.sha256</code> should cross the airgap, so that no unverified binary travels beside the verified one. What genuinely survives is <code class="inline">SIGKILL</code>, an OOM kill and power loss, and what survives then is a <em>half-extracted</em> tree &mdash; so if the block did not print its <code class="inline">staged &hellip;</code> line, look before transferring. The trap body is <code class="inline">"$STAGE"</code> — relative to the directory the block already entered — and is installed before <code class="inline">tar</code>: an earlier version derived it from <code class="inline">$OUT</code> after the <code class="inline">cd</code>, which silently cleaned nothing when <code class="inline">OUT</code> was a relative path.</p>
<p><strong>Transfer <code class="inline">$OUT</code> itself and land it in the enclave at <code class="inline">/opt/xerj-staging</code></strong>, so the archive sits at <code class="inline">/opt/xerj-staging/release/</code> &mdash; the fixed path the enclave blocks read. Then set the same approved <code class="inline">TAG</code> and verify before extracting:</p>
<pre class="code">(
set -eu