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 Codex scan state private

Rahmane8bd3631c3fa
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 26a5571e..821f65b8 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -12,6 +12,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `security` keep Codex scan state private
- `security` block recursive credential relocation
**Chores**
diff --git a/scripts/codex-security-components.sh b/scripts/codex-security-components.sh
index 10fc1a87..f9cb8083 100755
--- a/scripts/codex-security-components.sh
+++ b/scripts/codex-security-components.sh
@@ -13,7 +13,7 @@ EFFORT="${CODEX_SECURITY_EFFORT:-high}"
REPO_ROOT="$(git rev-parse --show-toplevel)"
REPO_NAME="$(basename "$REPO_ROOT")"
PLAN="${CODEX_SECURITY_COMPONENT_PLAN:-$REPO_ROOT/security/codex-components.json}"
-STATE_BASE="${XDG_STATE_HOME:-$HOME/.local/state}/codex-security"
+STATE_BASE="${CODEX_SECURITY_STATE_BASE:-$HOME/.mso/security-assurance/codex-security}"
STATE_DIR="${CODEX_SECURITY_STATE_DIR:-$STATE_BASE/state}"
OUTPUT_ROOT="${CODEX_SECURITY_OUTPUT_ROOT:-$STATE_BASE/$REPO_NAME-components}"
STAMP="$(date -u +%Y%m%dT%H%M%SZ)"
diff --git a/scripts/codex-security-scan.sh b/scripts/codex-security-scan.sh
index 99cdcb13..7988cb12 100755
--- a/scripts/codex-security-scan.sh
+++ b/scripts/codex-security-scan.sh
@@ -9,7 +9,7 @@ FAIL_ON="${CODEX_SECURITY_FAIL_ON_SEVERITY:-high}"
MAX_COST="${CODEX_SECURITY_MAX_COST_USD:-5}"
REPO_ROOT="$(git rev-parse --show-toplevel)"
REPO_NAME="$(basename "$REPO_ROOT")"
-STATE_BASE="${XDG_STATE_HOME:-$HOME/.local/state}/codex-security"
+STATE_BASE="${CODEX_SECURITY_STATE_BASE:-$HOME/.mso/security-assurance/codex-security}"
STATE_DIR="${CODEX_SECURITY_STATE_DIR:-$STATE_BASE/state}"
OUTPUT_ROOT="${CODEX_SECURITY_OUTPUT_ROOT:-$STATE_BASE/$REPO_NAME}"
STAMP="$(date -u +%Y%m%dT%H%M%SZ)"