-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Verify git-tree-sha1 of registry downloads #3408
Conversation
This patch adds verification of registries downloaded from Pkg server when using the default method of keeping registries as compressed tarballs. This verification is done before the registry is moved in place to ensure that a Pkg server that serves bad content does not also poison the users local machine.
How expensive is the uncompress? Is it worth passing that forward out of the verify function for later use? |
I suppose if there is a way to
|
Timing on my i7 2018 MBP
After warmup
|
Thanks. I don't think the verification will be noticeable in general then. In practice this will only happen if you run |
This patch adds verification of registries downloaded from Pkg server when using the default method of keeping registries as compressed tarballs. This verification is done before the registry is moved in place to ensure that a Pkg server that serves bad content does not also poison the users local machine. (cherry picked from commit 1c6ba55)
Well, this came back to bite me (https://github.com/fredrikekre/jlpkg runs with $ time JULIA_DEPOT_PATH=$(mktemp -d) julia --compile=min -e 'import Pkg; Pkg.Registry.add()'
real 5m56,043s
user 5m53,843s
sys 0m0,754s |
What does a profile look like? Any low hanging fruit? |
@fredrikekre should fixing this this hold up updating Pkg? JuliaLang/julia#49295 |
No, |
This patch adds verification of registries downloaded from Pkg server when using the default method of keeping registries as compressed tarballs. This verification is done before the registry is moved in place to ensure that a Pkg server that serves bad content does not also poison the users local machine.