Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(release): pin a remote manifest key with a usable private half (#338)
Leoba0c63f374ed
diff --git a/.changeset/rotate-remote-manifest-key.md b/.changeset/rotate-remote-manifest-key.mdnew file mode 100644index 000000000..a845151cc--- /dev/null+++ b/.changeset/rotate-remote-manifest-key.md@@ -0,0 +1,2 @@+---+---diff --git a/apps/server/src/cloud/releaseManifest.ts b/apps/server/src/cloud/releaseManifest.tsindex 1e9466730..848a11f68 100644--- a/apps/server/src/cloud/releaseManifest.ts+++ b/apps/server/src/cloud/releaseManifest.ts@@ -3,7 +3,7 @@ import * as NodeCrypto from "node:crypto";/** The pinned Ed25519 key that signs every Akeru Remote release manifest. */export const RELEASE_MANIFEST_KEY = ["-----BEGIN PUBLIC KEY-----",- "MCowBQYDK2VwAyEAr6AVDZl+P/T3TxY0EbpuMaNCImQ7EKTQYZc81ozkh+E=",+ "MCowBQYDK2VwAyEAA74gQCflQCtBbynI3b+W2z/unYne9w6mPsei/hpmEWg=","-----END PUBLIC KEY-----",].join("\n");diff --git a/apps/web/public/install b/apps/web/public/installindex 616e4f53f..d348155fb 100755--- a/apps/web/public/install+++ b/apps/web/public/install@@ -68,7 +68,7 @@ curl --proto '=https' --tlsv1.2 -fsSL -o "$tmp/AKERU-REMOTE-MANIFEST.txt" "$basecurl --proto '=https' --tlsv1.2 -fsSL -o "$tmp/AKERU-REMOTE-MANIFEST.sig" "$base/AKERU-REMOTE-MANIFEST.sig"cat > "$tmp/akeru-release-manifest.pub" <<'KEY'-----BEGIN PUBLIC KEY------MCowBQYDK2VwAyEAr6AVDZl+P/T3TxY0EbpuMaNCImQ7EKTQYZc81ozkh+E=+MCowBQYDK2VwAyEAA74gQCflQCtBbynI3b+W2z/unYne9w6mPsei/hpmEWg=-----END PUBLIC KEY-----KEYopenssl pkeyutl -verify -pubin -inkey "$tmp/akeru-release-manifest.pub" -rawin \diff --git a/scripts/akeru-release-manifest.pub b/scripts/akeru-release-manifest.pubindex 1647b4b18..861975802 100644--- a/scripts/akeru-release-manifest.pub+++ b/scripts/akeru-release-manifest.pub@@ -1,3 +1,3 @@-----BEGIN PUBLIC KEY------MCowBQYDK2VwAyEAr6AVDZl+P/T3TxY0EbpuMaNCImQ7EKTQYZc81ozkh+E=+MCowBQYDK2VwAyEAA74gQCflQCtBbynI3b+W2z/unYne9w6mPsei/hpmEWg=-----END PUBLIC KEY-----diff --git a/scripts/akeru-remote-admin.mjs b/scripts/akeru-remote-admin.mjsindex df652b93c..0bb22595d 100644--- a/scripts/akeru-remote-admin.mjs+++ b/scripts/akeru-remote-admin.mjs@@ -59,7 +59,7 @@ const currentVersion = () => {// environment override: a scheduled task's environment must never be able to replace the release key.const RELEASE_MANIFEST_KEY = ["-----BEGIN PUBLIC KEY-----",- "MCowBQYDK2VwAyEAr6AVDZl+P/T3TxY0EbpuMaNCImQ7EKTQYZc81ozkh+E=",+ "MCowBQYDK2VwAyEAA74gQCflQCtBbynI3b+W2z/unYne9w6mPsei/hpmEWg=","-----END PUBLIC KEY-----",].join("\n");const download = async (url) => {diff --git a/scripts/install-remote.sh b/scripts/install-remote.shindex 616e4f53f..d348155fb 100755--- a/scripts/install-remote.sh+++ b/scripts/install-remote.sh@@ -68,7 +68,7 @@ curl --proto '=https' --tlsv1.2 -fsSL -o "$tmp/AKERU-REMOTE-MANIFEST.txt" "$basecurl --proto '=https' --tlsv1.2 -fsSL -o "$tmp/AKERU-REMOTE-MANIFEST.sig" "$base/AKERU-REMOTE-MANIFEST.sig"cat > "$tmp/akeru-release-manifest.pub" <<'KEY'-----BEGIN PUBLIC KEY------MCowBQYDK2VwAyEAr6AVDZl+P/T3TxY0EbpuMaNCImQ7EKTQYZc81ozkh+E=+MCowBQYDK2VwAyEAA74gQCflQCtBbynI3b+W2z/unYne9w6mPsei/hpmEWg=-----END PUBLIC KEY-----KEYopenssl pkeyutl -verify -pubin -inkey "$tmp/akeru-release-manifest.pub" -rawin \