[GH-ISSUE #2063] [Issue]: Admin Access should migrate the legacy browser secret key #1009

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

Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2063

Originally assigned to: @cha1latte on GitHub.

Summary

Refactor Remote Runtime Admin Access uses a different browser localStorage key than legacy main, with no migration or intentional divergence found in the Target 3 web-shell UI scan. Users who previously saved an Admin Access secret under the legacy key may have to re-enter it before privileged remote actions work.

Expected behavior

If the Admin Access setting is intended to preserve the legacy browser-stored user outcome, refactor should read or migrate the legacy marinara_admin_secret value to the refactor key, or document the key change as an intentional reset.

Actual behavior

Legacy main stored Admin Access under marinara_admin_secret in packages/client/src/lib/api-client.ts. Refactor Settings and remote invocation read/write marinara-admin-secret in src/features/shell/settings/components/SettingsPanel.tsx and src/shared/api/remote-runtime.ts. No migration or documented intentional divergence was found during this slice.

Steps to reproduce

  1. In a browser profile with legacy Marinara, save an Admin Access secret in Settings.
  2. Open the refactor web shell with the same browser storage origin, if applicable.
  3. Configure a non-loopback Remote Runtime that requires ADMIN_SECRET.
  4. Try a privileged remote action such as backup/profile/import admin flow.
  5. Observe that refactor does not read the legacy stored secret unless the user saves it again under the refactor key.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor during Target 3 parityscan on 2026-06-04
  • Run mode: web shell only / remote runtime
  • OS + version: not app-proven
  • Node + pnpm versions: not app-proven
  • Rust version, if relevant: not app-proven
  • Remote Runtime URL configured? yes
  • Provider, model, or integration, if relevant: privileged remote commands / Admin Access

Logs, screenshots, or video

No live browser repro was run. Static parity evidence:

  • Legacy key: packages/client/src/lib/api-client.ts uses marinara_admin_secret.
  • Refactor key: src/features/shell/settings/components/SettingsPanel.tsx and src/shared/api/remote-runtime.ts use marinara-admin-secret.
  • Remote Admin Access contract itself is proven: cargo test --manifest-path src-tauri/Cargo.toml hostable_security_requires_admin_access_for_remote_backup_list passed.

Regression notes

Legacy main supported browser-local Admin Access storage for privileged server operations. Refactor preserves the concept but changes the key name. The desired product behavior needs a small decision: migrate/read the old key, or document/reset intentionally.

Related tracker: #2050.

Additional context

This is lower severity than the new-chat readiness gate because users can manually re-enter the secret. It still matters for remote parity because failed privileged actions can look like bad credentials even when the user had already configured Admin Access in legacy.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Jun 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2063 Originally assigned to: @cha1latte on GitHub. ## Summary Refactor Remote Runtime Admin Access uses a different browser localStorage key than legacy `main`, with no migration or intentional divergence found in the Target 3 web-shell UI scan. Users who previously saved an Admin Access secret under the legacy key may have to re-enter it before privileged remote actions work. ## Expected behavior If the Admin Access setting is intended to preserve the legacy browser-stored user outcome, refactor should read or migrate the legacy `marinara_admin_secret` value to the refactor key, or document the key change as an intentional reset. ## Actual behavior Legacy `main` stored Admin Access under `marinara_admin_secret` in `packages/client/src/lib/api-client.ts`. Refactor Settings and remote invocation read/write `marinara-admin-secret` in `src/features/shell/settings/components/SettingsPanel.tsx` and `src/shared/api/remote-runtime.ts`. No migration or documented intentional divergence was found during this slice. ## Steps to reproduce 1. In a browser profile with legacy Marinara, save an Admin Access secret in Settings. 2. Open the refactor web shell with the same browser storage origin, if applicable. 3. Configure a non-loopback Remote Runtime that requires `ADMIN_SECRET`. 4. Try a privileged remote action such as backup/profile/import admin flow. 5. Observe that refactor does not read the legacy stored secret unless the user saves it again under the refactor key. ## Impact area - [x] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [x] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` during Target 3 parityscan on 2026-06-04 - Run mode: web shell only / remote runtime - OS + version: not app-proven - Node + pnpm versions: not app-proven - Rust version, if relevant: not app-proven - Remote Runtime URL configured? yes - Provider, model, or integration, if relevant: privileged remote commands / Admin Access ## Logs, screenshots, or video No live browser repro was run. Static parity evidence: - Legacy key: `packages/client/src/lib/api-client.ts` uses `marinara_admin_secret`. - Refactor key: `src/features/shell/settings/components/SettingsPanel.tsx` and `src/shared/api/remote-runtime.ts` use `marinara-admin-secret`. - Remote Admin Access contract itself is proven: `cargo test --manifest-path src-tauri/Cargo.toml hostable_security_requires_admin_access_for_remote_backup_list` passed. ## Regression notes Legacy `main` supported browser-local Admin Access storage for privileged server operations. Refactor preserves the concept but changes the key name. The desired product behavior needs a small decision: migrate/read the old key, or document/reset intentionally. Related tracker: #2050. ## Additional context This is lower severity than the new-chat readiness gate because users can manually re-enter the secret. It still matters for remote parity because failed privileged actions can look like bad credentials even when the user had already configured Admin Access in legacy. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:25:06 +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-Engine#1009
No description provided.