[PR #2075] [MERGED] Browser-prove Basic Auth remote managed asset blobs #5420

Closed
opened 2026-10-22 04:16:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2075
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-2057-basic-auth-assets


📝 Commits (3)

  • b7a7e39 Add Basic Auth remote asset browser proof
  • 4dcd2e9 Add issue 2057 browser proof evidence
  • 25aa0ec Address Bunny remote asset proof finding

📊 Changes

3 files changed (+370 additions, -0 deletions)

View changed files

➕ pr-evidence/issue-2057-basic-auth-managed-assets.png (+0 -0)
➕ tests/e2e/fixtures/remote-managed-asset-probe.html (+182 -0)
➕ tests/e2e/remote-managed-assets-basic-auth.spec.ts (+188 -0)

📄 Description

Linked issue

Closes #2057

Why this change

  • Issue #2057 had static proof for Remote Runtime Basic Auth managed asset blobs, but no live browser proof that the credentialed runtime URL renders through the blob path without exposing credentials.

What changed

  • Added a Playwright browser proof that starts a Basic Auth-protected asset server, imports the real shared API modules through Vite, and resolves managed asset URLs for avatar, avatar thumbnail, background, font, gallery, game, lorebook, sprite, and managed thumbnail paths.
  • Added a browser fixture that records object URL creation/revocation, renders the image-capable asset blobs, and proves the game asset object URL is reused before invalidation and regenerated after mriAssetV invalidation.
  • Added reviewer-visible evidence from the successful browser run.

Refactor impact

Primary owner:

  • Shared API / remote runtime browser proof.

Impact areas reviewed:

  • Remote runtime Basic Auth URL normalization and headers.
  • Shared managed asset resolver/object URL cache and invalidation behavior.
  • Managed asset browser rendering for image-capable asset kinds.

Boundary notes:

  • Production source is unchanged. The proof fixture imports the production src/shared/api/local-file-api.ts, src/shared/api/remote-runtime.ts, and UI store modules in a real browser through Vite.
  • No engine, feature UI, Rust command, schema, dependency, or storage format changes.

Pressure points touched:

  • None in production. The test exercises local-file-api/remote-runtime from the browser.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex browser proof: pnpm test:ui:run remote-managed-assets-basic-auth.spec.ts --project=chromium passed after rebasing onto latest upstream/refactor.
  • Codex baseline: pnpm check passed after the final diff.
  • Codex proof gate: node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json passed.
  • Evidence URL check: curl.exe -I https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-2057-basic-auth-assets/pr-evidence/issue-2057-basic-auth-managed-assets.png returned HTTP/1.1 200 OK.

Feature Discoverability

Check exactly one:

  • Updated 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.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Test/evidence-only PR; no user-discoverable product behavior changes.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Browser proof for Basic Auth managed asset blobs


🔄 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-Engine/pull/2075 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-2057-basic-auth-assets` --- ### 📝 Commits (3) - [`b7a7e39`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b7a7e3950f20f01d95eeb8cbe244f0e23b9dd94d) Add Basic Auth remote asset browser proof - [`4dcd2e9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4dcd2e9c38aca8e72da86bf87e873636a30cd3eb) Add issue 2057 browser proof evidence - [`25aa0ec`](https://github.com/Pasta-Devs/Marinara-Engine/commit/25aa0ec8b3bc4721c5319d09ccf180a3cdb7b27a) Address Bunny remote asset proof finding ### 📊 Changes **3 files changed** (+370 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `pr-evidence/issue-2057-basic-auth-managed-assets.png` (+0 -0) ➕ `tests/e2e/fixtures/remote-managed-asset-probe.html` (+182 -0) ➕ `tests/e2e/remote-managed-assets-basic-auth.spec.ts` (+188 -0) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #2057 ## Why this change - Issue #2057 had static proof for Remote Runtime Basic Auth managed asset blobs, but no live browser proof that the credentialed runtime URL renders through the blob path without exposing credentials. ## What changed - Added a Playwright browser proof that starts a Basic Auth-protected asset server, imports the real shared API modules through Vite, and resolves managed asset URLs for avatar, avatar thumbnail, background, font, gallery, game, lorebook, sprite, and managed thumbnail paths. - Added a browser fixture that records object URL creation/revocation, renders the image-capable asset blobs, and proves the game asset object URL is reused before invalidation and regenerated after `mriAssetV` invalidation. - Added reviewer-visible evidence from the successful browser run. ## Refactor impact Primary owner: - Shared API / remote runtime browser proof. Impact areas reviewed: - Remote runtime Basic Auth URL normalization and headers. - Shared managed asset resolver/object URL cache and invalidation behavior. - Managed asset browser rendering for image-capable asset kinds. Boundary notes: - Production source is unchanged. The proof fixture imports the production `src/shared/api/local-file-api.ts`, `src/shared/api/remote-runtime.ts`, and UI store modules in a real browser through Vite. - No engine, feature UI, Rust command, schema, dependency, or storage format changes. Pressure points touched: - None in production. The test exercises `local-file-api`/`remote-runtime` from the browser. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Codex browser proof: `pnpm test:ui:run remote-managed-assets-basic-auth.spec.ts --project=chromium` passed after rebasing onto latest `upstream/refactor`. - Codex baseline: `pnpm check` passed after the final diff. - Codex proof gate: `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json` passed. - Evidence URL check: `curl.exe -I https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-2057-basic-auth-assets/pr-evidence/issue-2057-basic-auth-managed-assets.png` returned `HTTP/1.1 200 OK`. ## Feature Discoverability Check exactly one: - [ ] Updated `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. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Test/evidence-only PR; no user-discoverable product behavior changes. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence ![Browser proof for Basic Auth managed asset blobs](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-2057-basic-auth-assets/pr-evidence/issue-2057-basic-auth-managed-assets.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:09 +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#5420
No description provided.