all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#9280: 24.0.50; default value of epa-file-select-keys should be nil
@ 2011-08-11  6:31 Roland Winkler
  2011-08-11 13:18 ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Roland Winkler @ 2011-08-11  6:31 UTC (permalink / raw)
  To: 9280; +Cc: Lars Magne Ingebrigtsen, Daiki Ueno, Ted Zlatanov

Recently I filed bug report #9112 saying that I could not create new
gpg-encrypted files anymore the way I was expecting it from emacs
23, namely with a key selection UI. I learned from Daiki that this
is due to a change of the default value of epa-file-select-keys from
nil to 'silent in Emacs 24, which means symmetric encryption is now
the default. This followed discussions mostly by Daiki, Ted, and Lars.

I disagree with this change of the default value of
epa-file-select-keys in the sense that I find the current "silent"
default behavior too brief for unexperienced users (like myself
until recently). Part of the problem is that for symmetric
encryption gpg will simply pop up a pinentry window saying "enter
passphrase". But nothing tells the user that the file he or she
wants to save is just about to go through symmetric encryption (and
not any other encryption mechanism the user might hope for). Yet any
misunderstanding concerning the encryption mechanism could imply
that a file is essentially lost after saving.

We cannot change easily the brief behavior of the pinentry window.
So I request that the default of epa-file-select-keys should go back
to nil which provides a key selection UI so that the user gets some
ideas what the options are.

Ted, Lars, and also I myself, we can always customize things to make
the behavior more brief and geared towards our personal needs. But
making the brief behavior the default, assuming that the average
user understands all these things, in my opinion is asking for
trouble and confusion.



In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2011-07-16 on regnitz





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

* bug#9280: 24.0.50; default value of epa-file-select-keys should be nil
  2011-08-11  6:31 bug#9280: 24.0.50; default value of epa-file-select-keys should be nil Roland Winkler
@ 2011-08-11 13:18 ` Stefan Monnier
  2011-08-12  1:13   ` Daiki Ueno
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2011-08-11 13:18 UTC (permalink / raw)
  To: Roland Winkler; +Cc: Lars Magne Ingebrigtsen, Daiki Ueno, Ted Zlatanov, 9280

> I disagree with this change of the default value of
> epa-file-select-keys in the sense that I find the current "silent"
> default behavior too brief for unexperienced users (like myself
> until recently).

I tend to agree.

> Part of the problem is that for symmetric encryption gpg will simply
> pop up a pinentry window saying "enter passphrase". But nothing tells
> the user that the file he or she wants to save is just about to go
> through symmetric encryption (and not any other encryption mechanism
> the user might hope for).

The "enter passphrase" dialog should at the very least indicate what
kind of passphrase is expected (in this case a passphrase for symmetric
encryption).


        Stefan





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

* bug#9280: 24.0.50; default value of epa-file-select-keys should be nil
  2011-08-11 13:18 ` Stefan Monnier
@ 2011-08-12  1:13   ` Daiki Ueno
  2011-08-12  2:05     ` Roland Winkler
  2011-08-12 14:08     ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Daiki Ueno @ 2011-08-12  1:13 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Ted Zlatanov, 9280, Lars Magne Ingebrigtsen, Roland Winkler

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I disagree with this change of the default value of
>> epa-file-select-keys in the sense that I find the current "silent"
>> default behavior too brief for unexperienced users (like myself
>> until recently).
>
> I tend to agree.

IIRC, they supported the change because at that time Gnus needed to
repeatedly decrypt ~/.authinfo.gpg.  However, now ~/.authinfo (not .gpg)
is the default (yes, #9113 is another issue) and maybe it would be safe
to change the default value of epa-file-select-keys back to nil.

Regards,
-- 
Daiki Ueno





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

* bug#9280: 24.0.50; default value of epa-file-select-keys should be nil
  2011-08-12  1:13   ` Daiki Ueno
