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#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly Date: Wed, 02 Aug 2023 06:22:51 -0700 Message-ID: <87v8dx7f4k.fsf__22003.4487474308$1690982655$gmane$org@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="9100"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64977@debbugs.gnu.org, emacs-erc@gnu.org To: LdBeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 02 15:24:09 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 1qRBpg-0002CA-TV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Aug 2023 15:24:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRBpc-0001up-UR; Wed, 02 Aug 2023 09:24:04 -0400 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 1qRBpa-0001uV-RC for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 09:24:02 -0400 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 1qRBpa-0008QK-Iv for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 09:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRBpa-0005aY-Ek for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 09:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "J.P." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Aug 2023 13:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64977 X-GNU-PR-Package: emacs Original-Received: via spool by 64977-submit@debbugs.gnu.org id=B64977.169098258421180 (code B ref 64977); Wed, 02 Aug 2023 13:24:02 +0000 Original-Received: (at 64977) by debbugs.gnu.org; 2 Aug 2023 13:23:04 +0000 Original-Received: from localhost ([127.0.0.1]:49210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRBod-0005VV-NO for submit@debbugs.gnu.org; Wed, 02 Aug 2023 09:23:04 -0400 Original-Received: from mail-108-mta185.mxroute.com ([136.175.108.185]:38801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRBoZ-0005UF-B4 for 64977@debbugs.gnu.org; Wed, 02 Aug 2023 09:23:02 -0400 Original-Received: from mail-111-mta2.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta185.mxroute.com (ZoneMTA) with ESMTPSA id 189b66a725200023b6.001 for <64977@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 02 Aug 2023 13:22:56 +0000 X-Zone-Loop: b82d317cf4de7c435c2b2a4e4423047d4026c3b02891 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=4eKsq62Vsud7YrHzdO66bA0rdCdnNvmWhqbPrjaXqVw=; b=P0HioET9ivF6+NWugeDO8KMUZv GtgksgsJ4HwzgvW48tN1k88WGnMYz0vmCbBSeExIDln72S4GSqGwWc0VpeAgcWXs53zbrkR2jta4I Gjl538fi8U5rUEbnfO2+xRIkekRDXskcpvXtILwaxetoL/bVCzt3Zp9zi6IbBtPoFbFT3n381hhoF IpWnMhTaQqBtpWom49sFVC7hmAL6fIz0ihCblvGWlIGn6JaLK3zBHN8BTS6mBhirskB78mHkGNWEr pOlA1vbcN89tWgcjDceVzvtbYIhlf1PjSlG3thAbGhm+3rtXLS5HrZvdv/ZDoe+EJYodL9rj7V8Ag X0C5fjeQ==; In-Reply-To: (LdBeth's message of "Mon, 31 Jul 2023 10:46:49 -0500") 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:266506 Archived-At: Hi LdBeth, LdBeth writes: > Right after switched from 28.2, my config that uses `auth-source.el' > to retrieve IRC password from macOS keychain stopped working. A few comments to the extent this concerns ERC. (Feel free to ignore.) In case you haven't noticed, ERC got pickier in 5.5 regarding the auth-source back ends it supports. Quoting from "(erc) auth-source": See "(auth)Top" for general info on setting up various backends, but keep in mind that some of these may not be compatible. Those currently supported are netrc, plstore, json, secrets, and pass. The recommended move for folks in your situation is to specify your own query function. See "(erc) auth-source functions". As for changing `auth-source-macos-keychain-search-items', that's above my pay grade, but offering up a patch may be your best bet. And if by chance you're keen on seeing ERC adopt macos-keychain as an official back end, additional requirements likely apply. I say that because the back ends comprising our current selection all provide a common set of capabilities, namely, those needed to adapt IRC semantics to a generalized secrets store. The auth-source side is somewhat spelled out in the doc string for `auth-source-search', but ERC derives its idea of the interface mostly from the behavior of the reference back end, netrc. If interested, see test/lisp/erc/erc-services-tests.el and the latter half of test/lisp/auth-source-pass-tests.el for all the particulars. Thanks, J.P. P.S. If replying to this, please Cc. emacs-erc@gnu.org.