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.bugs Subject: bug#67937: 30.0.50; auth-source-pass relies on epa-file being enabled Date: Fri, 22 Dec 2023 12:49:44 -0800 Message-ID: <875y0qrmhj.fsf@neverwas.me> References: <8734vwq06i.fsf@aarsen.me> <83frzwhgre.fsf@gnu.org> <87jzp8of97.fsf@aarsen.me> <83bkakhe8s.fsf@gnu.org> <87msu4myau.fsf@aarsen.me> <83y1dnga7u.fsf@gnu.org> <87sf3vlqj1.fsf@aarsen.me> <871qbf4ocp.fsf@neverwas.me> <871qbflg53.fsf@aarsen.me> <87h6kbxgzl.fsf@neverwas.me> <87jzp6is0s.fsf@aarsen.me> <87ttoas466.fsf@neverwas.me> <878r5mm3el.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3490"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Damien Cassou , Eli Zaretskii , 67937@debbugs.gnu.org, Arsen =?UTF-8?Q?Arsenovi=C4=87?= To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 22 21:50:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rGmTO-0000Zd-IL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Dec 2023 21:50:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGmT2-0004lV-Bd; Fri, 22 Dec 2023 15:50:00 -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 1rGmT0-0004ji-5f for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 15:49:58 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGmSz-0007vt-Ts for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 15:49:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGmT4-0000JU-Bs for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 15:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "J.P." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Dec 2023 20:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67937 X-GNU-PR-Package: emacs Original-Received: via spool by 67937-submit@debbugs.gnu.org id=B67937.17032781991187 (code B ref 67937); Fri, 22 Dec 2023 20:50:02 +0000 Original-Received: (at 67937) by debbugs.gnu.org; 22 Dec 2023 20:49:59 +0000 Original-Received: from localhost ([127.0.0.1]:47937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGmT0-0000J5-RL for submit@debbugs.gnu.org; Fri, 22 Dec 2023 15:49:59 -0500 Original-Received: from mail-108-mta135.mxroute.com ([136.175.108.135]:45595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGmSw-0000Iv-GR for 67937@debbugs.gnu.org; Fri, 22 Dec 2023 15:49:57 -0500 Original-Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta135.mxroute.com (ZoneMTA) with ESMTPSA id 18c934a98ee0003727.003 for <67937@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 22 Dec 2023 20:49:48 +0000 X-Zone-Loop: fbbc99904a2a3d0bf5dfc48ffa2e82c9b2dca9a81815 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=O+cs24a0JnMXAKdfKJ4OuU5woy2hNXjMdjH708Dejc4=; b=LJLo7tWiW8Z3sZkdf//G2uRavE h28e5SfMsfSh9LNLTw8irgBu4Wt4kWt06yvqWxF0zzbuvcTFnM9hacRvWIEvqwYE6Zkv1r08/Ihm0 az6WMiqc6GCt/wfbD3tz1eULdXnzM1D2nSGItV+VHpE9OegiE7EwmpMA1eM7dQvoq8+HIa163FOEP NQ5aariH2ZP5BH8k34+k38e8IISuWt2bvMRySKrcsIrMjf+GMrpq/3ul4QHiHaqQ7NzGV4eucl9LP P3sSxWnjLjSzT+Ms4oxBU0NDxHaKpJzbynSWr4iZGgcqin1XJyAcP1z1FDCO90SQyMHQbx5HPt1vh KcUtKvuA==; In-Reply-To: <878r5mm3el.fsf@gmx.de> (Michael Albinus's message of "Fri, 22 Dec 2023 20:40:50 +0100") X-Authenticated-Id: masked@neverwas.me X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276691 Archived-At: Hi Michael, Michael Albinus writes: > "J.P." writes: > >> If those Tramp addresses don't continue to work after your suggested >> changes, we should probably ask Michael Albinus whether their working >> currently is just an accident or something intentional and supported. > > I don't remember any special effort making auth-source-pass Tramp-affin, > but I might misremember. However, I wouldn't call it "accident", but > "Emacs design". If accessing auth-source-pass-filename uses the well > known primitive functions (insert-file-contents, expand-file-name > alike), there shouldn't be a problem of keeping this compatibility with > Tramp. Ah, right. So deliberate by proxy (or virtue) of Emacs design, then. The issue in this bug is that a default member of `file-name-handler-alist', namely, ("\\.gpg\\(~\\|..." . epa-file-handler) which is actually the value of the variable `epa-file-handler' added by the file epa-hook, disappears mysteriously due to "reasons" TBD. This breaks `auth-source-pass' because it relies on `insert-file-contents', which calls `find-file-name-handler', to decrypt passwords. Arsen believes this dependency a sign of unnecessary brittleness and therefore a bug. His proposed solution is to use `insert-file-contents-literally', which epa-hook doesn't subscribe to, as it only does (put 'epa-file-handler 'operations '(write-region insert-file-contents)) while `i-f-c-literally' does (let ((inhibit-file-name-operation 'insert-file-contents)) ...) My initial concern was other (non-Tramp) file handlers possibly missing out by our routing around `insert-file-contents', but without a concrete example, perhaps that's unwarranted FUD. Anyway, thanks for weighing in. J.P.