From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#30246: 25.2.50; auth-source does not support creation or deletion with secrets provider Date: Tue, 11 Sep 2018 12:26:01 +0200 Message-ID: <87d0tkjpom.fsf@gmx.de> References: <87y3kmdz93.fsf@gmx.de> <87efjjns09.fsf@gmx.de> <87muswgw3d.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536661509 16727 195.159.176.226 (11 Sep 2018 10:25:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2018 10:25:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Allen Li , 30246@debbugs.gnu.org To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 12:25:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fzfqy-0004Gq-AJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2018 12:25:04 +0200 Original-Received: from localhost ([::1]:56619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzft4-000766-Nk for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2018 06:27:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzfsx-00075i-T5 for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2018 06:27:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzfss-0001WY-Vy for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2018 06:27:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60185) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzfss-0001W9-Qp for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2018 06:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fzfss-00033q-KG for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2018 06:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Sep 2018 10:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30246 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 30246-submit@debbugs.gnu.org id=B30246.153666157311692 (code B ref 30246); Tue, 11 Sep 2018 10:27:01 +0000 Original-Received: (at 30246) by debbugs.gnu.org; 11 Sep 2018 10:26:13 +0000 Original-Received: from localhost ([127.0.0.1]:36207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzfs4-00032W-Sv for submit@debbugs.gnu.org; Tue, 11 Sep 2018 06:26:13 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:54603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzfs2-00032I-Mv for 30246@debbugs.gnu.org; Tue, 11 Sep 2018 06:26:11 -0400 Original-Received: from detlef.gmx.de ([212.91.242.176]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MRoRF-1gS5q61vy5-00T0Fu; Tue, 11 Sep 2018 12:26:03 +0200 In-Reply-To: (Allen Li's message of "Sat, 8 Sep 2018 16:51:19 -0700") X-Provags-ID: V03:K1:XmBFvlvmBPpEfy1YhMGl1yjJx6k6IePflX27PSkUJn1y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man-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: 208.118.235.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:150214 Archived-At: Allen Li writes: Hi Allen, >> Could you test it by any chance in Emacs 27? If not, I'll close the >> bug. You could still report later if it doesn't work as expected. > > It looks like secret creation works now, however I can't seem to > retrieve the secret. I can file a separate bug for that if you want. Yes, please do. Because: > (auth-source-search :host "example.com" :user "bob" :secret "password" > :create t) > > After calling the returned save function, I can confirm that the > secret is created: > > $ secret-tool search --all --unlock host example.com user bob > [/org/freedesktop/secrets/collection/login/484] > label = bob@example.com > secret = password > created = 2018-09-08 23:35:47 > modified = 2018-09-08 23:35:47 > schema = org.freedesktop.Secret.Generic > attribute.host = example.com > attribute.user = bob > > However I cannot seem to retrieve it using auth-source: > > (auth-source-search :host "example.com" :user "bob") > nil I could reproduce it locally. And I could reproduce it also with another backend, "~/.authinfo". However, if I start a new Emacs session, (auth-source-search :host "example.com" :user "bob") returns a valid result. Don't know whether this is a bug or a feature; I let it to you to decide how to handle. The original bug in this report ("auth-source does not support creation with secrets provider") seems to be solved, so I'd like to close this. > Also, deletion still isn't supported: > > (auth-source-delete :host "example.com" :user "bob") > (cl-assertion-failed ((not delete) "The Secrets API auth-source > backend doesn't suppor...")) Yes. But deletion is not supported by any auth-source backend. So I would prefer if we handle this in another bug report, if the functionality is missing for you. To be honest, I'm undecided whether deletion makes sense in auth-source. Best regards, Michael.