Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove json from list of static files in htaccess files #19051

Merged
merged 2 commits into from Apr 13, 2022
Merged

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Apr 5, 2022

Description:

fixes #18128

Review

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Apr 5, 2022
@sgiehl sgiehl added this to the 4.10.0 milestone Apr 5, 2022
Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

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

Tested by accessing a plugin json file directly (allowed), ran ./console core:create-security-files and then attempted to access the same json files (denied). ✔️

From what I can see there is no .htaccess file created for the root installation folder so composer.json and package.json are still accessible after this change. Is this intentional?

@sgiehl
Copy link
Member Author

sgiehl commented Apr 13, 2022

@bx80 Those files are not included in the release, so guess that can be ignored.

@sgiehl sgiehl removed the Needs Review PRs that need a code review label Apr 13, 2022
@sgiehl sgiehl merged commit 1adc3ab into 4.x-dev Apr 13, 2022
@sgiehl sgiehl deleted the m18128 branch April 13, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make JSON config / package static files unreachable via a GET request
2 participants