Skip to content

[stable33] docs: block access to metadata files in nginx sample configs - #15145

Merged
szaimen merged 1 commit into
stable33from
backport/15102/stable33
Jun 15, 2026
Merged

[stable33] docs: block access to metadata files in nginx sample configs#15145
szaimen merged 1 commit into
stable33from
backport/15102/stable33

Conversation

@szaimen

@szaimen szaimen commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Manual backport of #15102 to stable33

The nginx sample configs served top-level metadata files (composer.json,
composer.lock, package.json, package-lock.json, core/shipped.json) as plain
files, since they matched neither a 404 block nor the static-asset extension
list and fell through to `try_files $uri`. This leaked dependency information.

Add a 404 location block matching these files to both the root and subdir
sample configs, alongside the existing rules that hide non-public paths.

Fixes #15101

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Simon L. <szaimen@e.mail.de>

@MichaIng MichaIng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 👍

@szaimen
szaimen enabled auto-merge June 15, 2026 15:08
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

🔍 Open preview →

No RST documentation pages changed in this PR.

Last updated: Mon, 15 Jun 2026 17:25:45 GMT

@szaimen
szaimen merged commit a177a95 into stable33 Jun 15, 2026
22 checks passed
@szaimen
szaimen deleted the backport/15102/stable33 branch June 15, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants