mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2051] [MERGED] Fix remote backup list admin access #5412
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#5412
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/2051
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2039-backup-list-admin📝 Commits (1)
79dd6e7Fix remote backup list admin access📊 Changes
4 files changed (+20 additions, -2 deletions)
View changed files
📝
src-tauri/src/commands/storage/backup.rs(+1 -1)📝
src-tauri/src/http_server.rs(+18 -0)📝
src/shared/api/profile-api.ts(+0 -1)📝
src/shared/api/remote-runtime.ts(+1 -0)📄 Description
Linked issue
Closes #2039
Why this change
backup_listwas exposed through/api/invokewithout the Admin Access tier even though listed backups included server-local filesystem paths.What changed
backup_listto the frontend privileged remote command set so remote web clients include the Admin Access header for the command.backup_listto the server privileged remote command set so non-loopback callers without Admin Access are rejected.pathfield from managed backup list entries and tightened the frontendManagedBackuptype to match.backup_listAdmin Access enforcement and backup-list path redaction.Refactor impact
Primary owner:
Remote runtime, shared API, Rust storage.
Impact areas reviewed:
/api/invokeAdmin Access gate for non-loopback callers.nameandcreatedAt.Boundary notes:
path.Pressure points touched:
src/shared/api/remote-runtime.tsprivileged command set.src-tauri/src/http_server.rsprivileged remote command gate.src-tauri/src/commands/storage/backup.rsmanaged backup list metadata.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
backup_list missing from frontend privileged remote command set.backup_list remote privilege and path redaction invariants passed.cargo test --manifest-path src-tauri/Cargo.toml backup::tests -- --nocapturepassed: 2 passed, 0 failed.cargo test --manifest-path src-tauri/Cargo.toml http_server::tests::hostable_security_ -- --nocapturepassed: 11 passed, 0 failed.pnpm typecheckpassed after installing locked dependencies withpnpm install --frozen-lockfile.cargo check --manifest-path src-tauri/Cargo.tomlpassed.pnpm checkpassed.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.mdNo docs changes needed; this is a focused remote-runtime security/metadata fix.
UI evidence
N/A: no visible UI changed. This was verified through focused invariant, Rust security/storage tests, and the full
pnpm checkbaseline.Summary by CodeRabbit
Bug Fixes
Security
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.