Re: [Pysvn-discuss] Pysvn reset my svn.simple auth settings
pysvn is the pythonic interface to subversion
Brought to you by:
barry-scott
|
From: 孙 明琦 <cra...@li...> - 2022-10-11 08:02:52
|
I am using Debian 10, python2.7.15, svn version 1.10.4 (r1850624) and pysvn.version=(1, 9, 9, 0) You reminded me that I turned of `store-plaintext-passwords` in `~/.subversion/servers` config. After I turned that back on, pysvn can store plaintext passwords in `svn.simple` dir ``` $ cat ~/.subversion/auth/svn.simple/f127ed5a5027eb2fe2a8c242cdf24487 K 8 passtype V 6 simple K 8 password V 12 *************** K 15 svn:realmstring V 67 <https://*****************:443> Authenticate your CORP account. K 8 username V 9 ************** END ``` Now I don’t get password prompt on `svn up`, but I still wonder if pysvn could use password store that I already configured and not store plaintext passwords. Can it? From: Barry<mailto:ba...@ba...> Sent: 2022年10月11日 15:51 To: cra...@li...<mailto:cra...@li...> Cc: pys...@li...<mailto:pys...@li...> Subject: Re: [Pysvn-discuss] Pysvn reset my svn.simple auth settings On 10 Oct 2022, at 21:16, cra...@li... wrote: Hi all, recently I configured my svn to use gnupg password store introduced by this link https://www.dhiller.de/2018/10/04/svn-gpg-agent.html<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dhiller.de%2F2018%2F10%2F04%2Fsvn-gpg-agent.html&data=05%7C01%7C%7C7fe7e4f94ce74ae6a15e08daab5d6f50%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638010715037642368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PU9tmG1MDIhn2bxEHu6WO92lsq1C57niFGipPbMirdg%3D&reserved=0> It worked correctly, after I `svn up my_repo`, I got correct info stored in the corresponding `svn.simple` directory: ```shell $ cat ~/.subversion/auth/svn.simple/f127ed5a5027eb2fe2a8c242cdf24487 K 8 passtype V 9 gpg-agent K 15 svn:realmstring V 67 https://*****************:443 Authenticate your CORP account. K 8 username V 9 ************** END ``` But if I use pysvn to do something on the repo, I got the `svn.simple` directory reset by pysvn ```python import pysvn client = pysvn.Client() client.callback_get_login = lambda *_: (True, ‘my_username’, ‘my_password’, True) client.update(‘my_repo’) ``` Then the `svn.simple` is reset to something like below ```shell $ cat ~/.subversion/auth/svn.simple/f127ed5a5027eb2fe2a8c242cdf24487 K 15 svn:realmstring V 67 https://*****************:443 Authenticate your CORP account. K 8 username V 9 ************** END ``` No plain text password is stored, nor password store is used, and if I `svn up my_repo`, I got prompted to input password again, which is annoying Even I configure svn to not use password store, and just store plain text password, pysvn will also reset it to the content above. If I do not set `callback_get_login`, I got `client.update` failed with authentication failure exception. So how should I configure pysvn to use password store, or at least not let it mess up the `svn.simple` dir? Subversion removed the ability to store plain text passwords. I wonder if you are hitting this issue. What os, python, svn and pysvn versions are you using? Barry Sincerely This is my first-time sending to a mailing list, if I do anything wrong, you are welcome to point it out. _______________________________________________ Pysvn-discuss mailing list Pys...@li... https://lists.sourceforge.net/lists/listinfo/pysvn-discuss |