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#8041
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/7988
Author: @Gunterlie
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/broad-allowlist-warning📝 Commits (3)
c62d87cfeat(server): report a broad IP allowlist as open to the internet (#7911)5f716b5fix(server): reject IPv4 allowlist prefixes above /32 (#7911)1039360fix(server): report IPv6 allowlist entries that cover all IPv4 as broad (#7911)📊 Changes
3 files changed (+39 additions, -1 deletions)
View changed files
📝
packages/server/src/middleware/ip-allowlist.ts(+24 -1)📝
scripts/regressions/access-policy.regression.ts(+5 -0)📝
scripts/regressions/access-status.regression.ts(+10 -0)📄 Description
Part of #7911 (parent #7909).
Why
The access status warning (#7955) reports an
IP_ALLOWLISTas a deliberate choice and stays quiet. But an entry such as0.0.0.0/0,::/0or a public/8lets in whole ISPs or the whole internet without a password. You should see that as the critical "open to the internet" warning, not as a normal allowlist.What changed
ip-allowlist.ts: an allowlist entry counts as broad when its prefix is shorter than/16(IPv4) or/32(IPv6) and it is not inside the private, CGNAT or loopback ranges. When a direct (not proxied) allowlist has such an entry,getPasswordlessPeersalso reportsinternet, next toallowlist.access-policy.tsand the request hooks is unchanged.internetas critical.0.0.0.0/0and::/0reportinternet+allowlist;10.0.0.0/8,203.0.113.0/24and100.64.0.0/10reportallowlistonly.Manual verification
IP_ALLOWLIST=0.0.0.0/0, open Marinara on the host and confirm the critical "open to the internet" banner shows.IP_ALLOWLIST=192.168.1.0/24and confirm only the normal allowlist status shows.Local checks:
pnpm check,pnpm localization:check, access regressions pass. Local CodeRabbit could not run (rate limit); the GitHub CodeRabbit review covers it.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.