mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2082] [MERGED] Protect remote bulk scan with Admin Access #5424
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#5424
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/2082
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2058-bulk-scan-admin📝 Commits (1)
2c15635Protect remote bulk scan with Admin Access📊 Changes
2 files changed (+32 additions, -0 deletions)
View changed files
📝
src-tauri/src/http_server.rs(+31 -0)📝
src/shared/api/remote-runtime.ts(+1 -0)📄 Description
Linked issue
Closes #2058
Why this change
import_st_bulk_scan, but the Admin Access privileged command sets only coveredimport_st_bulk_run. Off-loopback bulk scan calls could therefore reach the remote dispatcher without the same Admin Access requirement legacy applied to SillyTavern bulk scan and run.What changed
import_st_bulk_scanto the TypeScript Remote Runtime privileged command set so web-shell calls include the stored Admin Access secret header.import_st_bulk_scanto the Rust HTTP runtime privileged command set so/api/invokerejects off-loopback scan calls unless Admin Access is configured and thex-admin-secretheader matches.ADMIN_SECRETand acceptance with the matching Admin Access header.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
Pressure points touched:
src/shared/api/remote-runtime.tsprivileged remote command set.src-tauri/src/http_server.rsAdmin Access command guard and guard-level regression test.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
node scratch/repro-2058-bulk-scan-admin.mjsexited 1 withimport_st_bulk_scanremote-allowlisted and Rust-dispatched, but missing from both privileged sets.node scratch/repro-2058-bulk-scan-admin.mjspassed withimport_st_bulk_scanpresent in both privileged sets.cargo test --manifest-path src-tauri/Cargo.toml remote_st_bulk_scan_requires_admin_accesspassed.cargo check --manifest-path src-tauri/Cargo.tomlpassed.pnpm typecheckpassed afterpnpm install --frozen-lockfilerestorednode_modulesin the isolated worktree.pnpm checkpassed.scratch/bugfix-verification.json.C:\Users\celia\.codex\tools\marinara-proof-gate.mjs, so that one local helper could not be run.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A. This is a Remote Runtime access-control bugfix with command/scratch/Rust test proof rather than visible UI behavior.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.