[PR #1160] [MERGED] fix(noodle, slurp2): explain a missing Admin Secret when the app cannot load #1321

Closed
opened 2026-10-21 05:08:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1160
Author: @SpicyMarinara
Created: 9/30/2026
Status: ✅ Merged
Merged: 9/30/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/admin-secret-load-message


📝 Commits (2)

  • 43263b3 fix(noodle, slurp2): explain a missing Admin Secret when the app cannot load
  • eefd338 Merge remote-tracking branch 'origin/staging' into fix/admin-secret-load-message

📊 Changes

24 files changed (+917 additions, -907 deletions)

View changed files

➕ artifacts/noodle-1.3.1.zip (+0 -0)
➕ artifacts/slurp2-0.3.10.zip (+0 -0)
📝 catalog/catalog.json (+16 -16)
📝 catalog/notes.json (+12 -6)
📝 catalog/v2/catalog.json (+16 -16)
📝 catalog/v2/notes.json (+12 -6)
📝 catalog/v3/catalog.json (+16 -16)
📝 catalog/v3/notes.json (+12 -6)
📝 packages/noodle/CHANGELOG.md (+4 -0)
📝 packages/noodle/client.js (+20 -20)
📝 packages/noodle/manifest.json (+5 -5)
📝 packages/noodle/server.mjs (+233 -305)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx (+28 -1)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/en.json (+1 -1)
📝 packages/slurp2/CHANGELOG.md (+4 -0)
📝 packages/slurp2/client.js (+88 -88)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+388 -413)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/SlpHomeHost.tsx (+6 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+8 -1)

...and 4 more files

📄 Description

Pull request

Linked issue

Closes #1136

Why this change

A Discord report estimated that about two of every three Noodle/Slurp load failures come from a missing Admin Secret. The Engine's capability-route-registration.service.ts puts every package route behind requirePrivilegedAccess. From another device (phone, LAN, Docker) the routes return 403 (ADMIN_SECRET is required for privileged APIs or Invalid or missing X-Admin-Secret header) until ADMIN_SECRET is set on the server and entered in the browser. Neither app said so:

  • Noodle Home didn't render its error state at all. A failed load fell through to "The plate is empty… go to the settings", which sends people to set up something that isn't broken.
  • Slurp showed "Slurp could not be loaded. Nothing was lost. Check your connection and try again."

Slurp Legacy has been retired (Slurp Remastered was renamed Slurp), so the issue's "Slurp and Slurp2" is the slurp2 package.

What changed

  • Noodle Home has a load-failure state after the loading skeleton. It reuses the Home widget's existing strings (unavailable, loadReason, adminSecretMissing), the same /admin.secret/i check and the same Try again retry.
  • Slurp passes an Admin Secret detail to its existing SlpErrorState when the top-level accounts load fails with that 403. Other failures keep the current text.
  • Copy: both explain setting ADMIN_SECRET in the Engine's .env, then entering the same value in Settings → Advanced → Admin Access, matching docs/CONFIGURATION.md. The Noodle string replaces the widget's older "restart" wording; changing the secret needs no restart.
  • Versions skip every number the staging catalog has published, because the Engine refuses downgrades and a reused version never reaches people already on it:
    • Noodle's catalog has published up to 1.3.0 (the widget work left 1.2.26–1.2.29 artifacts), so this ships as 1.3.1.
    • Slurp's catalog published 0.3.9 before it was renumbered, so this ships as 0.3.10, with a one-line splash note.
  • Rebuilt both packages (bundles, manifests, new ZIPs, v2/v3/legacy catalog entries and notes). The server bundles differ only in minified names, from building against current Engine staging dependencies.
  • Browser tests: one per package suite. Each mocks the package routes with the Engine's real 403 body and requires the Admin Access instructions.

Package and security impact

  • Affected package IDs: noodle, slurp2
  • Engine compatibility impact: none; minEngineVersion is unchanged.
  • New or changed permissions/entrypoints: none. The privileged gate is unchanged; this only explains it.
  • Restart, storage, update, or uninstall impact: none.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-run results (not substitutes for the human checklist above):

  • These passed: npm run check (0 errors), typecheck:packages, test-catalog-lanes, validate-package-locales, validate-package-locale-keys, validate-catalog, catalog-release-notes, catalog-generatedat-determinism, test:security, git diff --check.
  • The new browser cases passed on desktop and mobile Chromium for both packages. With the two source fixes reverted and the packages rebuilt, all four cases failed. Restored sources were rebuilt afterwards.
  • Local CodeRabbit reviewed all 24 files with 0 findings.

To check by hand:

  • Manually open Noodle and Slurp from a phone or another LAN device with no ADMIN_SECRET on the server, and confirm each explains the Admin Secret.
  • Manually set ADMIN_SECRET on the server, enter it under Settings → Advanced → Admin Access on that device, press Try again, and confirm both apps load.
  • Manually confirm the Noodle Home widget and Noodle Home show the same wording.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

