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

Fixes #4341: package.json & package-lock.json not rsynced by default (main). #4344

Merged
merged 2 commits into from
Feb 11, 2021

Conversation

siliconmeadow
Copy link
Contributor

@siliconmeadow siliconmeadow commented Feb 11, 2021

Motivation
Fixes #4341
package.json and package-lock.json files not rsynced by default. Addresses this supply-chain vulnerability: https://www.bleepingcomputer.com/news/security/researcher-hacks-over-35-tech-firms-in-novel-supply-chain-attack/

Sorry I did the 11.x branch instead of main first.

Proposed changes
As mentioned in @danepowell 's comments in #4341, users can opt to do this themselves on their own repos. Once this is in place, new projects would have it available by default.

Alternatives considered
I considered possibly putting a .htaccess file in the theme, but @danepowell 's suggestion seemed far more elegant, robust and reliable.

Testing steps
I've only verified this on a client's DEV env with a manual blt deploy and worked for our single use case.

Merge requirements

  • Bug, enhancement, or breaking change label applied
  • Manual testing by a reviewer

Maybe a security hardening label?

@siliconmeadow siliconmeadow changed the title Main Fixes #4341: package.json & package-lock.json not rsynced by default (main). Feb 11, 2021
@danepowell danepowell added the Enhancement A feature or feature request label Feb 11, 2021
@danepowell danepowell merged commit 3815214 into acquia:main Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove package-lock.json files when building artefacts
2 participants