-
Notifications
You must be signed in to change notification settings - Fork 892
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
Security considerations in installation method #442
Comments
@SilverWingedSeraph Yes, I would love to have rustup packages for common formats! Instead of teaching rustup self-updates though to interact with the package manager, I'd rather just disable self-updates when packaged, and let the package manager deal with it the normal way. Does that sound right to you? |
I'd be all for that - I was only suggesting other solutions because people |
It's not a question of liking it, simply that package managers will lag behind latest version, especially given the given the frequency of updates right now. |
The lack of debian package is bummer. Especially since rustup seems to refuse to install in parallel of the official package. Since rustup seems the only way to get rustfmt this is problematic. |
@marmoute How do you mean by "refuse"? If you mean that |
Well it says "error: rustup cannot be installed alongside Rust. Please uninstall first" Okay, I can overwrite this, but I have ø idea about "is this reasonable override?" |
I think the error message could indeed be improved. I have a patch which changes it to:
Would that have made it clearer what you could do? |
Because some people install rustc/cargo from their distro and then try and install rustup, they can get confused/worried by the error message given. This attempts to ameliorate the situation by being a little clearer about what might go wrong. Fixes: rust-lang#442 Signed-off-by: Daniel Silverstone <[email protected]>
Because some people install rustc/cargo from their distro and then try and install rustup, they can get confused/worried by the error message given. This attempts to ameliorate the situation by being a little clearer about what might go wrong. Fixes: rust-lang#442 Signed-off-by: Daniel Silverstone <[email protected]>
(Note, I accidentally marked that commit as closing this issue, it won't, sorry about the noise) |
That much clearer, thanks! |
@rustbot label: +O-linux |
Currently, out of all Linux distributions, only Arch Linux has a method for installing rustup via a package manager, and the recommended method is to use a copy/pasted
curl | bash
. There has been some discussion as to whether this is a security problem. I contend that it is, because even with an SSL-encrypted website as the source for the copy/paste, a quick-thinking social engineer in physical proximity to a target could cause havoc by running Moxie's SSLStrip, hijacking the redirect, and changing the URL beingcurl
'd, effectively giving arbitrary code not only execution but execution with user trust.I would like to gauge interest in creating self-installer packages for more mainstream distributions such as Debian (Ubuntu, Mint, etc), Fedora/Red Hat, and SUSE - that is, either amending rustup so that it can update itself in a safe and transactional way, or creating a rustup-up (so to speak) that is capable of doing so, and packaging that installer. This would allow inclusion in traceable installation infrastructure, which would solve the security issue, and allow the project to avoid the apparent stagnation that Arduino and other rapidly moving projects have faced.
If there is interest in this proposal, I'd be more than happy to work on it this summer; my school semester ends soon, and I would love to put my time to good use.
The text was updated successfully, but these errors were encountered: