5.6 KiB
Gitea preview publication
The Linux workflow publishes through https://git.vezha.io/api/v1 with a repository-scoped GITEA_TOKEN secret. Python is used only for offline CI publication; serving is unchanged. The publisher and its API fixture tests derive from tracked commit a8fa7e0, adapted to the current assembly receipts. The imported Strata upstream record remains unchanged.
| Profile | Exact assets | Tag scope |
|---|---|---|
| CLI | binary, BUILD-PROVENANCE.txt, ELF-AUDIT.txt, SHA256SUMS | cli-preview-RUN-ATTEMPT or explicit vVERSION |
| Hosted CUDA | binary, PROVENANCE.json, SHA256SUMS, runtime-image.tar, IMAGE-PROVENANCE.json, CUDA-TOOLCHAIN.json, CUDA-LICENSES.tar, IMAGE-SHA256SUMS | cuda-preview-RUN-ATTEMPT |
| Static CUDA | binary, PROVENANCE.json, SHA256SUMS, runtime-image.tar, IMAGE-PROVENANCE.json, IMAGE-SHA256SUMS | static-cuda-preview-RUN-ATTEMPT |
All profiles reject missing/extra files, symlinks, mismatched checksums and source revisions before creating a release. CLI publication requires one exact Commit line and a static x86_64 ELF audit. The existing static CLI lifecycle, Responses, restart and CPU rollback gates remain prerequisites. A version-tag job rebuilds the same gated tag commit with the existing pinned Rust/musl build command, then repeats the original ELF audit and generates checksums for the rebuilt assets; it does not claim bitwise reproducibility against the earlier preview binary.
CUDA publication validates current package loader_probe receipts from --probe-in-runtime-image, image/package receipt binding and canonical compile-feature digests. These producers do not emit the historical engine_help_probe strings; their existing loader/identity/help probes must pass for assembly to emit the current receipts. Hosted toolchain publication additionally binds the actual builder image identity, source, engine hash, compile-feature digest, runtime image identity and saved archive hash. The inactive static CUDA profile preserves its original six-file contract and has no hosted compiler or license receipt qualification. Its runner and build inputs are unchanged.
Publication creates a draft prerelease, streams the exact verified assets, checks response names/sizes, and validates the returned UUID before accepting either the exact same-origin repository/tag/asset download URL or one of the existing exact attachment paths for that UUID, then rereads the remote bytes to compare size and SHA256. It allows at most two same-origin redirects, restricted to attachment paths for the UUID returned by that asset upload. Only then does it remove draft status. Other redirect paths, queries, credentials and foreign asset URLs are rejected; tokens are not forwarded to them. HTTPS verifies certificates; plaintext is accepted only for loopback API fixtures. API error bodies are not printed. An upload or verification failure leaves a draft, and does not publish an incomplete release. A retry uses a fresh run attempt tag; existing release cleanup is an operator action. Gitea previews do not inherit the former GitHub artifact seven-day retention; retention is an operator policy.
Receipts record CI/operator-declared source identity, not binary-to-source attestation. GPU/model qualification stays false; these publications do not establish inference quality, throughput, model readiness or deployment readiness. Synthetic tests exercise API streaming, remote corruption, interrupted uploads, exact profiles, forged rehashed receipts and the current producer validators. Real private Gitea publication remains a workflow qualification gate.
The download URL profile was checked against read-only Gitea release cuda-preview-2495-1 on git.vezha.io: /para/leleka/releases/download/{tag}/{asset}. Gitea 1.27.3 RedirectDownload finds releases by repository/tag and includes drafts for writers; it serves the associated attachment without requiring a Git tag to exist. Synthetic tests verify download and redirect hashing while the release is still draft and before tag publication, and prove that foreign redirects receive no request or token. Actual fresh CI publication remains unqualified until that gate succeeds.
Publication jobs request contents: read and the Gitea-specific releases: write permission on their built-in job token; the workflow default and nonpublication jobs keep read-only permissions. This follows the Gitea 1.27 token-permission contract. Owner/repository maximums can still clamp the effective token; the real publication gate must succeed before qualification. No stored PAT is read or created.
Gitea 1.27.3 fresh-upload POST and later GET/list metadata can expose different URLs. Attachment.DownloadURL uses the instance attachment route when the freshly created attachment has no custom URL; subsequent release attribute loading can populate the repository release route when attachment names are unique. The publisher admits the same narrowly bound UUID attachment routes at the initial hop as at redirect hops. Origin, port, path, UUID, query, fragment, credentials, two-redirect bound, byte count and remote SHA checks remain mandatory. Synthetic POST tests cover each admitted attachment form, corruption, invalid/mismatched UUIDs, foreign URLs and wrong repositories without forwarding a token. This source-derived correction is not proof of fresh private CI publication; that remains an actual workflow gate.