-
Notifications
You must be signed in to change notification settings - Fork 902
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
On package update, recognize and inform users if an installer script has not changed #1911
Comments
Would be very cool to have a basic diff display if needed for install scripts that have changed. 🤔 |
Thanks for writing that up! |
This is nice security idea, might not be so trivial to implement tho. It could also be implmented as PoC outside of choco, by for example hooking For example, in cup.bat
Notify is one option but leaving it only one is meh. Cup should have option to abort install of changed packages until run with force or something. |
I wonder if tying in a PowerShell Gallery here would help. Scripts are versioned in the Gallery, downloadable from a Gallery, and Choco could leverage the public one or offer its own. Just thinking an idea out loud. Leveraging a gallery and isolating installer scripts could also help for installers that use a boilerplate shared script, passing in a JSON payload that defines what to install into a script that they download. |
I don't like it, many do not use gallery. |
This could be included as an extension without too much difficulty if #1911 is implemented. |
Whenever I install or update packages using
choco
, I always review the installation scripts. This becomes very tedious on updates, because often the script itself does not change at all -- the bits that are installed change, which may mean some file names/URLs have changed, but the script that does the installation does not change, so I end up reviewing the same code over and over again, and that's just something to make my eyes glaze over and I may miss something important.It would be very helpful if
choco
, on update, could recognize if a given script did or did not change since the last version of the package was installed, and notify me appropriately. Presumably if I trusted the script before, I trust it still, especially if it did not change. This way mychoco
updates would be much easier to review/approve, and I could focus my attention on scripts that actually changed when I update installed packages.The text was updated successfully, but these errors were encountered: