docs: VoelinProtocol access (ci.md) for the fetch-then-delete key, the runner gate and the fork check; deploy key id 7

ci.md rewrites "VoelinProtocol access" on the model of VoelinGateWay's: the
steps in order, the fork rule in the expression and the script, the release
agent, the four images, the runners that printed the keys, how to look at a run,
what the hardening does not do. The Gitea intro no longer says that pushes and
pull requests are off (the workflow has run on them since 2026-10-12).
building.md and release.md follow; CHANGELOG appended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-28 02:55:23 +03:00
1 parent 91dce84b36
commit 2cf8bc7fda
4 files changed
+270 -78

No files matched your search

+15 -10
View File
@@ -86,7 +86,8 @@ The same with plain Docker, e.g. `docker build --ssh default -f docker/linux.Doc
**The builds need an ssh-agent that holds a key able to read the private
VoelinProtocol repository** ([below](#depending-on-voelinprotocol)): Cargo
fetches it inside the image, through the agent that `--ssh default` hands to the
build. The key stays in the agent; it is not copied into the image or the build
build, in a `RUN cargo fetch` of its own: the build after it has no agent and is
offline. The key stays in the agent; it is not copied into the image or the build
cache. `scripts/docker-build.sh` passes `--ssh default` itself and stops with a
message when `ssh-add -l` shows no agent or no key (`eval "$(ssh-agent -s)"`,
then `ssh-add` your key). The server's host key comes from
@@ -183,15 +184,19 @@ set `net.git-fetch-with-cli = true` in `~/.cargo/config.toml`.
compiler (gcc or clang) and cmake.
`deny.toml` allows this one git source.
**CI and the Docker builds read it with a read-only SSH deploy key.** The key
is registered on VoelinProtocol and stored as the repository secret
`VOELIN_PROTOCOL_DEPLOY_KEY`; the Gitea workflows write it to `~/.ssh` (CI) or
load it into an ssh-agent (release builds), the server's host key comes from the
committed `.gitea/known_hosts`, and Cargo is told to fetch with the system git
(`CARGO_NET_GIT_FETCH_WITH_CLI=true`) because its built-in git client ignores
`~/.ssh/config`. The Docker builds use the same key through
`docker build --ssh default` (see above). What was set up, how to re-check the
host key's fingerprint and what each failure means:
**CI and the Docker builds read it with a read-only SSH deploy key, and only to
fetch.** The key is registered on VoelinProtocol and stored as the repository
secret `VOELIN_PROTOCOL_DEPLOY_KEY`. The CI job writes it to a directory of its
own (nothing in `~/.ssh`), runs `cargo fetch --locked` with it as the one
`ssh -i` of that step, deletes it, and runs every later cargo command
`--offline`; the release builds load it into an ssh-agent, and each Dockerfile
gives the agent to a `RUN cargo fetch` only, the `cargo build --offline` after it
has none. The server's host key comes from the committed `.gitea/known_hosts`, and
Cargo is told to fetch with the system git (`CARGO_NET_GIT_FETCH_WITH_CLI=true`)
because its built-in git client cannot use a key file. The Docker builds use the
same key through `docker build --ssh default` (see above). What was set up, the
order of the steps, why a runner that may print the key does not get it, how to
re-check the host key's fingerprint and what each failure means:
[ci.md](ci.md#voelinprotocol-access). A runner of your own gets the same setup
from the workflows; the alternative to a deploy key is an access token (rewrite
the SSH URL to HTTPS with