Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Branko Čibej
On 06.04.2012 00:38, C. Michael Pilato wrote: I've been also frustrated when considering the situation that occurs when a user changes his/her master password, forcing a re-encryption of all cached credentials using the new password. You could do what whole-disk encryption systems do: only the

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Daniel Shahaf
Branko Čibej wrote on Fri, Apr 06, 2012 at 08:06:32 +0200: This makes me wonder if we couldn't perhaps keep the whole thing as an in-memory-not-disk-backed SQLite database, then encrypt and dump the whole SQLite memory snapshot to disk. The real trouble with that approach is that debugging the

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Branko Čibej
On 06.04.2012 09:51, Daniel Shahaf wrote: Branko Čibej wrote on Fri, Apr 06, 2012 at 08:06:32 +0200: This makes me wonder if we couldn't perhaps keep the whole thing as an in-memory-not-disk-backed SQLite database, then encrypt and dump the whole SQLite memory snapshot to disk. The real

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Greg Stein
On Apr 6, 2012 3:58 AM, Branko Čibej br...@apache.org wrote: On 06.04.2012 09:51, Daniel Shahaf wrote: Branko Čibej wrote on Fri, Apr 06, 2012 at 08:06:32 +0200: This makes me wonder if we couldn't perhaps keep the whole thing as an in-memory-not-disk-backed SQLite database, then encrypt

Re: svn commit: r1310005 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

2012-04-06 Thread Hyrum K Wright
On Thu, Apr 5, 2012 at 9:48 PM, Greg Stein gst...@gmail.com wrote: On Apr 5, 2012 2:43 PM, hwri...@apache.org wrote: Author: hwright Date: Thu Apr  5 18:43:20 2012 New Revision: 1310005 URL: http://svn.apache.org/viewvc?rev=1310005view=rev Log: On the ev2-export branch: Use an Ev2-style

Re: svn commit: r1310005 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

2012-04-06 Thread Greg Stein
On Apr 6, 2012 8:56 AM, Hyrum K Wright hyrum.wri...@wandisco.com wrote: On Thu, Apr 5, 2012 at 9:48 PM, Greg Stein gst...@gmail.com wrote: On Apr 5, 2012 2:43 PM, hwri...@apache.org wrote: Author: hwright Date: Thu Apr 5 18:43:20 2012 New Revision: 1310005 URL:

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread C. Michael Pilato
On 04/05/2012 10:33 PM, Greg Stein wrote: If not, any suggestions on where the master passphrase fetch/store bits might best fit in? A new callback. But you definitely need a DSO option so core svn does not have GNOME/KDE dependencies. Instead, they load a small DSO that implements the

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread C. Michael Pilato
On 04/06/2012 02:06 AM, Branko Čibej wrote: On 06.04.2012 00:38, C. Michael Pilato wrote: I've been also frustrated when considering the situation that occurs when a user changes his/her master password, forcing a re-encryption of all cached credentials using the new password. You could do

Re: svn commit: r1310005 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

