-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
nixos default channel: use http instead of https #2688
Conversation
AFAIK https doesn't work in nixos-rebuild --updgrade. I just stumbled into it on a clean install, and I think that I heard before users complaining about errors like this.
Never had a problem installing nixos with https cache as default cache. On Sun, May 18, 2014 at 8:52 PM, Vladimír Čunát [email protected]:
www.debian.org - The Universal Operating System |
Today I was installing on a clean HW:
After changing https to http it worked without a problem. |
Yeah, I have to use |
:-D |
Wouldn't it be way better to fix the real issue? |
I'm not sure what's the issue, but the https URIs in there are just 302 redirects to http URIs (of a particular channel version). Consequently, it IMO provides practically no security. |
The issue is that |
Adding
to |
Would using |
@kirelagin Ha! Late night hacking - totally missed the fact that you referenced this PR. Cool. 😊 |
Using https is IMO still pointless (as it's just a redirect to http path), but at least it shouldn't cause problems after #2692. |
Why is the HTTPS URL redirecting to an HTTP url? If there's a proper cert for HTTPS, why not keep all the downloads available over HTTPS? Also shouldn't all downloads be over HTTPS anyway? |
IIRC, it was claimed that https isn't possible on the Amazon cloud hosting (at least not with our certificates). I don't have a clue what's the consensus about these things, considering reactions to this issue and contents of the manual. Manual suggests using http, then shows an example with https, and |
I think the consensus is that all the data is signed anyway, so https doesn't add anything in terms of security. But the https url is recommended just in case something changes in the future. |
I don't think we're using the signing yet NixOS/nix#75 |
But all the files are hashed, right? So it's enough to sign manifests. But it seems they are neither signed NixOS/nix#18… =( |
Manifests aren't used nowadays, as commented on the issue. IIRC, there is support for signed binary caches, but not used by our Hydra.nixos.org (yet). |
I think this should be a priority to be fixed. Could result in security issues. Either we use full https, or everything must be signed. |
The redirect to http is kind of an unintended side effect. The reason for the redirect was to serve ISOs via CloudFront. But we don't really need that for the channel nixexprs.tar.bz2. I can probably make the redirect only do the ISOs. |
The redirect to http is now gone, so the channel's |
So we should unify defaults in source and manual to https, or not? |
I just attempted a fresh install on OS X and got this error. Why is this ticket closed? |
|
OK, specifically I ran (as instructed): curl https://nixos.org/nix/install | sh aaaaand, that's it. |
@ballo OK, given the information you provided, looks like something is not working. Actually I also got this error when trying to do |
I believe the script runs |
This is Yosemite, BTW |
I just installed Nix on my new Mac and I'm also still getting this. This is on El Capitan. |
Oh good, it isn't just Yosemite. Hopefully this can be fixed for both |
Tried installing Nix twice on OS X 10.10.5 (VMWare Fusion 8 guest) using the shell command (curl https://nixos.org/nix/install | sh) and keep getting the same error (unable to check ‘https://nixos.org/channels/nixpkgs-unstable’). I wanted to try this package manager on OS X, as I really see this as the package management model for the future, but I am stumped at the moment (being a Nix Newb). There isn't a pile of info out there for OS X installation regarding Nix. Is it possible to execute multiple commands in terminal to get Nix installed on Yosemite (since the script install doesn't want to work) and if so, what are they? Help? Thx |
Same problem here, running OS X Yosemite 10.10.5. I just ran the command: curl https://nixos.org/nix/install | sh and got /nix/store//nix-1.10/bin/nix-channel: unable to check ‘https://nixos.org/channels/nixpkgs-unstable’ |
Seeing the same issue on a fresh El Capitan installation. curl https://nixos.org/nix/install -O
sed -i '' 's/http/https/g' install
sh ./install |
AFAIK https doesn't work in nixos-rebuild --upgrade. I just stumbled into it on a clean install, and I think that I heard before users complaining about errors like this.
Any comments?