mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1299] [MERGED] fix(quartermaster): 0.1.24 send the Admin Secret for remote access #1391
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1391
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-Agents/pull/1299
Author: @newfiesledneck
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/quartermaster-admin-secret📝 Commits (3)
863aa81fix(quartermaster): 0.1.24 send the Admin Secret for remote accesse073fd2Merge branch 'staging' into fix/quartermaster-admin-secret655256afix(quartermaster): 0.1.25 cache authenticated images and retry real failures📊 Changes
18 files changed (+699 additions, -104 deletions)
View changed files
➕
artifacts/quartermaster-0.1.24.zip(+0 -0)➕
artifacts/quartermaster-0.1.25.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+12 -12)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+12 -12)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+12 -12)📝
packages/quartermaster/CHANGELOG.md(+12 -0)📝
packages/quartermaster/README.md(+12 -0)📝
packages/quartermaster/client.js(+187 -23)📝
packages/quartermaster/manifest.json(+3 -3)📝
packages/quartermaster/src/00-api.js(+145 -5)📝
packages/quartermaster/src/04-icons.js(+1 -1)📝
packages/quartermaster/src/05-state.js(+26 -4)📝
packages/quartermaster/src/10-dock.js(+14 -12)📝
scripts/build-quartermaster-package.mjs(+1 -1)📝
tests/quartermaster-modal-lifecycle.regression.mjs(+244 -1)📄 Description
Pull request
Linked issue
Closes #7280
Refs Pasta-Devs/Marinara-Engine#7280 (the package half; the Engine half, the missing dock button, was fixed in Pasta-Devs/Marinara-Engine#7343)
Why this change
<img src>cannot send a header.What changed
packages/quartermaster/src/00-api.jsqmRequestand the image-connection check sendX-Admin-SecretfromlocalStorage["marinara_admin_secret"](same approach as the Engine's own client, Memory Nag and Relationship Tracker), plusx-marinara-csrf: 1on writes.QM.setImageSrc(img, url): with a secret saved, our own/api/quartermaster/images load throughfetchwith the header and a short-lived object URL. Without a saved secret, or for Engine URLs like the persona avatar, it setssrcdirectly, unchanged from before. A failed load still fires the imgerrorevent every caller uses for its fallback, and a late response for a reused element (the portrait) is dropped.packages/quartermaster/src/04-icons.js,src/10-dock.js: the five gated image sites (slot icons, portrait ring, equipped slot images, outfit thumbnails, bag item images) useQM.setImageSrc.tests/quartermaster-modal-lifecycle.regression.mjs: three new tests (headers with/without a saved or unreadable secret, the 403 messages, and the image loader's success/404/superseded cases). They fail against the previous00-api.jsand pass with this change. This file already runs in CI.scripts/build-quartermaster-package.mjs), withpackages/quartermaster/CHANGELOG.mdand the README changelog updated.packages/quartermaster/client.js,packages/quartermaster/manifest.json,artifacts/quartermaster-0.1.24.zip, and the catalog entries and notes incatalog/catalog.json,catalog/v2/,catalog/v3/.Package and security impact
quartermasterserver.mjsis unchanged./api/routes, and only as a header (never in a URL).Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
ADMIN_SECRETandMARINARA_REQUIRE_ADMIN_SECRET_ON_LOOPBACK=truein the Engine's.envand saving the same value in Settings → Advanced → Admin Access. On 0.1.23 the Tracker Panel showed "Invalid or missing X-Admin-Secret header".Agent-run checks:
npm run check(0 errors; no warnings in changed files),node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-release-notes.regression.mjs,node scripts/tests/vendored-engine.regression.mjs,node tests/quartermaster-modal-lifecycle.regression.mjs(12/12),git diff --check.Manually ran validation checks in terminal/git bash.
Documentation impact
Package README changelog updated; no catalog or guidance changes.
UI evidence (if applicable)
N/A
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.