CI: the VoelinProtocol deploy key lives for one trusted fetch step #2

Merged
faumaray merged 8 commits from phase5/ci-deploy-key-hardening into main 2026-10-28 01:27:14 +00:00
Owner

The checks action writes the deploy key into a job-scoped directory, uses it only for cargo fetch, deletes it before any repository code runs, and never writes it on a runner that does not mask multi-line secrets; the checks run offline afterwards; fork pull requests get no key; the release and package builds split fetch from build. This pull request is also the first real pull_request event of this repository for the gate's head-repository check.

🤖 Generated with Claude Code

The checks action writes the deploy key into a job-scoped directory, uses it only for `cargo fetch`, deletes it before any repository code runs, and never writes it on a runner that does not mask multi-line secrets; the checks run offline afterwards; fork pull requests get no key; the release and package builds split fetch from build. This pull request is also the first real pull_request event of this repository for the gate's head-repository check. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
faumaray added 8 commits 2026-10-28 00:52:23 +00:00
The job checks first that it may hold the key (a runner that reports 3.1.0 or
newer, which masks a multi-line secret in the log; on a pull request, a head
branch in this repository, asked in the job-level expression and again in the
script from the head repository's name), installs the system packages and the
toolchain, writes the key to a directory of its own for one step (no ~/.ssh
configuration; the step removes the directory itself on any way out but its last
line), fetches with `ssh -i` and the committed host key (`cargo fetch --locked`)
and deletes it, and a step that always runs deletes it again. The checks action
has no input and no secret and every cargo command in it is --offline.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
release.yml checks the runner version before any step names the secret (same
gate as ci.yml), starts the ssh-agent only on the positive flag, and stops it in
an always() step right after the last build, so the artifact upload and the
release draft have neither the key nor the socket. The four Dockerfiles (linux,
windows, android, the gateway image) give the agent to `RUN cargo fetch --locked`
only; the build after it has no ssh mount and is offline (--offline, and
CARGO_NET_OFFLINE for the Android Gradle task, which starts cargo-ndk).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Run 1225 of the temporary commit: the runner "Perfrormance Runner" (v3.1.0) was
refused by the check, the job failed there, the system packages, the toolchain,
the key step, the fetch and the checks were not started and left no line in the
log, the cleanup step said that no key is left, and the log has no mention of the
secret.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
docs: ci.md, wording of the run 1224 note
CI / Linux checks (pull_request) Successful in 32m49s
3f7aecfd61
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
faumaray merged commit b08bda599d into main 2026-10-28 01:27:14 +00:00
faumaray deleted branch phase5/ci-deploy-key-hardening 2026-10-28 01:27:14 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Voelin/VoelinClient#2