- Issue created by @Dobefu
In the .htaccess file, multiple files with potential sensitive information are blocked. For example: package.json, composer.json and composer.lock.
One could argue that the file should not be included on production in the first place, which is fair enough, but the same argument could be made for composer.lock.
- Create a package.json file in the webroot (as a control)
- Create a package-lock.json file in the webroot
- Navigate to both files in Drupal
- The package.json file should return a 403, whilst package-lock.json is accessible over the web
Add package-lock.json in the FilesMatch section of the .htaccess.
Review the patch.
None
None
None
Make package-lock.json files inaccessible over the web.