From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36052: 26.2.50; [PATCH] Improve auth-source-pass Date: Fri, 14 Jun 2019 10:47:42 +0300 Message-ID: <83imt8y5ep.fsf@gnu.org> References: <87o93gjqrw.fsf@cassou.me> <87a7eu2pk5.fsf@gmail.com> <87sgskhydy.fsf@cassou.me> <877e9p45p7.fsf@cassou.me> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="28550"; mail-complaints-to="usenet@blaine.gmane.org" Cc: magnus.henoch@gmail.com, nicolas@petton.fr, npostavs@gmail.com, iku.iwasa@gmail.com, camalot@picnicpark.org, gaby.launay@tutanota.com, 36052@debbugs.gnu.org, tzz@lifelogs.com To: Damien Cassou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 14 09:49:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbgxX-0007E0-2Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jun 2019 09:49:15 +0200 Original-Received: from localhost ([::1]:49112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgxV-0004j8-JF for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jun 2019 03:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44635) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgxN-0004iz-Fd for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2019 03:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbgxL-00062z-KL for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2019 03:49:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51245) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbgxJ-00060r-VR for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2019 03:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbgxJ-00035P-Rb for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2019 03:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jun 2019 07:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36052 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36052-submit@debbugs.gnu.org id=B36052.156049849211801 (code B ref 36052); Fri, 14 Jun 2019 07:49:01 +0000 Original-Received: (at 36052) by debbugs.gnu.org; 14 Jun 2019 07:48:12 +0000 Original-Received: from localhost ([127.0.0.1]:36556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbgwQ-00034A-Ne for submit@debbugs.gnu.org; Fri, 14 Jun 2019 03:48:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbgwO-00033f-Ce for 36052@debbugs.gnu.org; Fri, 14 Jun 2019 03:48:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hbgw7-000575-Px; Fri, 14 Jun 2019 03:47:52 -0400 Original-Received: from [176.228.60.248] (port=4609 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hbgw0-0001qU-Pv; Fri, 14 Jun 2019 03:47:42 -0400 In-reply-to: <877e9p45p7.fsf@cassou.me> (message from Damien Cassou on Thu, 13 Jun 2019 21:59:32 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160547 Archived-At: > From: Damien Cassou > Cc: Noam Postavsky , Magnus Henoch , Ted Zlatanov , Iku Iwasa , Keith Amidon , galaunay , Nicolas Petton , Eli Zaretskii > Date: Thu, 13 Jun 2019 21:59:32 +0200 > > diff --git a/etc/NEWS b/etc/NEWS > index 95d7e08074..f5781fb7e5 100644 > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -1512,6 +1512,21 @@ the new variable 'buffer-auto-revert-by-notification' to a non-nil > value. Auto Revert mode can use this information to avoid polling the > buffer periodically when 'auto-revert-avoid-polling' is non-nil. > > +** auth-source-pass > + > +*** New customizable variable 'auth-source-pass-filename'. > +Allows setting the path to the password-store, defaults to > +~/.password-store. > + > +*** New customizable variable 'auth-source-pass-port-separator'. > +Specifies separator between host and port, defaults to colon ":". > + > +*** Minimize the number of decryptions during password lookup. > +This makes the package usable with physical tokens requiring touching > +a sensor for every decryption. > + > +*** 'auth-source-pass-get' is now autoloaded. These are all described in the patch for the manual, right? If so, the entries should be marked with "+++", see the beginning of NEWS for instructions about that. > +@itemize > +@item @code{"gnu.org.gpg"} : No username or port in the filename means that any username and port will match. > +@item @code{"gnu.org/rms.gpg"} : The username to match can be expressed as filename inside a directory whose name matches the host. This is useful if the store has passwords for several users on the same host. > +@item @code{"rms@@gnu.org.gpg"} : The username can also be expressed as a prefix, separated from the host with an at-sign (@code{@@}). > +@item @code{"gnu.org:22.gpg"} : The port (aka. service) to match can only be expressed after the host and separated with a colon (@code{:}). The separator can be changed through the @code{auth-source-pass-port-separator} variable. > +@item @code{"gnu.org:22/rms.gpg"} > +@item @code{"rms@@gnu.org:22.gpg"} > +@item @code{"a/b/gnu.org.gpg"} : Entries can be stored in arbitrary directories. > +@item @code{"a/b/gnu.org/rms.gpg"} > +@item @code{"a/b/rms@@gnu.org.gpg"} > +@item @code{"a/b/gnu.org:22.gpg"} > +@item @code{"a/b/gnu.org:22/rms.gpg"} > +@item @code{"a/b/rms@@gnu.org:22.gpg"} > +@end itemize Please make the text describing each @item start on a new line. Also, it sounds like you want @table here, not @itemize. And finally, quoting in @code is sub-optimal; would @samp (and losing the quotes) do the job? > +@defvar auth-source-pass-filename > +Set this variable to a string locating the password store on the > +disk. Defaults to @code{"~/.password-store"}. File names or their parts should have the @file markup, not @code. Thanks.