Menu

#1902 SVN integration

KeePass_2.x
open
nobody
5
2015-08-29
2014-07-16
AndersK
No

I believe there are a few who uses SVN together with KeePass and a very nice feature would be an integration with SVN, for example when synchronizing from/to URL, KeePass could perhaps recognize that this is a SVN repository and be able to commit as well.

I previously worked for a company where the support- and developer organisation was using a KeePass database to keep track of the 2500+ customers environment (databases, servers etc) and the VPN access information for each server. This file was located in a SVN repository. The problem with keeping it there became very obvious when two (or more) employees changed something in an entry, saved the file and tried to commit their changes.

My suggestion is simply that before saving the file, KeePass does an svn update on that file and then merges the changes with the locally changed file and then submits this to the SVN repository together with a comment.

I did a quick test with my own svn repository and chose to open a URL from KeePass. I added an entry to the file and saved and VisualSVN Server responded that there was a conflict.

Discussion

  • Paul

    Paul - 2014-07-17

    As you are saving to a special repository it's probably best to implement this as a plug-in.

    cheers, Paul

     
  • AndersK

    AndersK - 2014-07-18

    Hm, so SVN repos are not general, different servers behave differently? Or did you mean a repo as GIT, SVN, SVC etc? In that case I agree.

    So, I'll request that someone makes a plugin for SVN then :)

     
  • Paul

    Paul - 2014-07-18

    Yes, a repo. Committing with comments is beyond the scope of a file save, which is all KeePass does.
    The developer doesn't do plug-ins on request, maybe someone will put their hand up.

    cheers, Paul

     
  • nitroxdm

    nitroxdm - 2015-08-28

    I implemented auto updating and commiting with a static message to svn. The downside is the trigger replacements don't seam to work in the trigger path. (I could be missing something.) So I had to implement it with fully qualified paths.The other downside is the tirggers are stored localy so if you willl need some way of setting up the triggers in each copy of KeePass.

    Here are the instructions.

    Since I only have 4 computers to manage I'm not going to do a plugin at this point.... maybe someday.

     

    Last edit: nitroxdm 2015-08-28
  • Paul

    Paul - 2015-08-29

    You run F:\FIXME\update.bat. Why not put the commands in the trigger and feed the variables from a KeePass entry?
    Entry Title: SVN
    Username: F:\FIXIT
    URL: 8.8.8.8

    SVN Update Trigger
    Action Condition
    Remote host is reachable: {REF:A@T:SVN}
    Execute, File/URL: %comspec%
    Arguments: /c {DT_SIMPLE} >> {REF:U@T:SVN}\CommitLog.txt & svn update >> {REF:U@T:SVN}\CommitLog.txt

    SVN Commit Trigger
    Action Condition
    Remote host is reachable: {REF:A@T:SVN}
    Execute, File/URL: %comspec%
    Arguments: /c {DT_SIMPLE} >> {REF:U@T:SVN}\CommitLog.txt & svn commit -m "More More More" >> {REF:U@T:SVN}\CommitLog.txt

    cheers, Paul

     

Log in to post a comment.