-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Reproducible builds and strict dependency verification #30685
Comments
As far as I'm aware I've avoided |
One problem of
|
Consider following npm manual and use only commands that are officially designed to guarantee reproducibility (is If performance tricks are required that may cause reproducibility problems - should be probably separated from main building path, which should be 100% reproducible and verified (security). |
At least for development, I prefer the fast variant, but we could likely make the |
Thought I do think I stand correct that |
I'll close this. As far as I'm aware |
It seems that Let's simulate package version we're depending on was republished by attacker and now includes very bad stuff we definitely don't want to see on our servers:
So #30688 seems better than #30689. And |
You are right that the dependencies of I see
That said, I have a branch to split into another package.json at silverwind@85090d3, but it's not in a state where I'm completely happy with it. I think I will change it to track only this one script's dependencies instead. |
Why not solution proposed in #30688 to avoid messing with separate package.json & package-lock.json? |
Because |
Consider dropping binary images & whole |
Yes, that's the long-term plan, but IIRC things like IOS homescreen icons still only support raster images, but it's not so important to not consider dropping it. |
Description
Gitea build process was found not reproducible. Please force strict verification against committed checksums for every dependency to avoid surprises and to better protect against supply chain attacks.
npi ci
should probably be used insteadnpm install
and break install process if any checksum mismatch occurs. Same for go modules (if works different now).Related: #29326 (comment)
Gitea Version
1.21
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Compiled from sources.
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: