Release: harden multiline secret handling
Modular container CI / release-build (push) Has been cancelled
Modular container CI / release-build (push) Has been cancelled
This commit is contained in:
9 files changed
+133
-56
No files matched your search
+23
-12
@@ -37,12 +37,12 @@ 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 and `scripts/lib/component-ssh.sh` pin the current
|
||||
The shared `scripts/lib/component-ssh.sh` helper pins 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 plus
|
||||
the shared helper. Component Git commands use `BatchMode=yes` and strict host
|
||||
administrator channel and update 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.
|
||||
@@ -57,16 +57,25 @@ workflow. A global runner such as the default installation shown in Gitea must
|
||||
only serve repositories you trust: a workflow with Docker-daemon access can
|
||||
control the runner host.
|
||||
|
||||
Enable Actions and add these repository secrets:
|
||||
Enable Actions and configure these secrets:
|
||||
|
||||
| Secret | Purpose |
|
||||
| --- | --- |
|
||||
| `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 repository write scope for component releases and package write scope for the public organization registry. 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. |
|
||||
| Secret | Scope | Purpose |
|
||||
| --- | --- | --- |
|
||||
| `RELEASE_CHECKOUT_SSH_KEY` | `Void` organization | Single-line base64 of the release-bot OpenSSH private key used to read every private component/dependency repository and to fast-forward the protected Echoion `release-feed` branch. |
|
||||
| `RELEASE_BOT_TOKEN` | `Void` organization | PAT owned by a dedicated bot. It needs repository write scope for component releases and package write scope for the public organization registry. It does not need `release-feed` write access. |
|
||||
| `RELEASE_TAG_ALLOWED_SIGNERS` | `Void` organization | Complete OpenSSH `allowed_signers` lines for maintainers allowed to publish `v*` tags. |
|
||||
| `RELEASE_FEED_ED25519_PRIVATE_KEY` | `Void` organization | Single-line base64 of the Ed25519 PEM private key that signs component feeds. |
|
||||
| `RELEASE_FEED_GIT_SIGNING_KEY` | `Void` organization | Single-line base64 of the OpenSSH private key that signs `release-feed` commits. |
|
||||
| `RELEASE_FEED_ED25519_PUBLIC_KEY` | Echoion repository | PEM public key matching the component-feed signing key. It verifies independently published components without exposing signing authority to the product workflow. |
|
||||
|
||||
Root product checkouts use pinned SSH with `persist-credentials: false`.
|
||||
Encode multiline private keys with `base64 -w0` before storing them. This is a
|
||||
security requirement: the release scripts reject raw multiline private keys so
|
||||
runner environment diagnostics cannot disclose them. Keep the public
|
||||
`RELEASE_TAG_ALLOWED_SIGNERS` and `RELEASE_FEED_ED25519_PUBLIC_KEY` values in
|
||||
their documented text formats.
|
||||
|
||||
Root product checkouts use the public repository over HTTPS 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.
|
||||
@@ -212,7 +221,9 @@ signing run as urgent.
|
||||
## Feed key custody and rotation
|
||||
|
||||
The active component-feed public key id is
|
||||
`echoion-component-release-2026-07-30`. The older
|
||||
`echoion-component-release-2026-07-30-r2`. The superseded
|
||||
`echoion-component-release-2026-07-30` key is intentionally absent because its
|
||||
private material was revoked before any feed publication. The older
|
||||
`echoion-component-release-2026-07` and `echoion-release-2026-07` keys remain
|
||||
embedded for compatibility. To rotate,
|
||||
generate the private key on a trusted operator machine:
|
||||
|
||||
Reference in new issue
Block a user