fix: address production release review findings
CI / tests-and-images (pull_request) Successful in 2m43s
Runner smoke test / runner-smoke (pull_request) Successful in 2s

This commit is contained in:
agent committed 2026-10-25 13:44:56 +03:00
1 parent 852d639c45
commit 9d8ce6b67f
16 files changed
+505 -128

No files matched your search

+16 -11
View File
@@ -123,18 +123,20 @@ unneeded administration rights. Do not reuse a runner or production host
credential. The workflow uses the Gitea host and fixed package namespace
`git.vakanaut.ru/admin/akyldash/{backend,opensearch}`, pushes unique
commit/run/attempt tags, captures registry digests, validates the release
descriptor, and prints its JSON plus SHA-256 sidecar to the authenticated Gitea
run log for the owner to retrieve. The runner cache remains disabled. Because
the installed act_runner 0.2.13 has not yet been validated with Gitea's
v1-compatible artifact fork, the authenticated run log is the current bounded
retrieval fallback; this PR makes no runner cache changes. Registry retention must preserve referenced digests
for the full rollback window; this policy has not yet been confirmed.
descriptor, and uploads the JSON plus SHA-256 sidecar as a Gitea Actions
artifact using a full-SHA-pinned Gitea-compatible v3 action. PR CI also uploads
a tiny synthetic marker with one-day retention to verify the runner's runtime
artifact path without registry credentials. The runner cache stays disabled;
artifact compatibility is based on the runtime API supported by act_runner
0.2.13/Gitea 1.25.5 and will be empirically checked by PR CI. Registry and
artifact retention must preserve release digests and descriptors for the full
rollback window; the owner must confirm both policies.
The descriptor records source repository/ref/commit, workflow run and attempt,
pinned Kaniko builder and both image digests. It is an unsigned trace record,
not a cryptographic attestation; deployment relies on retrieving it from the
authenticated Gitea run log and verifying its checksum and repository allowlist.
Do not treat the sidecar alone as proof of authenticity.
authenticated Gitea run artifact and verifying its checksum and repository
allowlist. Do not treat the sidecar alone as proof of authenticity.
For a future owner-approved cutover, use the root-owned checkout and run
`infra/deploy/deploy_release.py` as root with the downloaded manifest, its
@@ -148,9 +150,12 @@ after corpus/index canaries have been verified; do not use generic terms that
can match unrelated test data. The helper requires the backup image references and image IDs to match the live
stack, serializes deploy and rollback with `/run/akyldash-deploy.lock`,
atomically switches both protected env image refs, and always runs Compose with
`--no-build`. It records recovery state before changing references; a failed
cutover keeps a secret-free recovery journal and refuses a subsequent release
until an owner resolves it. Rollback accepts a digest-pinned previous release
`--no-build`. It records recovery state before changing references. If ref
replacement reports an error after an atomic rename, recovery rereads the
actual file and restores the prior pair before restarting; an unexpected or
unverifiable pair stops recovery and leaves a secret-free journal. A failed
cutover refuses a subsequent release until an owner resolves the journal.
Rollback accepts a digest-pinned previous release
only when that backup matches the separately recorded previous refs and image
IDs. Legacy tag rollback remains supported. Neither the helper nor registry
secrets are installed on the VPS by this PR; deployment remains an owner-only