mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4966] [MERGED] security: harden local execution and package trust #6559
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6559
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4966
Author: @SpicyMarinara
Created: 8/13/2026
Status: ✅ Merged
Merged: 8/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/security-hardening-2026-08📝 Commits (8)
3d8a8b0security: harden local execution and package trust62c4f8asecurity: address CodeQL gate findings3a79142security: preserve CSS token boundaries802b789security: apply review hardening57590ddsecurity: finish automated review fixes8267e45security: close final review edge cases704bba0security: normalize final import edge cases0b2080dci: use canonical pnpm integrity pin📊 Changes
80 files changed (+6601 additions, -1616 deletions)
View changed files
📝
.env.example(+32 -24)➕
.github/dependabot.yml(+23 -0)📝
.github/workflows/bunny-review.yml(+6 -2)➕
.github/workflows/codeql.yml(+46 -0)📝
.github/workflows/prealpha-platform-builds.yml(+59 -29)📝
.github/workflows/pull-request-checks.yml(+7 -0)➕
.github/workflows/security-audit.yml(+33 -0)📝
CHANGELOG.md(+3 -0)📝
CONTRIBUTING.md(+1 -0)📝
Dockerfile(+2 -2)📝
Dockerfile.lite(+3 -3)📝
README.md(+1 -1)📝
android/README.md(+18 -5)📝
android/app/build.gradle(+37 -3)📝
android/app/src/main/java/com/marinara/engine/MainActivity.java(+492 -42)📝
android/gradle/wrapper/gradle-wrapper.properties(+1 -0)📝
docs/CONFIGURATION.md(+4 -2)📝
docs/FAQ.md(+3 -1)📝
docs/REMOTE_ACCESS.md(+7 -7)📝
docs/TROUBLESHOOTING.md(+10 -0)...and 60 more files
📄 Description
Why
A broad security review found several trust-boundary gaps in local executable features, Android localhost integration, downloadable packages, network auto-trust, local secret storage, and build supply chains. This patch closes those gaps while preserving user-installed extensions, scripts, webhooks, agents, remote media, manual Termux installs, and remote-access workflows.
No linked issue was opened, per maintainer request; this security hardening was prepared directly.
What changed
--whereevaluation with a small data-only expression parser, and run transform scripts in a separate OS sandbox with an explicit reviewed-script compatibility fallback where no supported sandbox exists.ADMIN_SECRETfor non-loopback Professor Mari access.Automated validation
pnpm checkMARINARA_LOW_MEMORY_BUILD=1 pnpm --filter @marinara-engine/server buildpnpm audit --audit-level lownode scripts/check-windows-installer-layout.mjspnpm install --frozen-lockfilegit diff --checkManual verification requested
Compatibility notes
Dangerous implicit trust is removed, but capabilities are retained. Operators can still explicitly enable broad Docker/Tailscale compatibility.
mari db transformremains automatic on supported macOS/Linux sandboxes and has an explicitMARI_DB_ALLOW_UNSAFE_TRANSFORMS=trueroute for personally reviewed scripts on unsupported systems. Custom Script tools retain their existing opt-in and API.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.