unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrg@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: auth-source change default spec
Date: Mon, 30 Apr 2012 14:51:24 +0200	[thread overview]
Message-ID: <ruwr4xxu0j.fsf@news.eternal-september.org> (raw)
In-Reply-To: 87zk9to1bh.fsf@lifelogs.com

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Sat, 28 Apr 2012 10:45:37 +1000 Tim Cross <theophilusx@gmail.com> wrote: 
>
> TC> I've recently run into a minor problem with the auth-source library
> TC> which I think is due to the default SPEC for auth-sources. I wanted
> TC> some feedbak before logging a bug request and also wanted to make this
> TC> possible issue visible asap given the need to get defaults sorted for
> TC> the next release.
>
> TC> The current default sorces spec (taken from recent emacs bzr sources) is
>
> TC> ("~/.authinfo" "~/.authinfo.gpg" "~/.netrc")
>
> TC> I think it should be changed to have .authinfo.gpg first in the
> TC> list.
>
> Could you please read through Emacs bug #9113?  It deals with this issue
> at length.
>
> http://comments.gmane.org/gmane.emacs.bugs/49377
>
> I had the .gpg file first originally and would still like it to be
> first, but the objections are quite reasonable.
>
> TC> The reason is that if you already have a .authinfo.gpg file and then
> TC> attempt to access a resource for which you don't yet have credentials
> TC> and the search criteria specifies the :create option, because
> TC> .authinfo is first, it will attempt to save the credentials in the
> TC> .authinfo file and not .authinfo.gpg. If you have things configured to
> TC> ask if you want to save (the default) it will ask if you want to save
> TC> to .authinfo even when it is aware you have a .authinfo.gpg file. It
> TC> does not appear to give you an option to change this.  If you just
> TC> accept the defaults and you do use .authinfo.gpg, things will break
> TC> when you add new credentials because it will create a .authinfo
> TC> file.
>
> I don't think anything is broken.  auth-source is simply respecting
> `auth-sources' as it's supposed to.  Preferring the second source
> because of some attribute (e.g. "it has the .gpg extension") is much
> worse in terms of usability.

I would strongly disagree. I would expect it should default to the most
secure. And allow fall through on the search. Should you really want,
for some really obscure reason, to prefer a plain text file for secure
passwords over the .gpg then some sort of override could be
implemented. I know I'd be pretty miffed if I saved passwords thinking
they were going into .gpg only to have them read out to me at a later
date by someone who got hold of the plaintext file.








  reply	other threads:[~2012-04-30 12:51 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-28  0:45 auth-source change default spec Tim Cross
2012-04-28  8:46 ` Tim Cross
2012-04-28 15:08   ` Stefan Monnier
2012-04-29  0:04     ` Tim Cross
2012-04-30 12:23 ` Ted Zlatanov
2012-04-30 12:51   ` Richard Riley [this message]
2012-04-30 22:41     ` Tim Cross
2012-05-01 14:00     ` Ted Zlatanov
2012-05-01 21:41       ` Tim Cross
2012-05-02 12:25         ` Ted Zlatanov
2012-05-02 13:59           ` menu system in recent Emacs? (was: auth-source change default spec) Ted Zlatanov
2012-05-02 14:37             ` menu system in recent Emacs? Davis Herring
2012-05-02 15:07               ` Ted Zlatanov
2012-05-02 18:52             ` Tassilo Horn
2012-05-02 19:35               ` Ted Zlatanov
2012-05-02 18:00                 ` Eric Schulte
2012-05-02 21:34                   ` Ted Zlatanov
2012-05-02 23:52                     ` Thien-Thi Nguyen
2012-05-03  0:53                       ` Ted Zlatanov
2012-05-03  1:12                         ` Thien-Thi Nguyen
2012-05-03  1:44                           ` Ted Zlatanov
2012-05-03  1:47                           ` Stefan Monnier
2012-05-03  5:21                           ` Thierry Volpiatto
2012-05-03  6:25                             ` Thierry Volpiatto
2012-05-03  7:13                             ` Thien-Thi Nguyen
2012-05-03  7:28                               ` Thierry Volpiatto
2012-05-03  6:18                   ` Stefan Reichör
2012-05-03 12:01                     ` Ted Zlatanov
2012-05-03  4:09           ` auth-source change default spec Tim Cross

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ruwr4xxu0j.fsf@news.eternal-september.org \
    --to=rileyrg@gmail.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).