The new copy points at the existing docs/CONFIGURATION.md § Privileged APIs (ADMIN_SECRET) instructions; no docs change is needed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1160 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/30/2026 **Status:** ✅ Merged **Merged:** 9/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/admin-secret-load-message` --- ### 📝 Commits (2) - [`43263b3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/43263b3ce18471d062559f825b49c19165d428d1) fix(noodle, slurp2): explain a missing Admin Secret when the app cannot load - [`eefd338`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eefd338654d8de68222b0d0462dec1775a6491a1) Merge remote-tracking branch 'origin/staging' into fix/admin-secret-load-message ### 📊 Changes **24 files changed** (+917 additions, -907 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.3.1.zip` (+0 -0) ➕ `artifacts/slurp2-0.3.10.zip` (+0 -0) 📝 `catalog/catalog.json` (+16 -16) 📝 `catalog/notes.json` (+12 -6) 📝 `catalog/v2/catalog.json` (+16 -16) 📝 `catalog/v2/notes.json` (+12 -6) 📝 `catalog/v3/catalog.json` (+16 -16) 📝 `catalog/v3/notes.json` (+12 -6) 📝 `packages/noodle/CHANGELOG.md` (+4 -0) 📝 `packages/noodle/client.js` (+20 -20) 📝 `packages/noodle/manifest.json` (+5 -5) 📝 `packages/noodle/server.mjs` (+233 -305) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx` (+28 -1) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/en.json` (+1 -1) 📝 `packages/slurp2/CHANGELOG.md` (+4 -0) 📝 `packages/slurp2/client.js` (+88 -88) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+388 -413) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/SlpHomeHost.tsx` (+6 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+8 -1) _...and 4 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1136 ## Why this change A Discord report estimated that about two of every three Noodle/Slurp load failures come from a missing Admin Secret. The Engine's `capability-route-registration.service.ts` puts every package route behind `requirePrivilegedAccess`. From another device (phone, LAN, Docker) the routes return 403 (`ADMIN_SECRET is required for privileged APIs` or `Invalid or missing X-Admin-Secret header`) until `ADMIN_SECRET` is set on the server and entered in the browser. Neither app said so: - **Noodle Home** didn't render its error state at all. A failed load fell through to "The plate is empty… go to the settings", which sends people to set up something that isn't broken. - **Slurp** showed "Slurp could not be loaded. Nothing was lost. Check your connection and try again." Slurp Legacy has been retired (Slurp Remastered was renamed Slurp), so the issue's "Slurp and Slurp2" is the `slurp2` package. ## What changed - **Noodle Home** has a load-failure state after the loading skeleton. It reuses the Home widget's existing strings (`unavailable`, `loadReason`, `adminSecretMissing`), the same `/admin.secret/i` check and the same **Try again** retry. - **Slurp** passes an Admin Secret detail to its existing `SlpErrorState` when the top-level accounts load fails with that 403. Other failures keep the current text. - **Copy:** both explain setting `ADMIN_SECRET` in the Engine's `.env`, then entering the same value in **Settings → Advanced → Admin Access**, matching `docs/CONFIGURATION.md`. The Noodle string replaces the widget's older "restart" wording; changing the secret needs no restart. - **Versions skip every number the staging catalog has published**, because the Engine refuses downgrades and a reused version never reaches people already on it: - Noodle's catalog has published up to 1.3.0 (the widget work left 1.2.26–1.2.29 artifacts), so this ships as **1.3.1**. - Slurp's catalog published 0.3.9 before it was renumbered, so this ships as **0.3.10**, with a one-line splash note. - **Rebuilt** both packages (bundles, manifests, new ZIPs, v2/v3/legacy catalog entries and notes). The server bundles differ only in minified names, from building against current Engine staging dependencies. - **Browser tests:** one per package suite. Each mocks the package routes with the Engine's real 403 body and requires the Admin Access instructions. ## Package and security impact - Affected package IDs: `noodle`, `slurp2` - Engine compatibility impact: none; `minEngineVersion` is unchanged. - New or changed permissions/entrypoints: none. The privileged gate is unchanged; this only explains it. - Restart, storage, update, or uninstall impact: none. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-run results (not substitutes for the human checklist above): - These passed: `npm run check` (0 errors), `typecheck:packages`, `test-catalog-lanes`, `validate-package-locales`, `validate-package-locale-keys`, `validate-catalog`, `catalog-release-notes`, `catalog-generatedat-determinism`, `test:security`, `git diff --check`. - The new browser cases passed on desktop and mobile Chromium for both packages. With the two source fixes reverted and the packages rebuilt, all four cases failed. Restored sources were rebuilt afterwards. - Local CodeRabbit reviewed all 24 files with 0 findings. To check by hand: - Manually open Noodle and Slurp from a phone or another LAN device with no `ADMIN_SECRET` on the server, and confirm each explains the Admin Secret. - Manually set `ADMIN_SECRET` on the server, enter it under Settings → Advanced → Admin Access on that device, press Try again, and confirm both apps load. - Manually confirm the Noodle Home widget and Noodle Home show the same wording. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The new copy points at the existing `docs/CONFIGURATION.md § Privileged APIs (ADMIN_SECRET)` instructions; no docs change is needed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:08:42 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1321
No description provided.