unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: font-un: Add mirror.
@ 2016-08-20 19:44 ng0
  2016-08-22 20:26 ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: ng0 @ 2016-08-20 19:44 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]

This adds another mirror for font-un, this time with tls
enabled. Leaving the sdf.org mirror in the list in case dl.n0.is goes
down.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-font-un-Add-tls-mirror.patch --]
[-- Type: text/x-patch, Size: 903 bytes --]

From 163375e4af66eacece1860bb7850b7e92cd75cb6 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sat, 20 Aug 2016 19:40:14 +0000
Subject: [PATCH] gnu: font-un: Add tls mirror.

* gnu/packages/fonts.scm (font-un)[source]: Add mirror.
---
 gnu/packages/fonts.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 9b2281a..e69d5c9 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -708,6 +708,8 @@ symbols unable to be displayed properly.")
     (source (origin
               (method url-fetch)
               (uri (list
+                    (string-append "https://dl.n0.is/hosted/"
+                                   name "-" version ".tar.gz")
                     (string-append
                      "http://krosos.sdf.org/static/unix/"
                      "un-fonts-core-" version ".tar.gz")
-- 
2.9.3


[-- Attachment #3: Type: text/plain, Size: 70 bytes --]


-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: font-un: Add mirror.
  2016-08-20 19:44 [PATCH] gnu: font-un: Add mirror ng0
@ 2016-08-22 20:26 ` Leo Famulari
  2016-08-22 22:47   ` ng0
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-08-22 20:26 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

On Sat, Aug 20, 2016 at 07:44:21PM +0000, ng0 wrote:
> This adds another mirror for font-un, this time with tls
> enabled. Leaving the sdf.org mirror in the list in case dl.n0.is goes
> down.

Hi, can you remind us why this is necessary?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: font-un: Add mirror.
  2016-08-22 20:26 ` Leo Famulari
@ 2016-08-22 22:47   ` ng0
  2016-08-31 19:25     ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: ng0 @ 2016-08-22 22:47 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> writes:

> On Sat, Aug 20, 2016 at 07:44:21PM +0000, ng0 wrote:
>> This adds another mirror for font-un, this time with tls
>> enabled. Leaving the sdf.org mirror in the list in case dl.n0.is goes
>> down.
>
> Hi, can you remind us why this is necessary?

It is possible that it is unnecessary. My motivation was that tls
enabled source urls provide minimal more security. But we have the
hash of the file which is expected, so there should be no significant
difference between those two protocols, correct?

If this is true, this patch was unnecessary.
-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: font-un: Add mirror.
  2016-08-22 22:47   ` ng0
@ 2016-08-31 19:25     ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-08-31 19:25 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

On Mon, Aug 22, 2016 at 10:47:38PM +0000, ng0 wrote:
> > On Sat, Aug 20, 2016 at 07:44:21PM +0000, ng0 wrote:
> >> This adds another mirror for font-un, this time with tls
> >> enabled. Leaving the sdf.org mirror in the list in case dl.n0.is goes
> >> down.
> >
> > Hi, can you remind us why this is necessary?
> 
> It is possible that it is unnecessary. My motivation was that tls
> enabled source urls provide minimal more security. But we have the
> hash of the file which is expected, so there should be no significant
> difference between those two protocols, correct?

Since we check the hash of the downloaded source file, there _shouldn't_
be any difference between using HTTP and HTTPS.

However, users of HTTP don't have the privacy that HTTPS can provide.

Also, HTTP is unauthenticated, so a man-in-the-middle could provide a
malformed source file that exploited bugs in our HTTP client or
hash checker.

Those are the drawbacks of HTTP that I can think of with respect to
Guix's source file downloading. I'm no expert, so I could be wrong, and
there could be other drawbacks.

> If this is true, this patch was unnecessary.

But, I don't think we should start re-hosting the source tarballs
ourself unless there is no other source. Also, Hydra itself serves as a
content-addressed mirror now.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-31 19:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-20 19:44 [PATCH] gnu: font-un: Add mirror ng0
2016-08-22 20:26 ` Leo Famulari
2016-08-22 22:47   ` ng0
2016-08-31 19:25     ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).