Prevent interactive SSH in release CI

This commit is contained in:
faumaray committed 2026-07-29 23:14:25 +03:00
1 parent 1ec7125a6e
commit 29e257de51
7 files changed
+81 -28

No files matched your search

+15 -10
View File
@@ -37,12 +37,15 @@ through that container's Docker mount table. The release wrapper and
control-plane tests both use it because bind mount paths passed to the socket
are resolved by the runner host daemon, not inside the Actions job container.
The SSH checkout steps pin the current `git.faumaray.ru` RSA host key. Its
verified fingerprint is
The SSH checkout steps and `scripts/lib/component-ssh.sh` pin the current
`git.faumaray.ru` RSA host key. Its verified fingerprint is
`SHA256:fugBYnqAnqmTLsGpafVgQF9gPQzJqps7uHvs48blg2A`. If the Gitea SSH host key
is intentionally rotated, verify the new fingerprint through an independent
administrator channel and update `ssh-known-hosts` in all three workflows.
Never work around a rotation by disabling strict host-key checking.
administrator channel and update `ssh-known-hosts` in all three workflows plus
the shared helper. Component Git commands use `BatchMode=yes` and strict host
checking, so missing credentials or a changed host key fail instead of waiting
for interactive runner input. Never work around a rotation by disabling strict
host-key checking.
The Docker-capable runner executes only protected `main` pushes, manual runs,
scheduled nightlies, and signed release tags. The container CI workflow does
@@ -58,16 +61,18 @@ Enable Actions and add these repository secrets:
| Secret | Purpose |
| --- | --- |
| `RELEASE_CHECKOUT_SSH_KEY` | Read-only SSH key used for root, component, and `release-feed` checkouts. Grant it access to every private component repository before cutover. |
| `RELEASE_CHECKOUT_SSH_KEY` | Release-bot SSH key used to read every private component/dependency repository and to fast-forward the protected Echoion `release-feed` branch. |
| `RELEASE_BOT_TOKEN` | PAT owned by a dedicated bot. It needs read access to every component repository plus release/tag write access in this repository. It does not need `release-feed` write access. |
| `RELEASE_TAG_ALLOWED_SIGNERS` | Complete OpenSSH `allowed_signers` lines for maintainers allowed to publish `v*` tags. |
| `RELEASE_FEED_ED25519_PUBLIC_KEY` | PEM public key matching the component-feed signing key. It verifies independently published components without exposing signing authority to the product workflow. |
Component checkouts use SSH with `persist-credentials: false`. Release API
operations use the bot PAT, but Git fetches and pushes never rewrite remotes to
HTTPS. The component-feed private signing key must not be present in the
Echoion product repository, Git, runner images, Actions variables, or release
assets.
Root product checkouts use pinned SSH with `persist-credentials: false`.
Independent workflows check out their current repository with Gitea's job
token and the public Echoion release tools over HTTPS; their private
component/dependency reads and `release-feed` push use the pinned SSH helper.
Release API operations use the bot PAT. The component-feed private signing key
must not be present in the Echoion product repository, Git, runner images,
Actions variables, or release assets.
## Independent component repositories