From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: netrc field encryption in auth-source Date: Fri, 17 Jun 2011 09:17:13 +0200 Organization: not if I can help it Message-ID: References: <874o5cfui5.fsf@lifelogs.com> <87liyndz5l.fsf@lifelogs.com> <8739jogwf9.fsf@lifelogs.com> <87lix9eknu.fsf_-_@lifelogs.com> <878vt52ykv.fsf@lifelogs.com> <878vt25tbf.fsf@lifelogs.com> <87boxxx5k4.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308295084 20969 80.91.229.12 (17 Jun 2011 07:18:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 07:18:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 09:18:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QXTJW-0004WW-8s for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 09:17:58 +0200 Original-Received: from localhost ([::1]:41744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXTJV-0002la-Dh for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 03:17:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXTJ9-0002jt-33 for emacs-devel@gnu.org; Fri, 17 Jun 2011 03:17:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXTJ6-0006W9-Pb for emacs-devel@gnu.org; Fri, 17 Jun 2011 03:17:34 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:46006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXTJ6-0006W2-Ed for emacs-devel@gnu.org; Fri, 17 Jun 2011 03:17:32 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QXTJ4-0004Hn-Nq for emacs-devel@gnu.org; Fri, 17 Jun 2011 09:17:30 +0200 Original-Received: from lns-bzn-49f-81-56-191-143.adsl.proxad.net ([81.56.191.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2011 09:17:30 +0200 Original-Received: from rpluim by lns-bzn-49f-81-56-191-143.adsl.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2011 09:17:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lns-bzn-49f-81-56-191-143.adsl.proxad.net Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (cygwin) Cancel-Lock: sha1:ZniWAkLuSvv0Q4MNzKHJxnVLzrg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140591 Archived-At: Ted Zlatanov writes: > On Thu, 16 Jun 2011 10:32:15 +0200 Robert Pluim wrote: > RP> How about something like > > RP> "This controls what auth-source will do with password tokens: save them, > RP> ask, store as gpg tokens in .authinfo" > > You're just listing the defcustom choices in the docstring itself. What > if we add choices? We have to edit the docstring again. > > How about "Set this to tell auth-source how to handle password tokens in > unencrypted files." > Yes, that would be better (although I think an indication in the defcustom choices that 'gpg will result in saving tokens to .authinfo would be good as well) > RP> Also, does ask mean 'ask once', or does it mean 'ask every time'? I'm > RP> personally looking for something that would give me "don't store > RP> passwords and don't ask me about storing them except maybe the first > RP> time". > > I'm not sure yet. Right now it's once per Emacs session, if 'ask, but I > left the default nil since it's 100% experimental. So users that update > blindly will not be affected at all, for now. > > I can certainly use Customize to set it to 'gpg or nil forever after the > first time it's asked. The problem is, I'm also not sure if it should > be a single global setting. It feels like something that should be > decided for each individual netrc file. And if that's the case, maybe > the defcustom should hold that choice in an alist with regex matching. Hmm, a single global setting works for me, but I can envisage people desiring to have different values for different servers, not just different files. At that point we'd be stuffing server values in the custom variables, and we're back at square one. Would a new keyword in the file itself work? save-token {cleartext,ask,gpg,no}? Tell me if I'm over-engineering this :) Robert