2012-04-06 Thread Hyrum K Wright
On Fri, Apr 6, 2012 at 8:53 AM, Greg Stein gst...@gmail.com wrote: On Apr 6, 2012 8:56 AM, Hyrum K Wright hyrum.wri...@wandisco.com wrote: On Thu, Apr 5, 2012 at 9:48 PM, Greg Stein gst...@gmail.com wrote: On Apr 5, 2012 2:43 PM, hwri...@apache.org wrote: Author: hwright Date: Thu

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread C. Michael Pilato
On 04/06/2012 04:22 AM, Greg Stein wrote: Yeah, I switched the master passphrase param to an svn_string_t on the probable outcome that we would immediately SHA1 the thing, and then use the resulting hash as the nominal password. That would avoid having the plaintext in memory (and yes, I

Re: svn commit: r1308372 - /subversion/trunk/subversion/libsvn_subr/crypto.c

2012-04-06 Thread C. Michael Pilato
On 04/02/2012 07:52 PM, Greg Stein wrote: On Mon, Apr 2, 2012 at 10:57, cmpil...@apache.org wrote: Author: cmpilato Date: Mon Apr 2 14:57:14 2012 New Revision: 1308372 URL: http://svn.apache.org/viewvc?rev=1308372view=rev Log: Some cleanups and minor tweaks to the crypto code. *

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Greg Stein
On Apr 6, 2012 10:36 AM, C. Michael Pilato cmpil...@collab.net wrote: On 04/06/2012 04:22 AM, Greg Stein wrote: Yeah, I switched the master passphrase param to an svn_string_t on the probable outcome that we would immediately SHA1 the thing, and then use the resulting hash as the nominal

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Greg Stein
On Apr 6, 2012 2:06 AM, Branko Čibej br...@apache.org wrote: On 06.04.2012 00:38, C. Michael Pilato wrote: I've been also frustrated when considering the situation that occurs when a user changes his/her master password, forcing a re-encryption of all cached credentials using the new

Re: svn commit: r1308372 - /subversion/trunk/subversion/libsvn_subr/crypto.c

2012-04-06 Thread Greg Stein
On Apr 6, 2012 10:45 AM, C. Michael Pilato cmpil...@collab.net wrote: On 04/02/2012 07:52 PM, Greg Stein wrote: ... To be honest, one of my intended updates is to move *all* of the #ifdef stuff into crypto.c's functions. We've had problems where functions only appeared within certain build

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Greg Hudson
On 04/06/2012 10:47 AM, Greg Stein wrote: Correct. Still useful, but even if memory is compromised, the SHA1 is not reversible. The original MP cannot be recovered for other uses. Just as a reminder, SHA-1 is not recommended for use in new applications at this time

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Branko Čibej
On 06.04.2012 16:13, C. Michael Pilato wrote: On 04/06/2012 02:06 AM, Branko Čibej wrote: On 06.04.2012 00:38, C. Michael Pilato wrote: I've been also frustrated when considering the situation that occurs when a user changes his/her master password, forcing a re-encryption of all cached

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Branko Čibej
On 06.04.2012 16:55, Greg Stein wrote: On Apr 6, 2012 2:06 AM, Branko Čibej br...@apache.org wrote: On 06.04.2012 00:38, C. Michael Pilato wrote: I've been also frustrated when considering the situation that occurs when a user changes his/her master password, forcing a re-encryption of all

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread C. Michael Pilato
On 04/06/2012 11:02 AM, Branko Čibej wrote: *sigh* I hadn't considered stale, compromised data not yet purged or overwritten. Does SQLite's VACUUM statement help with this problem? http://sqlite.org/lang_vacuum.html Vacuum will reorder the pages in the file to fill holes, but will then

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Greg Hudson
On 04/06/2012 10:55 AM, Greg Stein wrote: In other words, changing the master passphrase only requires decrypting and re-encrypting one 256-bit encryption key, not the whole credentials store. PKBDF2 is in the current design to make dict attacks computationally impossible. Assuming we keep

Re: Compressed Pristines (Summary)

2012-04-06 Thread Justin Erenkrantz
On Wed, Apr 4, 2012 at 1:28 PM, Ashod Nakashian ashodnakash...@yahoo.com wrote: I feel this is indeed what we're closing on, at least for an initial working demo. But I'd like to hear more agreements before committing to this path. I know some did show support for this approach, but it's hard

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Branko Čibej
On 06.04.2012 17:07, C. Michael Pilato wrote: On 04/06/2012 11:02 AM, Branko Čibej wrote: *sigh* I hadn't considered stale, compromised data not yet purged or overwritten. Does SQLite's VACUUM statement help with this problem? http://sqlite.org/lang_vacuum.html Vacuum will reorder the pages

Re: buildbot failure in ASF Buildbot on svn-x64-ubuntu-gcc

2012-04-06 Thread Hyrum K Wright
*sigh* I spoke in haste. It turns out my ruby-fu is so weak (and the code is question is convoluted by the plethora of yield statements) that I feel uncomfortable digging into this in any reasonable timeframe. I *think* Daniel's patch would be useful, but I'm really in no position to say.

Ev2 RA protocols

2012-04-06 Thread Hyrum K Wright
In case folks haven't been following commits@, there's been a bit of work on the ev2-export branch on implementing Ev2 drivers for commits. While we're not quite ready for it yet, at some point we'll need to start thinking about how to marshall Ev2 drives over the wire to waiting servers. As

Re: Ev2 RA protocols

2012-04-06 Thread Greg Stein
On Apr 6, 2012 2:05 PM, Hyrum K Wright hyrum.wri...@wandisco.com wrote: In case folks haven't been following commits@, there's been a bit of work on the ev2-export branch on implementing Ev2 drivers for commits. While we're not quite ready for it yet, at some point we'll need to start

Re: Ev2 RA protocols

2012-04-06 Thread Hyrum K Wright
On Fri, Apr 6, 2012 at 1:10 PM, Greg Stein gst...@gmail.com wrote: On Apr 6, 2012 2:05 PM, Hyrum K Wright hyrum.wri...@wandisco.com wrote: In case folks haven't been following commits@, there's been a bit of work on the ev2-export branch on implementing Ev2 drivers for commits.  While we're

Re: APR hash order ruby test failure

2012-04-06 Thread Joe Swatosh
On Wed, Mar 28, 2012 at 2:30 AM, Philip Martin philip.mar...@wandisco.com wrote: Philip Martin philip.mar...@wandisco.com writes: There is another failure in the ruby testsuite: http://ci.apache.org/builders/svn-x64-ubuntu-gcc/builds/4626   1) Failure:

Re: Master passphrase approach, authn storage, cobwebs in C-Mike's head, ...

2012-04-06 Thread Greg Hudson
On 04/06/2012 01:44 PM, Justin Erenkrantz wrote: On Fri, Apr 6, 2012 at 8:09 AM, Greg Hudson ghud...@mit.edu wrote: I also want to caution that PBKDF2 does not provide strong protection against offline dictionary attacks. Most cryptographic methods provide exponential protection--I do a

Re: buildbot failure in ASF Buildbot on svn-x64-ubuntu-gcc

2012-04-06 Thread Joe Swatosh
On Fri, Apr 6, 2012 at 11:02 AM, Hyrum K Wright hyrum.wri...@wandisco.com wrote: *sigh* I spoke in haste.  It turns out my ruby-fu is so weak (and the code is question is convoluted by the plethora of yield statements) that I feel uncomfortable digging into this in any reasonable timeframe.  

Re: svn commit: r1310581 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

2012-04-06 Thread Hyrum K Wright
On Fri, Apr 6, 2012 at 3:48 PM, hwri...@apache.org wrote: Author: hwright Date: Fri Apr  6 20:48:32 2012 New Revision: 1310581 URL: http://svn.apache.org/viewvc?rev=1310581view=rev Log: On the ev2-export branch: Directly add any new directories, rather than through the path_info structs.

Re: APR hash order ruby test failure

2012-04-06 Thread Joe Swatosh
On Fri, Apr 6, 2012 at 11:32 AM, Joe Swatosh joe.swat...@gmail.com wrote: On Wed, Mar 28, 2012 at 2:30 AM, Philip Martin philip.mar...@wandisco.com wrote: Philip Martin philip.mar...@wandisco.com writes: There is another failure in the ruby testsuite:

Re: svn commit: r1310581 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

2012-04-06 Thread Greg Stein
On Fri, Apr 6, 2012 at 16:53, Hyrum K Wright hyrum.wri...@wandisco.com wrote: On Fri, Apr 6, 2012 at 3:48 PM,  hwri...@apache.org wrote: Author: hwright Date: Fri Apr  6 20:48:32 2012 New Revision: 1310581 URL: http://svn.apache.org/viewvc?rev=1310581view=rev Log: On the ev2-export branch:

Re: svn commit: r1310581 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

2012-04-06 Thread Hyrum K Wright
On Fri, Apr 6, 2012 at 4:31 PM, Greg Stein gst...@gmail.com wrote: On Fri, Apr 6, 2012 at 16:53, Hyrum K Wright hyrum.wri...@wandisco.com wrote: On Fri, Apr 6, 2012 at 3:48 PM,  hwri...@apache.org wrote: Author: hwright Date: Fri Apr  6 20:48:32 2012 New Revision: 1310581 URL:

Re: Ev2 RA protocols

2012-04-06 Thread Ivan Zhakov
On Sat, Apr 7, 2012 at 01:10, Greg Stein gst...@gmail.com wrote: [...] The plan is a new opaque structure that holds delete/modify/add markers for relpaths. It doesn't need copy/move information, but just what will be done at the relpaths. Bikeshed: may be 'svn_editor_plan_t' -

Re: Ev2 RA protocols

2012-04-06 Thread Greg Stein
On Fri, Apr 6, 2012 at 20:29, Ivan Zhakov i...@visualsvn.com wrote: On Sat, Apr 7, 2012 at 01:10, Greg Stein gst...@gmail.com wrote: [...] The plan is a new opaque structure that holds delete/modify/add markers for relpaths. It doesn't need copy/move information, but just what will be done at

Re: svn commit: r1310581 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

2012-04-06 Thread Greg Stein
On Fri, Apr 6, 2012 at 17:36, Hyrum K Wright hyrum.wri...@wandisco.com wrote: On Fri, Apr 6, 2012 at 4:31 PM, Greg Stein gst...@gmail.com wrote: On Fri, Apr 6, 2012 at 16:53, Hyrum K Wright hyrum.wri...@wandisco.com wrote: ... Just so you know, I would have expected this section to crash Ev2

Re: svn commit: r1310581 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

2012-04-06 Thread Hyrum K Wright
On Fri, Apr 6, 2012 at 8:17 PM, Greg Stein gst...@gmail.com wrote: On Fri, Apr 6, 2012 at 17:36, Hyrum K Wright hyrum.wri...@wandisco.com wrote: On Fri, Apr 6, 2012 at 4:31 PM, Greg Stein gst...@gmail.com wrote: On Fri, Apr 6, 2012 at 16:53, Hyrum K Wright hyrum.wri...@wandisco.com wrote: