From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: serving ELPA over HTTP/S
Date: Mon, 04 May 2015 12:01:42 -0400 [thread overview]
Message-ID: <87d22g8h7d.fsf@lifelogs.com> (raw)
In-Reply-To: jwvwq0oe4p5.fsf-monnier+emacs@gnu.org
On Mon, 04 May 2015 11:41:09 -0400 Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> I listed several items; do you think none of those are required?
SM> Let's see:
SM> * set the defaults and docs to point to https://elpa.gnu.org
SM> Yes, that's the crux of the matter, and the only part I discussed in my
SM> previous message.
SM> * warn and possibly abort when ELPA transfers are done over HTTP
SM> * offer to switch the "gnu" ELPA archive to https://elpa.gnu.org
SM> Why?
Because HTTP is worse than HTTP/S as a software delivery channel in
almost every way.
SM> * maybe add the GNU ELPA SSL certificate chain explicitly to Emacs
SM> IIUC it's not necessary because that should already be installed on
SM> your system.
Unfortunately it's not always the case. If we want package installation
to always work, we should provide a safety net. But I'm not insisting
on this, only suggesting it.
>> We can switch to an external binary for the data transfer, for instance.
SM> Why bother?
To provide a fallback. But I agree that it's better to just ask for GnuTLS.
>> Are those platforms worth exposing our users to the drawbacks of
>> installing packages over HTTP?
SM> I don't think those drawbacks are so terrible.
OK, let's say they are enough to justify some concern. So we should
express that concern through warnings.
SM> But, yes, by all means, do try and change package-archives to default to
SM> using https when that works.
OK. Perhaps it's best to simply make it a list instead of a string and
try each one in sequence. That would also allow `package-archives' to
support "dumb" failover natively, a nice side benefit!
The change will be from:
LOCATION specifies the base location for the archive.
If it starts with "http:", it is treated as a HTTP URL;
otherwise it should be an absolute directory name.
(Other types of URL are currently not supported.)
to:
LOCATION specifies the base location for the archive.
If it starts with "http:" or "https:", it is treated as a HTTP URL;
otherwise it should be an absolute directory name.
(Other types of URL are currently not supported.)
If LOCATION is a list, each element is attempted as a URL sequentially.
And change the default to
(("gnu" "https://elpa.gnu.org/packages/" "http://elpa.gnu.org/packages/"))
That would annoy but not break users that don't have GnuTLS available.
Sounds good?
Ted
next prev parent reply other threads:[~2015-05-04 16:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-04 13:25 serving ELPA over HTTP/S Ted Zlatanov
2015-05-04 14:22 ` Stefan Monnier
2015-05-04 14:53 ` Ted Zlatanov
2015-05-04 15:41 ` Stefan Monnier
2015-05-04 16:01 ` Ted Zlatanov [this message]
2015-05-04 17:20 ` Ivan Shmakov
2015-05-04 19:16 ` Stefan Monnier
2015-05-04 19:54 ` Ted Zlatanov
2015-05-05 11:50 ` Stefan Monnier
2015-05-05 14:19 ` Ted Zlatanov
2015-05-05 14:53 ` Artur Malabarba
2015-05-05 17:38 ` Stefan Monnier
2015-05-04 14:42 ` Artur Malabarba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d22g8h7d.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.