-
Notifications
You must be signed in to change notification settings - Fork 904
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
Annoying confirmation for scripts #178
Comments
@chevdor have a look in the chocolatey.config file, in there you will find a |
I'm pretty sure this has already been brought up as an issue. |
I'm confused - we have other folks who are commenting don't like seeing the script. Help me understand what you are not seeing? Can you send some logs? |
This is interesting, would you mind creating a separate ticket for it? I am not sure exactly how we'd do it yet, but still quite interesting. |
@gep13 yes indeed, thanks for the pointer. For the documentation:
We can find the following by default:
Changing into:
prevents the confirmation messages. |
Hi, First, thanks for your answers. Don´t get my comments wrong, I love chocolatey 😄 @ferventcoder My take is that seeing the script and asking for confirmation should be an explicit option such as The default should be a straight foward install, as in the previous version. A warning in case of suspicion (not certified package, etc...) would be totally fine though. I find annoying when I type Such annoyance usually ends up in users not reading anything and automatically typing 1 , not matter what... New feature: |
It's documented |
Awesome. On Thu, Mar 19, 2015, 21:53 Rob Reynolds notifications@github.com wrote:
|
It would be perfect if the command line to enable this feature would be featured inside the notification message, so we would not have to google it, or use the ugly notepad alternativ ;) |
@ssbarnea which:
are you referring to? |
@gep13 corrected: notification message should clearly state the entire line. |
Perhaps b11798e#diff-b0a6c8ddd1003e9f4cfe4b4eea167fb0R220 should say both |
@nwgat |
this is how choco should work is that @aronovgj i know |
And you are not seeing this work like this? Because this is 100% how it should work. |
I was under the impression that https://chocolatey.org packages are vetted. Does this mean that they are not, and I must manually verify packages are not malicious upon each install and upgrade? From a related thread on Google Groups:
This is not the same behaviour as apt-get or yum. After There is no prompt after the download to have you review the install scripts. At least, not by default. The packages that you download are signed by trustworthy maintainers who vouch that the packages are ok. |
What exactly gave you the impression that packages on chocolatey.org are not vetted (or moderated as we call it)? They are. The |
So what you are saying is that they ask permission, yet somehow when we ask for permission prior to downloading and installing it is different? |
That's good to hear. I was unclear on how well-reviewed the packages were. Chocolatey is a pretty sweet project, but you guys don't have the sort of resources that, say, Red Hat has.
You ask permission for different things. For instance, |
@cgmb I'm not quite sure - we ask permission to run a script. that script can download and then subsequently install something. Self-contained packages however don't need any permission, but they also do not execute anything that would change the state of the underlying system. They just drop package files. |
@cgmb our architecture is a bit different - most of our packages contain automation scripts that know how to go get software from the official distribution point and install it. When we stop and ask for confirmation, we are asking for permission to run the script, which could possibly download and install applications.
We are moving towards PGP signing of packages for security purposes. It wasn't built into the NuGet packaging framework that we selected for Chocolatey so we are adding it, probably the latter half of next year. |
And you are correct, we don't have the resources that RedHat does. :) |
That's why we try to ruthlessly automate where we can. :) |
+1 Please default |
@ferventcoder Could we just get the full text of the command in the message that says what setting to set? I have to look it up every time. |
@jkodroff sure, file a new issue? |
@ferventcoder #1053, per @nwgat's suggestion above. |
The new version introduces the need for confirmation for scripts. While I understand the point, I find it very annoying.
Installing a choco package, by definition, will run some scripts. So in general, I don´t really see the point of asking the user once again (are you sure to be sure?). Unless you assume users would slip on their keyboard and by mistake type cinst and would not expect to install it.
Moreover, as of now, the request to the user just asks if the script should run or not but the user does not actually see the script. So there is not really a way to make a reasonable decision.
Is there a way to turn that off without having to provide the -y everytime ?
It would be nice to be able to define a default per repo. For instance, using my local repo would imply -y by default while using a public repo would require the -y.
I think some packages in the chocolatey repo are also 'verified/certified'. It would be nice to have a way to not have to provide -y for those.
The text was updated successfully, but these errors were encountered: