relay: release artifacts + checksum-verified update (NA-0164) - #20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goals: G2, G5\n\nImpact:\n- Adds reproducible Linux release artifacts with stable checksum file naming.\n- Adds a fail-closed update path that verifies SHA256 before install and performs atomic replacement with rollback on service-start failure.\n- Adds CI enforcement that checksum mismatch fails without mutating install state.\n\nNo-regression:\n- Existing install/update scripts remain available; runbook now recommends checksum-verified release path first and keeps build-from-source fallback.\n- No src/** behavior changes.\n\nTests:\n- scripts/ci/test_update_checksum.sh\n- cargo test --locked\n- cargo clippy --all-targets -- -D warnings\n\nAdjacency scan summary:\n- Commands run:\n - rg -n "update_ubuntu.sh|install_ubuntu.sh|INSTALL|/opt/qsl-server|systemctl|ExecStart" -S scripts packaging README.md\n - ls -la .github/workflows\n - rg -n "workflow_dispatch|push:|tags:|release|upload-artifact|gh-release" -S .github/workflows\n - rg -n "sha256|sha256sum|checksum" -S scripts .github packaging README.md\n- Findings:\n - Existing update path only replaced local binary and restarted service; no checksum verification.\n - Existing CI had only ci.yml rust job; no release artifact pipeline.\n - No existing checksum handling in scripts/workflows/docs.\n\nInvariant enforced by tests:\n- updates verify SHA256 before install; failures do not mutate install state.\n\nNo secrets committed: examples/scripts use placeholders only and contain no token-like literals.