Closed mattwynne closed 3 years ago
@gasparnagy can you help with this? Should we just update our checksum to whatever is now coming down from that original URL?
Doesn't look like there's been a dotnet v1 release for a while: https://dotnet.microsoft.com/download/dotnet/1.1
Because we're doing curl-pipe-bash with this you should download the script, check the sha1, read the script to see what it does. If that checks out you can update to the sha1 of the file you just checked.
If not \<play law and order tune>.
And I believe this is the source of the script. Seems to get regular updates.
When updating also consider using sha256
instead. sha1
is getting old.
@mattwynne i checked it: the source of the latest .NET install scripts are currently (always) at: https://dot.net/v1/dotnet-install.sh. Don't be confused, the v1 in the URL does not mean .NET 1. Actually this is just a script that can install even different versions of .NET. (It installs .NET 5 by default.)
The checksum checking is something that we added to the process. (I guess to avoid accessing a malicious script though invalid DNS entries). As @mpkorstanje mentioned, this has regular updates, so hard coding the checksum is not that useful, espcially because this is an 1500+ lines of script, so it is not that easy to verify whether a checksum change is problematic or not.
I think we have 3 options:
1) Remove the checksum verification -- this runs on the build, is someone can hack the DNS setting there, they can do other things as well. On the other hand, this is a public URL maintained by Microsoft - not very likely that we will be the target if it is ever going to be hacked. 2) Download the script and add it to the repository. Most probably the regular updates will not have a direct impact on us (or we will see if they do), so using the current version of the script for longer time is probably fine. 3) Update the checksum for the current one and postpone the problem for the next script update... :)
Wouldn't be the first time a script is changed on the server that hosts it.
https://about.codecov.io/security-update/
And with the source available it shouldn't be too difficult to check the differences.
Let's download the script and add it to the repo.
The nightly build started failing 12 days ago:
Has there been a new release of dotnet v1?