@ 2011-08-12  2:05     ` Roland Winkler
  2011-08-12  2:51       ` Daiki Ueno
  2011-08-12 14:08     ` Stefan Monnier
  1 sibling, 1 reply; 7+ messages in thread
From: Roland Winkler @ 2011-08-12  2:05 UTC (permalink / raw)
  To: Daiki Ueno; +Cc: Ted Zlatanov, 9280, Lars Magne Ingebrigtsen

On Fri Aug 12 2011 Daiki Ueno wrote:
> IIRC, they supported the change because at that time Gnus needed to
> repeatedly decrypt ~/.authinfo.gpg.  However, now ~/.authinfo (not .gpg)
> is the default (yes, #9113 is another issue) and maybe it would be safe
> to change the default value of epa-file-select-keys back to nil.

In a way, I am a bit surprised about the rationale for these changes.

- the default value of epa-file-select-keys was changed because of
  ~/.authinfo.gpg. But obviously this change affects many completely
  unrelated situations, too.

- Now the value of epa-file-select-keys is not a problem anymore
  because ~/.authinfo.gpg by default got renamed to ~/.authinfo,
  which is causing new problems, see #9113. 

It seems to me that here only symptoms are treated in a way that
cause all kinds of new problems. -- I do not fully understand what
motivated these changes in the first place. Yet it appears to me
that it might be necessary to seek a proper solution in a different
way.

Roland





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

* bug#9280: 24.0.50; default value of epa-file-select-keys should be nil
  2011-08-12  2:05     ` Roland Winkler
@ 2011-08-12  2:51       ` Daiki Ueno
  2011-08-12  3:28         ` Roland Winkler
  0 siblings, 1 reply; 7+ messages in thread
From: Daiki Ueno @ 2011-08-12  2:51 UTC (permalink / raw)
  To: Roland Winkler; +Cc: Ted Zlatanov, 9280, Lars Magne Ingebrigtsen

"Roland Winkler" <winkler@gnu.org> writes:

> In a way, I am a bit surprised about the rationale for these changes.
>
> - the default value of epa-file-select-keys was changed because of
>   ~/.authinfo.gpg. But obviously this change affects many completely
>   unrelated situations, too.

Right.

> - Now the value of epa-file-select-keys is not a problem anymore
>   because ~/.authinfo.gpg by default got renamed to ~/.authinfo,
>   which is causing new problems, see #9113. 

I think Ted is working on making ~/.authinfo partially encrypted, though
it won't work with GnuPG2 and/or gpg-agent and calls gpg program many
times.

Maybe you could try: (setq auth-sources '("~/.emacs.d/auth.plist"))
*.plist file is handled by a different backend which I added recently,
that supports partial encryption without hassles.

Regards,
-- 
Daiki Ueno





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

* bug#9280: 24.0.50; default value of epa-file-select-keys should be nil
  2011-08-12  2:51       ` Daiki Ueno
@ 2011-08-12  3:28         ` Roland Winkler
  0 siblings, 0 replies; 7+ messages in thread
From: Roland Winkler @ 2011-08-12  3:28 UTC (permalink / raw)
  To: Daiki Ueno; +Cc: Ted Zlatanov, 9280, Lars Magne Ingebrigtsen

On Fri Aug 12 2011 Daiki Ueno wrote:
> Maybe you could try: (setq auth-sources '("~/.emacs.d/auth.plist"))
> *.plist file is handled by a different backend which I added recently,
> that supports partial encryption without hassles.

Thanks. Actually, I have already done something like this. -- I am
sure that for all these variables in the end I can find settings
that suit my taste / needs. Yet I want to note once more that I
submitted this bug report because I believe that default settings of
user variables should be the most reasonable for users who have not
yet browsed through the code to figure these things out for
themselves.

Roland





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

* bug#9280: 24.0.50; default value of epa-file-select-keys should be nil
  2011-08-12  1:13   ` Daiki Ueno
  2011-08-12  2:05     ` Roland Winkler
@ 2011-08-12 14:08     ` Stefan Monnier
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2011-08-12 14:08 UTC (permalink / raw)
  To: 9280-done

>>> I disagree with this change of the default value of
>>> epa-file-select-keys in the sense that I find the current "silent"
>>> default behavior too brief for unexperienced users (like myself
>>> until recently).
>> I tend to agree.
> IIRC, they supported the change because at that time Gnus needed to
> repeatedly decrypt ~/.authinfo.gpg.  However, now ~/.authinfo (not .gpg)
> is the default (yes, #9113 is another issue) and maybe it would be safe
> to change the default value of epa-file-select-keys back to nil.

I just changed it back to nil.


        Stefan





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

end of thread, other threads:[~2011-08-12 14:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11  6:31 bug#9280: 24.0.50; default value of epa-file-select-keys should be nil Roland Winkler
2011-08-11 13:18 ` Stefan Monnier
2011-08-12  1:13   ` Daiki Ueno
2011-08-12  2:05     ` Roland Winkler
2011-08-12  2:51       ` Daiki Ueno
2011-08-12  3:28         ` Roland Winkler
2011-08-12 14:08     ` Stefan Monnier

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.