[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: url-auth-tests hang if authinfo is encrypted
From: |
Colin Baxter |
Subject: |
Re: url-auth-tests hang if authinfo is encrypted |
Date: |
Tue, 04 Apr 2017 21:03:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Dear Ted,
On Tue, Apr 04 2017, Ted Zlatanov wrote:
> On Mon, 03 Apr 2017 20:20:44 +0100 Colin Baxter <address@hidden> wrote:
>
> CB> My ~/.authinfo is encrypted to ~/.authinfo.gpg; consequently,
> CB> url-auth-tests hangs, waiting for a password that never comes. If I
> CB> decrypt the file to ~/.authinfo then the test succeeds.
>
> CB> Is there anyway the test could be made to prompt the user to enter the
> CB> password? Failing that then perhaps the test ought to fail cleanly when
> CB> ~/.authinfo.gpg is found.
>
> CB> Encrypting the ~/.authinfo is quite common, I believe.
>
> I think the user's personal setup shouldn't affect the tests.
>
> The solution can be either automatic (auth-source knows it's inside a
> test, or EPG doesn't try to decrypt in a test environment) or explicit
> (tests override `auth-sources' and/or EPG). For the automatic
> option, I can add the code to auth-source if anyone can suggest how to
> tell it's inside a test environment.
>
> Maybe others can think of other options?
>
Would it help if users like me were to move their encrypted authinfo
away from $HOME by using something like
(setq auth-sources
'((:source "~/some/other/path/to/.authinfo.gpg")))
in their ~/.emacs?
Perhaps I am being naive.
Best wishes, Colin.
Re: url-auth-tests hang if authinfo is encrypted, Ted Zlatanov, 2017/04/04
- Re: url-auth-tests hang if authinfo is encrypted, Andreas Schwab, 2017/04/04
- Re: url-auth-tests hang if authinfo is encrypted,
Colin Baxter <=
- Re: url-auth-tests hang if authinfo is encrypted, Colin Baxter, 2017/04/05
- Re: url-auth-tests hang if authinfo is encrypted, Ted Zlatanov, 2017/04/05
- Re: url-auth-tests hang if authinfo is encrypted, Jarno Malmari, 2017/04/06
- Re: url-auth-tests hang if authinfo is encrypted, Colin Baxter, 2017/04/07
- Re: url-auth-tests hang if authinfo is encrypted, Eli Zaretskii, 2017/04/07
- Re: url-auth-tests hang if authinfo is encrypted, Colin Baxter, 2017/04/07