Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(security): keep installer sources strict-semgrep parseable

Rahman0914e9a2cd36
diff --git a/app/install/platform-tabs.tsx b/app/install/platform-tabs.tsx
index 79047d33..7cdb6315 100644
--- a/app/install/platform-tabs.tsx
+++ b/app/install/platform-tabs.tsx
@@ -168,7 +168,7 @@ export function PlatformInstallTabs() {
</ul>
</div>
<div>
- <h4 className="text-sm font-semibold">Official links & references</h4>
+ <h4 className="text-sm font-semibold">{"Official links & references"}</h4>
<div className="mt-3 space-y-2">
{guide.links.map((link) => (
<a
diff --git a/scripts/install-core.sh b/scripts/install-core.sh
index 90aa407f..59e6cf8c 100755
--- a/scripts/install-core.sh
+++ b/scripts/install-core.sh
@@ -396,23 +396,23 @@ install_early_update_lock_acquire() {
if ! flock -x -w "$timeout" "$INSTALL_EARLY_UPDATE_LOCK_FD"; then exec {INSTALL_EARLY_UPDATE_LOCK_FD}>&- || true; INSTALL_EARLY_UPDATE_LOCK_FD=''; die "another MSO installer/update/deploy transaction is still running for $canonical"; fi
INSTALL_EARLY_UPDATE_LOCK_HELD=1; INSTALL_EARLY_UPDATE_LOCK_FILE="$lock"; INSTALL_EARLY_UPDATE_CANONICAL_ROOT="$canonical"; trap install_early_update_lock_release EXIT
}
-
install_early_update_lock_acquire
-
# portable 32-byte hex RNG (node is guaranteed present by now)
rand_hex() {
if command -v openssl >/dev/null 2>&1; then openssl rand -hex "$1"
else node -e "process.stdout.write(require('crypto').randomBytes($1).toString('hex'))"; fi
}
-
rand_password() {
node -e 'const c="ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789";const b=require("crypto").randomBytes(24);let s="";for(const x of b)s+=c[x%c.length];process.stdout.write(s)'
}
-
-install_repo_is_canonical_url() { case "$1" in https://github.com/rahmanef63/mso|https://github.com/rahmanef63/mso.git|https://github.com/rahmanef63/mso/|https://github.com/rahmanef63/mso.git/|[email protected]:rahmanef63/mso|[email protected]:rahmanef63/mso.git|ssh://[email protected]/rahmanef63/mso|ssh://[email protected]/rahmanef63/mso.git) return 0 ;; *) return 1 ;; esac; }
+install_repo_is_canonical_url() {
+ case "$1" in
+ https://github.com/rahmanef63/mso|https://github.com/rahmanef63/mso.git|https://github.com/rahmanef63/mso/|https://github.com/rahmanef63/mso.git/|[email protected]:rahmanef63/mso|[email protected]:rahmanef63/mso.git|ssh://[email protected]/rahmanef63/mso|ssh://[email protected]/rahmanef63/mso.git) return 0 ;;
+ *) return 1 ;;
+ esac
+}
install_git_noninteractive() { GIT_TERMINAL_PROMPT=0 GIT_SSH_COMMAND="${GIT_SSH_COMMAND:-ssh -oBatchMode=yes}" "$@"; }
install_prepare_origin() { local url; url="$(git -C "$DIR" remote get-url origin 2>/dev/null || true)"; [ -n "$url" ] || die "existing checkout has no readable origin remote"; if install_repo_is_canonical_url "$url" && [ "$url" != "$CANONICAL_REPO_URL" ]; then git -C "$DIR" remote set-url origin "$CANONICAL_REPO_URL" || die "could not normalize canonical origin to public HTTPS"; fi; }
-
INSTALL_PHASE=checkout
# ---- clone or update (idempotent, resilient to a dirty tree) ----
if [ -d "$DIR/.git" ]; then
diff --git a/scripts/install.sh b/scripts/install.sh
index 1b03a795..b5fd0227 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -11,7 +11,7 @@ umask 077
RAW_BASE="${MSO_INSTALL_RAW_BASE:-https://raw.githubusercontent.com/rahmanef63/mso/main/scripts}"
CORE_URL="${MSO_INSTALL_CORE_URL:-https://raw.githubusercontent.com/rahmanef63/mso/main/scripts/install-core.sh}"
-CORE_SHA256="5f0ed84924773d906cf0abc7499911ed5cfa6b31890b0bacc9dbe8bcbdfd0e52"
+CORE_SHA256="794d8893285c045a8ab608d8c1d2803188b4a2a13058695d6c1fd54520973b65"
CORE_EOF='# MSO_INSTALLER_CORE_EOF'
MACOS_SHA256="668ec3c8bbf3ee36dc2ae70952c3ba43c6f73ebc3acd6956fa4be2f65a076bfe"
TERMUX_SHA256="27c1a7d558c51ec875d17fd4a02a49e9e309eeb57fb306f62ea8de890ae2e65d"