mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7924] [MERGED] fix(server): ask search engines not to index Marinara #8004
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#8004
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/7924
Author: @Gunterlie
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/noindex-7910📝 Commits (2)
556fb87fix(server): ask search engines not to index Marinara (#7910)74c6f6cdocs: place search-engine note before related guides📊 Changes
6 files changed (+24 additions, -3 deletions)
View changed files
📝
docs/REMOTE_ACCESS.md(+4 -0)📝
packages/client/index.html(+1 -0)📝
packages/server/src/app.ts(+3 -3)📝
packages/server/src/middleware/security-headers.ts(+2 -0)📝
scripts/regressions/loopback-proxy-auth-security.regression.ts(+10 -0)📝
scripts/regressions/static-cache-headers.regression.ts(+4 -0)📄 Description
Linked issue
Closes #7910. Part of #7909. @SpicyMarinara
Why this change
Search engines index reachable Marinara installations, so strangers can find them by searching for the product name. Only the access-refusal page asked crawlers not to index it. Every response now does. This is a secondary measure: it does not give access control and does not remove pages that are already indexed.
What changed
security-headers.ts: every response getsX-Robots-Tag: noindex, nofollow. It is set on the raw response too, so routes that write raw SSE headers (reply.raw.writeHead) also carry it.app.ts: the security-headers hook now runs before host validation, so 421 refusals (and CORS preflights) also get the security headers. No later hook reads or removes these headers.index.html:<meta name="robots" content="noindex, nofollow">.docs/REMOTE_ACCESS.md: a short "Search engines" section that says this is not access control.Known test gaps (accepted, low): the regression mirrors the
app.tshook order instead of reading it, and no regression drives a raw SSE route.Validation
Run by the agent on devbox:
loopback-proxy-auth-securityregression: passpnpm regression:static-cache: passserver
tsc --noEmit: passprettier --checkon changed files: passOpus gate review: ship, no defects; docs placement nit fixed in this PR
pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
curl -sI http://localhost:7860/that the response hasX-Robots-Tag: noindex, nofollow.X-Robots-Tag.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs-i18n: the "Search engines" section is already translated for all ten packs together with #7921; that PR opens after this one merges so its manifests can point at the merged staging commit.
UI evidence (if applicable)
Not applicable: response header, one meta tag and docs.
Summary by CodeRabbit
Security
noindex, nofollowdirectives to prevent search engines from indexing the client interface or following its links.Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.