From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: url-auth-tests hang if authinfo is encrypted Date: Tue, 04 Apr 2017 21:03:12 +0100 Message-ID: <87bmscvt33.fsf@yandex.com> References: <877f311enn.fsf@yandex.com> <87k2702pi6.fsf@lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491336242 9487 195.159.176.226 (4 Apr 2017 20:04:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2017 20:04:02 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 04 22:03:55 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvUgE-0001mR-81 for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2017 22:03:54 +0200 Original-Received: from localhost ([::1]:37403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvUgK-0006Zr-5m for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2017 16:04:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvUfk-0006ZQ-CT for emacs-devel@gnu.org; Tue, 04 Apr 2017 16:03:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvUfg-0000zu-F8 for emacs-devel@gnu.org; Tue, 04 Apr 2017 16:03:24 -0400 Original-Received: from forward4o.cmail.yandex.net ([37.9.109.248]:51387) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cvUfg-0000zQ-4N for emacs-devel@gnu.org; Tue, 04 Apr 2017 16:03:20 -0400 Original-Received: from smtp3j.mail.yandex.net (smtp3j.mail.yandex.net [IPv6:2a02:6b8:0:801:1::12]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id C20DF21065 for ; Tue, 4 Apr 2017 23:03:16 +0300 (MSK) Original-Received: from smtp3j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3j.mail.yandex.net (Yandex) with ESMTP id A490E6240588 for ; Tue, 4 Apr 2017 23:03:16 +0300 (MSK) Original-Received: by smtp3j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id H1hI2lQ0NC-3ESqnRj5; Tue, 04 Apr 2017 23:03:15 +0300 (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1491336195; bh=EHBjpXRGSoqsaQuTOw3Ua8Oa5JDf6zSgha4OkzG1E3c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID; b=wP1EG9Io6imBserfHRE1CqSLTl3vApvMufAwZAmQcVmiiMzXmtsJkb0Ctm9GFyngA 5JJhkPkPKJJcDUHrKWHg4HKFRnNlz92w2llq7IrWt6ll1GSwdKD/+karq+o5YrWHUN NMBYIAGVAL7bPK4EPqZ35bn2oUFp1YoTCYRK08u8= Authentication-Results: smtp3j.mail.yandex.net; dkim=pass header.i=@yandex.com X-Yandex-Suid-Status: 1 0 In-Reply-To: <87k2702pi6.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 04 Apr 2017 10:53:21 -0400") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAAAFz UkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAxQ TFRF8d8Gwx4p07Wi////YneHdQAAAAFiS0dEAxEMTPIAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAFZ SURBVCjPZZLBasJAEIYnEgveVoiheuyhoE+RQh/AihPMnnrohsan8NAHsOAG9CRiSrNP2X8mpj10 TvPxz+7M/rNEiOFmcqU+tnV56POo+gpVdoM7b729wThlxOFZIS4UTKdIzm+Jgpkr3Es+Yi1j9wpI g+Z1vQdU7KzPG0jo6Ji3YQuwRAPPHBDMRUZDz1ag4TzDLKhSsDsauA5aUR4bPQIo9jTlTgls9zTz UC5a9k5zXtvw+QDgKxXSJhlLI4dp8hAoFtiQA3xnsTQqUIYBnswCUOICgCFRDpTKmTgROFPkpWwV gs+XFBVQLiPAEU/onoOrV4ZM3cOLoWTaTy2eFv17HDyFIVZyXpPCLIQrDFHfRPEypyq5QgWYiM+t WA9YcBf5WZbYGZ+XYnxUeoVWt1p52ZDtlj9ueO24Xzc6Hbm9/YNTqNNT/0VSl3y45e/niQzt/iCj f/EDBae52Zd5lNIAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTctMDItMjFUMTU6MjI6MTgrMDA6MDAy vBNIAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE3LTAyLTIxVDE1OjIyOjE4KzAwOjAwQ+Gr9AAAABF0 RVh0anBlZzpjb2xvcnNwYWNlADIsdVWfAAAAIHRFWHRqcGVnOnNhbXBsaW5nLWZhY3RvcgAxeDEs MXgxLDF4MemV/HAAAAAASUVORK5CYII= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 37.9.109.248 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:213655 Archived-At: Dear Ted, On Tue, Apr 04 2017, Ted Zlatanov wrote: > On Mon, 03 Apr 2017 20:20:44 +0100 Colin Baxter wrote: > > CB> My ~/.authinfo is encrypted to ~/.authinfo.gpg; consequently, > CB> url-auth-tests hangs, waiting for a password that never comes. If I > CB> decrypt the file to ~/.authinfo then the test succeeds. > > CB> Is there anyway the test could be made to prompt the user to enter the > CB> password? Failing that then perhaps the test ought to fail cleanly when > CB> ~/.authinfo.gpg is found. > > CB> Encrypting the ~/.authinfo is quite common, I believe. > > I think the user's personal setup shouldn't affect the tests. > > The solution can be either automatic (auth-source knows it's inside a > test, or EPG doesn't try to decrypt in a test environment) or explicit > (tests override `auth-sources' and/or EPG). For the automatic > option, I can add the code to auth-source if anyone can suggest how to > tell it's inside a test environment. > > Maybe others can think of other options? > Would it help if users like me were to move their encrypted authinfo away from $HOME by using something like (setq auth-sources '((:source "~/some/other/path/to/.authinfo.gpg"))) in their ~/.emacs? Perhaps I am being naive. Best wishes, Colin.