mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #794] [Issue]: Memory Nag remote client drops X-Admin-Secret on plain HTTP #410
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#410
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?
Originally created by @Romuromylus on GitHub (Sep 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/794
Originally assigned to: @Romuromylus on GitHub.
Summary
Memory Nag's client only attaches the
X-Admin-Secretheader when the page is served over HTTPS. On a plain-HTTP remote client (LAN or Termux server reached by IP) every Memory Nag route is therefore rejected by the Engine's privileged gate with "Invalid or missing X-Admin-Secret header", even though the secret is configured on the server and saved in the browser.Affected package
memory-nag(1.1.0)Expected behavior
The remote client authenticates with the saved admin secret and Create Memories succeeds, the same way the Engine's own privileged calls (which send the header regardless of protocol) already do from that browser.
Actual behavior
Create Memories fails with "Invalid or missing X-Admin-Secret header".
Steps to reproduce
ADMIN_SECRETset and Memory Nag 1.1.0 installed, reached over plain HTTP from another device.Environment
Logs, screenshots, or video
Reporter screenshot shows the Creating Memories dialog with "Invalid or missing X-Admin-Secret header".
Additional context
Mirror of Pasta-Devs/Marinara-Engine#6048. The Engine's
api-client.tsattaches the header on any protocol; Memory Nag'sapi.tsadds an extrawindow.location.protocol !== "https:"early return that the Engine does not have, so the two disagree on the same browser. Because the Engine already sends the same secret in plaintext for its own privileged requests on that connection, the gate does not protect the secret, it only disables the package.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (Sep 11, 2026):
Fixed by #795 (memory-nag 1.1.1), merged into
stagingasdbdd59740.