[opensuse-buildservice] Setting up osc: keyring and kWallet
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, first of, if this is the wrong list I apologize, it seemed the most fitting... I just had some minutes and wanted to dive into openSUSE after a long long time. So I tried to setup osc on my machine, and configure it so I could play around with some packages. One thing I could not get to work is osc storing username/password in kWallet. I could get it to store it in python-keyring (~./local/share/python_keyring/keyring_pass.cfg). Is this possible at the moment? Or is one of the bugs from early last year (Feb. 2013) hitting again? On one of my python scripts using python-keyring I had to explicitly set kWallet as backend (see below). Do I need to do this with osc too? Where?
import keyring keyring.set_keyring(keyring.backends.kwallet.Keyring())
I am running osc from the openSUSE:/Tools repo on a Tumbleweed installation (osc-0.144.0-126.1.noarch). Regards, Johannes - -- Programming is like sex: if you make a mistake, you have to support it for the rest of your life. (unknown) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlMRjtMACgkQzi3gQ/xETbLyKACfTkIZsm7UkpQjLJ9CAd3SEo2X kNIAmwZxGa7MG8Zi7UtJDxqoL9nY5/b3 =n7zK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 2014-03-01 08:40:03 +0100, Johannes Kastl wrote: <SNIP>
One thing I could not get to work is osc storing username/password in kWallet. I could get it to store it in python-keyring (~./local/share/python_keyring/keyring_pass.cfg).
Is this possible at the moment? Or is one of the bugs from early last year (Feb. 2013) hitting again?
To which bug do you refer to?
On one of my python scripts using python-keyring I had to explicitly set kWallet as backend (see below). Do I need to do this with osc too? Where?
import keyring keyring.set_keyring(keyring.backends.kwallet.Keyring())
I never used it together with kwallet but you can explicitly specify the keyring via the keyring config file. Something like this should work: Create a ~/.local/share/python_keyring/keyringrc.cfg file with the following content: [backend] default-keyring=backend.KDEKWallet Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 02.03.2014 23:44 schrieb Marcus Hüwe:
On 2014-03-01 08:40:03 +0100, Johannes Kastl wrote:
Is this possible at the moment? Or is one of the bugs from early last year (Feb. 2013) hitting again?
To which bug do you refer to?
I found these: https://bugzilla.novell.com/show_bug.cgi?id=805855 https://bugzilla.novell.com/show_bug.cgi?id=801027
Create a ~/.local/share/python_keyring/keyringrc.cfg file with the following content:
[backend] default-keyring=backend.KDEKWallet
I tested this. Which did not work at all. username and password were asked and stored in ~/.local/share/python_keyring/keyring_pass.cfg I changed the line to
default-keyring = keyring.backends.kwallet.Keyring which at least brings a popup asking me to unlock my kwallet. But after that osc times out and errors with server returned an error: HTTP Error 401: basic auth failed
Can someone else confirm this? Regards, Johannes - -- It is a mistake to think you can solve any major problems just with potatoes. (Douglas Adams) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlMU4S8ACgkQzi3gQ/xETbK8pQCfTx3hUikGEZjGXqAbvjTCha2t mOEAnjeQm+43LVPgIW+GBm3AyYK1IqsJ =e1su -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Monday 03 March 2014 21:08:15 Johannes Kastl wrote:
I changed the line to
default-keyring = keyring.backends.kwallet.Keyring
which at least brings a popup asking me to unlock my kwallet. But after that osc times out and errors with
server returned an error: HTTP Error 401: basic auth failed
Can someone else confirm this?
You can manually add folder "Python" in kwallet. In passwords section add entry "<your nick>"@api@opensuse.org " with your password inside. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03.03.2014 21:16 Dmitry Roshchin wrote:
You can manually add folder "Python" in kwallet. In passwords section add entry "<your nick>"@api@opensuse.org " with your password inside.
I tried that, and now I get:
Server returned an error: HTTP Error 401: Authorization Required
Regards, Johannes - -- The one who doesn't know the answer is wiser than the one who knows the wrong answer. (unknown) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlMU5KIACgkQzi3gQ/xETbKtHgCfcbTaLp6Nn5Am5RXdSTX9ZSh8 wIEAn3fFk43yY/5eZZ3jVJtOIIEoBlpE =69Np -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
В письме от 3 марта 2014 21:22:59 пользователь Johannes Kastl написал:
On 03.03.2014 21:16 Dmitry Roshchin wrote:
You can manually add folder "Python" in kwallet. In passwords section add entry "<your nick>"@api@opensuse.org " with your password inside.
I tried that, and now I get:
Server returned an error: HTTP Error 401: Authorization Required
Oh, sorry "<your nick>@api.opensuse.org" Like this https://dl.dropboxusercontent.com/u/11245624/suse/python-kwallet.png -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03.03.2014 21:28 Дмитрий Рощин wrote:
Oh, sorry "<your nick>@api.opensuse.org"
Nope. Still "Authorization required". I deleted the api-lines from .oscrc, and was asked again. Then I was asked to open my kWallet. Then: Error. Regards, Johannes - -- 'Are you Death?' ... IT'S THE SCYTHE, ISN'T IT? PEOPLE ALWAYS NOTICE THE SCYTHE. (Terry Pratchett, The Fifth Elephant) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlMU50IACgkQzi3gQ/xETbIRgwCfXn5HMqVzZ0B6kHuuY8WsgDtE U/kAnA+/0fIWHzW3Ss9+HR2BeEg+l2c9 =9VJD -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Johannes Kastl <mail@ojkastl.de> writes:
On 03.03.2014 21:16 Dmitry Roshchin wrote:
You can manually add folder "Python" in kwallet. In passwords section add entry "<your nick>"@api@opensuse.org " with your password inside.
Note: no newline after the password, otherwise it will be part of it. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, I entered the password in kwallet, without a new line. I'll try to add it via python manually this evening... On 3. März 2014 22:46:30 MEZ, Andreas Schwab <schwab@linux-m68k.org> wrote:
Johannes Kastl <mail@ojkastl.de> writes:
On 03.03.2014 21:16 Dmitry Roshchin wrote:
You can manually add folder "Python" in kwallet. In passwords section add entry "<your nick>"@api@opensuse.org " with your password inside.
Note: no newline after the password, otherwise it will be part of it.
Andreas.
Grüße, Johannes -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry for the previous full-quote, my smartphone messed up... On 04.03.2014 12:53 Johannes Kastl (Smartphone) wrote:
I entered the password in kwallet, without a new line. I'll try to add it via python manually this evening...
I can read out the key with python with
import keyring keyring.set_keyring(keyring.backends.kwallet.Keyring()) print(keyring.get_password("api.opensuse.org", "xyz"))
And I see the correct password, without newlines. Regards, Johannes - -- Love ist like Pi: Natural, irrational and very important. (unknown) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlMWIf8ACgkQzi3gQ/xETbLCgwCdEUS8WfCigJ5lhj1hLKf3+MXy WV4AniQYhBeXMsAhW/sYR7QYi/ambkuE =cgiD -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
I've never been able to get python-keyring >= 3.x to work with kWallet, whereas python-keyring-1.6.1 is working fine. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, On 6. März 2014 20:02:38 MEZ, Andreas Schwab <schwab@linux-m68k.org> wrote:
I've never been able to get python-keyring >= 3.x to work with kWallet, whereas python-keyring-1.6.1 is working fine. I was able to use it with offlineimap, so basically it works. On the same machine that has osc troubles...
-- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Johannes Kastl <mail@ojkastl.de> writes:
Hi,
On 6. März 2014 20:02:38 MEZ, Andreas Schwab <schwab@linux-m68k.org> wrote:
I've never been able to get python-keyring >= 3.x to work with kWallet, whereas python-keyring-1.6.1 is working fine. I was able to use it with offlineimap, so basically it works. On the same machine that has osc troubles...
Now we only need to find out what offlineimap does differently... Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (6)
-
Andreas Schwab
-
Dmitry Roshchin
-
Johannes Kastl
-
Johannes Kastl (Smartphone)
-
Marcus Hüwe
-
Дмитрий Рощин