From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 11 15:24:06 2017 Received: (at submit) by debbugs.gnu.org; 11 Dec 2017 20:24:06 +0000 Received: from localhost ([127.0.0.1]:57268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOUcP-00054p-NR for submit@debbugs.gnu.org; Mon, 11 Dec 2017 15:24:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOUcN-00053d-JF for submit@debbugs.gnu.org; Mon, 11 Dec 2017 15:24:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOUcH-0001RA-ER for submit@debbugs.gnu.org; Mon, 11 Dec 2017 15:23:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48276) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eOUcH-0001QT-BH for submit@debbugs.gnu.org; Mon, 11 Dec 2017 15:23:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOUcG-0003uQ-1N for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 15:23:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOUcE-0001Ks-VF for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 15:23:56 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOUcE-0001Kb-R8; Mon, 11 Dec 2017 15:23:54 -0500 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:50841) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1eOUcE-0003Hi-Ic; Mon, 11 Dec 2017 15:23:54 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 3C33320E5F; Mon, 11 Dec 2017 15:23:54 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 11 Dec 2017 15:23:54 -0500 X-ME-Sender: Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id CC2937FACF; Mon, 11 Dec 2017 15:23:53 -0500 (EST) From: "John Wiegley" To: bug-gnu-emacs@gnu.org Subject: 26.0.90; auth-source-pass decrypts entries 3 times on query Date: Mon, 11 Dec 2017 12:23:48 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (darwin) Mail-Followup-To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I've enabled auth-source-pass on my system as follows: (use-package auth-source-pass :config (auth-source-pass-enable) (defun auth-source-pass--read-entry (entry) "Return a string with the file content of ENTRY." (with-temp-buffer (insert-file-contents (expand-file-name (format "%s.gpg" entry) (getenv "PASSWORD_STORE_DIR"))) (buffer-substring-no-properties (point-min) (point-max)))) (defun auth-source-pass-entries () "Return a list of all password store entries." (let ((store-dir (getenv "PASSWORD_STORE_DIR"))) (mapcar (lambda (file) (file-name-sans-extension (file-relative-name file store-dir))) (directory-files-recursively store-dir "\.gpg$"))))) This works around the other bug I logged today. I have one file in my store: ~/doc/.passwords/reddit.com It has a "login: jwiegley" field. I then run: (auth-source-search :host "reddit.com" :user "jwiegley") After doing so, I can see it Decrypting the reddit.com.gpg file three times before it shows me the data, even with `auth-source-do-cache' set to t. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 14:19:10 2019 Received: (at 29665) by debbugs.gnu.org; 14 Jul 2019 18:19:10 +0000 Received: from localhost ([127.0.0.1]:45925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmj5Z-00011M-MQ for submit@debbugs.gnu.org; Sun, 14 Jul 2019 14:19:09 -0400 Received: from quimby.gnus.org ([80.91.231.51]:56440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmj5Y-00011B-6c for 29665@debbugs.gnu.org; Sun, 14 Jul 2019 14:19:08 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmj5U-0004l2-Bx; Sun, 14 Jul 2019 20:19:06 +0200 From: Lars Ingebrigtsen To: 29665@debbugs.gnu.org Subject: Re: bug#29665: 26.0.90; auth-source-pass decrypts entries 3 times on query References: Date: Sun, 14 Jul 2019 20:19:04 +0200 In-Reply-To: (John Wiegley's message of "Mon, 11 Dec 2017 12:23:48 -0800") Message-ID: <87pnmcwkbr.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "John Wiegley" writes: > I've enabled auth-source-pass on my system as follows: > > (use-package auth-source-pass > :config > (auth-source-pass-enable) > > (defun auth-source-pass--read-entry (entry) > "Return a string with [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29665 Cc: John Wiegley X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "John Wiegley" writes: > I've enabled auth-source-pass on my system as follows: > > (use-package auth-source-pass > :config > (auth-source-pass-enable) > > (defun auth-source-pass--read-entry (entry) > "Return a string with the file content of ENTRY." > (with-temp-buffer > (insert-file-contents (expand-file-name > (format "%s.gpg" entry) > (getenv "PASSWORD_STORE_DIR"))) > (buffer-substring-no-properties (point-min) (point-max)))) > > (defun auth-source-pass-entries () > "Return a list of all password store entries." > (let ((store-dir (getenv "PASSWORD_STORE_DIR"))) > (mapcar > (lambda (file) (file-name-sans-extension (file-relative-name file store-dir))) > (directory-files-recursively store-dir "\.gpg$"))))) > > This works around the other bug I logged today. I have one file in my store: > > ~/doc/.passwords/reddit.com > > It has a "login: jwiegley" field. I then run: > > (auth-source-search :host "reddit.com" :user "jwiegley") > > After doing so, I can see it Decrypting the reddit.com.gpg file three times > before it shows me the data, even with `auth-source-do-cache' set to t. The test case is a bit complicated, but I instrumented the normal ~/.authinfo reading, and it seemed to me that it would only read the file once when I do the auth-source-search. Does this work better for you too now? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 23:12:58 2020 Received: (at 29665) by debbugs.gnu.org; 12 Aug 2020 03:12:58 +0000 Received: from localhost ([127.0.0.1]:42413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5hCE-00078C-65 for submit@debbugs.gnu.org; Tue, 11 Aug 2020 23:12:58 -0400 Received: from mail-yb1-f173.google.com ([209.85.219.173]:42615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5hCA-00077u-N0 for 29665@debbugs.gnu.org; Tue, 11 Aug 2020 23:12:56 -0400 Received: by mail-yb1-f173.google.com with SMTP id a34so580872ybj.9 for <29665@debbugs.gnu.org>; Tue, 11 Aug 2020 20:12:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=Lp2MZV1YwMyRw9P2GbHexId3MXKe4/Oa3mccjjBAKSc=; b=BJPgvYW0J4axvOHArfF30ii91AFmKS8cyDVfzbX0Grt1ZnF+FexrQSHrby2NbGSJDD hKjsYrmEe0ev7AsPVfCYxHO10G9JiIWtKiR49OrveeLI0rycRFxidbSolXzqol1tVqqv Dea11T6yVbDudoP1GgjSPjfiCQzWJqqDhJ2i2AENMnv27c7RjJ8YJHWi66yYRoBvwiUo TTonWCMee1P5lok5h4Wut5Zr0wPdJlBn+rAh9eaq+SL7gwEWZ+fiDijsB11MFnaDb/m2 WHhUtYacA4BX30qkw/KOtz5WASF6iCsEfTuBDhsw4dezwk3e4F3ymQRK35mytm42/5Fr YB2Q== X-Gm-Message-State: AOAM531H0nqphFaZCh06BmZ/kcVOvykA7cJ4RqZ9jdx1X2w5WH9UlLjT QJFFdVfwDkXzR726N3XQwBQEGf4NH6eTZ+gP0oo= X-Google-Smtp-Source: ABdhPJxaSh6Pt+BhMePlq0Ti7n5CZHCQMy3Wp6rd9cpsH8znq/wgzdfV5Ru5xuczcubPt7Y++kZf9qIsrXaxorvay7k= X-Received: by 2002:a25:b88b:: with SMTP id w11mr55123234ybj.129.1597201969328; Tue, 11 Aug 2020 20:12:49 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 11 Aug 2020 20:12:48 -0700 From: Stefan Kangas In-Reply-To: <87pnmcwkbr.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sun, 14 Jul 2019 20:19:04 +0200") References: <87pnmcwkbr.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 11 Aug 2020 20:12:48 -0700 Message-ID: Subject: Re: bug#29665: 26.0.90; auth-source-pass decrypts entries 3 times on query To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29665 Cc: John Wiegley , 29665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > "John Wiegley" writes: > >> I've enabled auth-source-pass on my system as follows: >> >> (use-package auth-source-pass >> :config >> (auth-source-pass-enable) >> >> (defun auth-source-pass--read-entry (entry) >> "Return a string with the file content of ENTRY." >> (with-temp-buffer >> (insert-file-contents (expand-file-name >> (format "%s.gpg" entry) >> (getenv "PASSWORD_STORE_DIR"))) >> (buffer-substring-no-properties (point-min) (point-max)))) >> >> (defun auth-source-pass-entries () >> "Return a list of all password store entries." >> (let ((store-dir (getenv "PASSWORD_STORE_DIR"))) >> (mapcar >> (lambda (file) (file-name-sans-extension (file-relative-name file store-dir))) >> (directory-files-recursively store-dir "\.gpg$"))))) >> >> This works around the other bug I logged today. I have one file in my store: >> >> ~/doc/.passwords/reddit.com >> >> It has a "login: jwiegley" field. I then run: >> >> (auth-source-search :host "reddit.com" :user "jwiegley") >> >> After doing so, I can see it Decrypting the reddit.com.gpg file three times >> before it shows me the data, even with `auth-source-do-cache' set to t. > > The test case is a bit complicated, but I instrumented the normal > ~/.authinfo reading, and it seemed to me that it would only read the > file once when I do the auth-source-search. > > Does this work better for you too now? No reply here within 12 months. Yesterday, I accidentally replied individually to Lars only, asking if there is more to do here or if this should be closed. He replied saying that it should probably be closed. Does anyone else have an opinion here? Otherwise, I'll just go ahead and close this. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 09:26:56 2020 Received: (at 29665-done) by debbugs.gnu.org; 18 Aug 2020 13:26:56 +0000 Received: from localhost ([127.0.0.1]:34502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k81dg-00028N-6W for submit@debbugs.gnu.org; Tue, 18 Aug 2020 09:26:56 -0400 Received: from mail-yb1-f172.google.com ([209.85.219.172]:33137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k81de-00028A-HN for 29665-done@debbugs.gnu.org; Tue, 18 Aug 2020 09:26:55 -0400 Received: by mail-yb1-f172.google.com with SMTP id p191so11389813ybg.0 for <29665-done@debbugs.gnu.org>; Tue, 18 Aug 2020 06:26:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=+zmVyDplhOJPB7HBa69M4jczjT8ywaNVOzqn69igG5U=; b=C1tW+wCl21w2wHkRWVMMWi4SHMt7sVjo0jbfsuEQrzISKa9strgjHQ69h2G4IhXHyV zNU3vfGzA8nZn4nbWXesLLce68WFyb20UQAWS/jmjYWmcz/uhXx993zQNKp2kkkibTKG D9lWWMFI50lH1sVwo9ENVRu704ZHun+gDlGsmLcJlXNdHzKPUzWfDcWrItrn7RAC96lo 4danRFqJ5QaWHSB5GByFH33dgft7DocsUa7C9tl49TACf1HBqQmtUC2DML5N4hAcPT5a rot7yl3no8jqR1+J3BiewiozylNtrZ3hst6Srg0ej5ZKloAaWbCD85VOqbwtkuJJcc1x CGHA== X-Gm-Message-State: AOAM533MRj1ZKwDORn262Mv8BfWNsNhc04BKSimO6oOwd/O7gOFWM9H2 Uc1hAzyyaXsUNwSgHyIrMJQNQ9ibFL7x1LUdwXs= X-Google-Smtp-Source: ABdhPJw9jukOiTQdxhhwDFyJIajrQbhVyQ6SoldtMEFp4WQ6uEzZaBA2GlS1ogv9FfIHH7MC1+q0SEROV3Jf99tyKeI= X-Received: by 2002:a25:4609:: with SMTP id t9mr26147737yba.231.1597757209137; Tue, 18 Aug 2020 06:26:49 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 18 Aug 2020 13:26:48 +0000 From: Stefan Kangas In-Reply-To: (Stefan Kangas's message of "Tue, 11 Aug 2020 20:12:48 -0700") References: <87pnmcwkbr.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 18 Aug 2020 13:26:48 +0000 Message-ID: Subject: Re: bug#29665: 26.0.90; auth-source-pass decrypts entries 3 times on query To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29665-done Cc: 29665-done@debbugs.gnu.org, John Wiegley X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Stefan Kangas writes: > No reply here within 12 months. > > Yesterday, I accidentally replied individually to Lars only, asking if > there is more to do here or if this should be closed. He replied saying > that it should probably be closed. > > Does anyone else have an opinion here? Otherwise, I'll just go ahead > and close this. No further reply within a week, so I'm closing this now. Best regards, Stefan Kangas From unknown Tue Aug 19 21:02:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Sep 2020 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator