mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8647
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-Engine/pull/8515
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie
Base:
staging← Head:test/access-chain-7914📝 Commits (4)
29e3b71test(server): run the real access hook chain in a regression (#7914)ee008e8test(server): isolate env file, wait out login cache, tighten asserts (#7914)b3b19c7Merge remote-tracking branch 'origin/staging' into test/access-chain-791405a0cc3docs: name the peers that pass the IP allowlist (#7914)📊 Changes
2 files changed (+123 additions, -1 deletions)
View changed files
📝
docs/REMOTE_ACCESS.md(+1 -1)➕
scripts/regressions/access-chain-security.regression.ts(+122 -0)📄 Description
Linked issue
Refs #7914 (last code slice; with #8510 merged, #7914 can close. The Docker gateway question moved to #8512).
Why this change
The access audit for #7914 found the hooks correct but untested as a chain:
loopback-proxy-auth-security.regression.tscopies the hook order by hand, so removing an access hook frompackages/server/src/app.tspassed every test.What changed
New
scripts/regressions/access-chain-security.regression.ts(test only, no product code). It builds the real app withbuildApp()and sends requests from a remote address:GET /api/chats, an avatar and a background route,/, an unknown path, andPOST /api/generate;/api/healthstays 200; loopback gets 200 on/api/chats.BASIC_AUTH_USER, onlyBASIC_AUTH_PASS, empty or invalid-onlyIP_ALLOWLIST, an allowlist without the client, malformedBYPASS_AUTH_DOCKER/BYPASS_AUTH_TAILSCALE, a damaged.remote-login.json.ipAllowlistHookcan deny it.docs/REMOTE_ACCESS.md).Isolation: own temp
DATA_DIRandMARINARA_ENV_FILE, so a developer.envcannot change the result; waits out the 2 s login-file cache before the damaged-file case.docs/REMOTE_ACCESS.md: the allowlist bullet now says trusted Tailscale/Docker peers andTRUSTED_AUTH_PROXYstill pass (review finding from #8510).Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent runs:
node ./scripts/run-regressions.mjs --filter access-chain-security→ 1/1 passed. Bite test: withbasicAuthHookcommented out the test fails (200 !== 403); withipAllowlistHookcommented out the valid-login-outside-allowlist case fails (200 !== 403).pnpm checkpassed on the first commit. An Opus review checked env and cache isolation; its fixes are in the second commit.Manual verification notes
securityfilename puts it inpnpm regression:securityand the node-regressions shards.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Not applicable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.