From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "J.P." Newsgroups: gmane.emacs.erc.general,gmane.emacs.bugs Subject: Re: 29.1; ERC 5.5.0.29.1: Unnecessary .authinfo.gpg decryption causes connection failure to irc.libera.chat Date: Fri, 22 Dec 2023 20:41:35 -0800 Message-ID: <87zfy1pm2o.fsf@neverwas.me> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21746"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: bug-gnu-emacs@gnu.org, emacs-erc@gnu.org To: Jake Original-X-From: emacs-erc-bounces+sf-erc-help=m.gmane-mx.org@gnu.org Sat Dec 23 05:42:06 2023 Return-path: Envelope-to: sf-erc-help@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rGtpt-0005Rt-GC for sf-erc-help@m.gmane-mx.org; Sat, 23 Dec 2023 05:42:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGtpZ-0005xY-Ln; Fri, 22 Dec 2023 23:41:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGtpY-0005xI-IK for emacs-erc@gnu.org; Fri, 22 Dec 2023 23:41:44 -0500 Original-Received: from mail-108-mta114.mxroute.com ([136.175.108.114]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGtpX-0002lC-0V for emacs-erc@gnu.org; Fri, 22 Dec 2023 23:41:44 -0500 Original-Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta114.mxroute.com (ZoneMTA) with ESMTPSA id 18c94fa959f0003727.003 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 23 Dec 2023 04:41:39 +0000 X-Zone-Loop: b878e4435226c3dd809e99daba45e76db55d494978b7 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=neverwas.me ; s=x; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1qUaBif7gti+7xeNWexcdBpMLGv0xDZl+W0LGS1iVZk=; b=b0EJHuC4b+Vz40vZmllY71kD5p ZLiLrJPzeCj3P7m2/4a7q7T15vI4+Uzutg47tvsLfro3obT/MUj85QVh1ap+1X2ClhcCnDaz0AzUa iBqKO/wZte73v60xlI/OMuHxtVeZ5fkoenQXBNYrQJpm9byJw7lZ0IMrtMWra/TfkLxdaTjdMHPtm cO4ksmUNKETE1wIAvCnbbz0TLYq/TdlJSXdzzxOaG51G/c06nTRGPMSn3yjwzspZ5vN7Qcdv8k4C+ LvKT4JFPqvX9cOQPdEEI0PgG7HU9DTp26YP8JXPkIyYluAH0xsuw9K6kZS2+xd5rhrhIDJYbyRz+1 aX5hQTCw==; In-Reply-To: (Jake's message of "Sat, 23 Dec 2023 10:31:18 +1030") X-Authenticated-Id: masked@neverwas.me Received-SPF: pass client-ip=136.175.108.114; envelope-from=jp@neverwas.me; helo=mail-108-mta114.mxroute.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, WEIRD_PORT=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-erc@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General discussion about ERC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-erc-bounces+sf-erc-help=m.gmane-mx.org@gnu.org Original-Sender: emacs-erc-bounces+sf-erc-help=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.erc.general:2334 gmane.emacs.bugs:276698 Archived-At: Hi Jake, Jake writes: > Hello > > I encountered an issue with authinfo interfering with ERC: > When I attempt to connect to the irc.libera.chat server with a random > nickname and no password, if a ~/.authinfo.gpg file is present on my > system (or any .gpg file in the auth-sources variable), ERC attempts to > decrypt this file when connecting. When I don't decrypt it, the > connection fails. > > This occurs with emacs -Q. > > If I set auth-sources to nil, or change the name of the .gpg file to > something else not in auth-sources, I get the expected behavior; i.e., it connects to the server. > > Steps to reproduce: > 1. have an encrypted ~/.authinfo.gpg file (this will also be an element of > the variable auth-sources, which is the default) > 2. emacs -Q > 3. M-x erc-tls > interactively: RET on default values irc.libera.chat and 6697, then enter a unique nickname and do not > enter a password > 4. be prompted to decrypt ~/.authinfo.gpg I haven't tried very hard to reproduce this yet, but I can't seem to get Emacs to prompt me from emacs -Q. It just decrypts the file straight away if it has access to the key it was encrypted with and fails otherwise. So, I was wondering if this prompt is coming from somewhere external, such as a secrets manager or a TTY pinentry program, for example, Please enter the passphrase to unlock the OpenPGP secret key: "Your Name " 3071 RSA key, ID DEAD..BEEF created 2023-12-22 17:30 (main key ID ...). Passprhase: ____________________________ (although, from your description, it seems like you're using graphical Emacs). Also, is the "irc.libera.chat:6697" buffer completely blank after the failure? And is there anything relevant recorded in the "*Messages*" buffer? Perhaps something like: For information about GNU Emacs and the GNU system, type C-h C-a. Decrypting /root/.authinfo.gpg...done epa-file-insert-file-contents: Opening input file: Decryption failed, , No secret key I'm mainly trying to avoid having to replicate your setup in a VM. TIA, J.P.