Skip to content

Commit f80794f

Browse files
JayNightmareCopilot
andcommitted
release: prepare client 1.4.1 with updated pack signing key
Pin the pack 1.2.5 manifest verification key, synchronize release versions, and verify signed fixtures in the installer workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 195a3f6 commit f80794f

10 files changed

Lines changed: 36 additions & 10 deletions

File tree

‎.github/workflows/release-client.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
environment: client-release
1818
env:
1919
MARS_UPDATER_PUBLIC_KEY: ${{ vars.MARS_UPDATER_PUBLIC_KEY }}
20+
MARS_MANIFEST_PUBLIC_KEY: a88e7dc70a1227cbc3decac967664e3bea75da9d72550e14f2c6a4ea8118391e
2021
strategy:
2122
fail-fast: false
2223
matrix:
@@ -108,6 +109,9 @@ jobs:
108109
- name: Test native update policy
109110
run: cargo test --locked --manifest-path src-tauri/Cargo.toml client_update_policy::tests
110111

112+
- name: Test pack manifest signing key
113+
run: cargo test --locked --manifest-path src-tauri/Cargo.toml --lib manifest::tests
114+
111115
- name: Build signed Linux packages
112116
if: runner.os == 'Linux'
113117
env:

‎README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ Batch 2 client release candidate **1.3.0** hardens the existing session-only Git
133133

134134
Batch 3 client **1.4.0** adds the private native reservation/upload/status experience described above. It requires the Batch 3 backend capsule contract; it does not publish artifacts or connect submissions to installation/launch.
135135

136+
Client **1.4.1** pins the updated pack-manifest public key
137+
`a88e7dc70a1227cbc3decac967664e3bea75da9d72550e14f2c6a4ea8118391e`,
138+
allowing verification of pack **1.2.5**, including Mars Command mod **0.4.0**.
139+
The installer workflow uses the same pin and tests an authentic signed fixture
140+
plus tamper rejection on both platforms. This key is separate from the
141+
Tauri/Minisign launcher-updater key; neither private key is included in the app.
142+
Clients built with the older pack key need to update the launcher before they
143+
can verify manifests signed by the new key.
144+
136145
The in-app client update check uses stable, non-prerelease GitHub releases and selects the newest installer compatible with the current platform: `setup-X.Y.Z.exe` on Windows or `setup-X.Y.Z.deb` on Linux. For older releases it also accepts `setup.exe` or `setup.deb` when the release tag contains a valid version; a versioned asset is preferred when both names are published. Drafts, prereleases, unsupported platforms, and assets for another platform are not offered.
137146

138147
When an update is available, choose **Open installer** to open its download in your browser. After it finishes, close Mars Command, open the downloaded installer, follow its prompts, and relaunch Mars Command. No installer runs or installs silently. If the release check cannot reach GitHub, retry after checking your connection or open the [GitHub releases page](https://github.com/Mars-Command/Client-Launcher/releases). If no compatible stable asset is published, check that page for `setup-X.Y.Z.exe` or `setup-X.Y.Z.deb` (or the legacy generic name), then retry the check later.

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "https://github.com/Mars-Command/Client-Launcher.git"
1212
},
1313
"private": true,
14-
"version": "1.4.0",
14+
"version": "1.4.1",
1515
"type": "module",
1616
"scripts": {
1717
"dev": "vite",

‎src-tauri/Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src-tauri/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mars-command-client"
33
display-name = "Mars Client"
4-
version = "1.4.0"
4+
version = "1.4.1"
55
description = "A client application for managing Mars Command operations"
66
authors = ["Jay Nightmare <jn3.enquiries@gmail.com>"]
77
edition = "2024"

‎src-tauri/src/manifest.rs‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ pub const MANIFEST_BASE_URL: &str = match option_env!("MARS_MANIFEST_BASE_URL")
1616

1717
/// Hex-encoded Ed25519 public key (32 bytes). Override at build time with
1818
/// `MARS_MANIFEST_PUBLIC_KEY` to rotate without editing source.
19-
/// This is a development key; generate a production pair before release.
19+
/// The default matches the pack signing key adopted for client 1.4.1.
2020
pub const MANIFEST_PUBLIC_KEY_HEX: &str = match option_env!("MARS_MANIFEST_PUBLIC_KEY") {
2121
Some(key) => key,
22-
None => "2a8186165296c508fde2022fe9568ea3d692570202fc8e95496f1d8f32b8b351",
22+
None => "a88e7dc70a1227cbc3decac967664e3bea75da9d72550e14f2c6a4ea8118391e",
2323
};
2424

2525
const FETCH_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(10);
@@ -412,7 +412,18 @@ pub async fn fetch_verified() -> Result<(Manifest, ManifestStatus), ManifestStat
412412

413413
#[cfg(test)]
414414
mod tests {
415-
use super::{is_safe_relative_path, FileSide, Manifest, ManifestFile, ManifestStatus};
415+
use super::{FileSide, Manifest, ManifestFile, ManifestStatus, is_safe_relative_path};
416+
417+
#[test]
418+
fn verifies_release_manifest_key_and_rejects_tampering() {
419+
let body = include_bytes!("../tests/fixtures/pack-key-1.4.1.json");
420+
let signature = include_str!("../tests/fixtures/pack-key-1.4.1.json.sig");
421+
assert!(super::verify_signature(body, signature).is_ok());
422+
let mut altered = body.to_vec();
423+
altered.push(b' ');
424+
assert!(super::verify_signature(&altered, signature).is_err());
425+
assert!(super::verify_signature(body, &"00".repeat(64)).is_err());
426+
}
416427

417428
#[test]
418429
fn rejects_traversal_and_absolute_paths() {

‎src-tauri/tauri.conf.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "mars-command-client",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"identifier": "com.jorda.mars-command-client",
66
"build": {
77
"beforeDevCommand": "npm run dev",
@@ -42,7 +42,7 @@
4242
},
4343
"plugins": {
4444
"updater": {
45-
"pubkey": "",
45+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDBGOUJBOTQ4OUI5RDhBNEUKUldST2lwMmJTS21iRC83LzZoSlhhNk9POWYxZC90UnBFL1hTQkphcHZtMGl4RVNiU0wxTXhiM2UK",
4646
"endpoints": [
4747
"https://github.com/Mars-Command/Client-Launcher/releases/latest/download/latest.json"
4848
],
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"release":"client-v1.4.1","purpose":"manifest-key-regression"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
41b7381bbbb67924cd2a49363723e813c780b774b0c76f5e8bcc510277b17046060d36ad219031ff02ac412d99c11dfce8442868bf46ed4b4fd7db1756b02c00

0 commit comments

Comments
 (0)