[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: passwords in checked-in code

From: Blair Zajac <blair_at_orcaware.com>
Date: Mon, 01 Sep 2008 21:39:19 -0700

Darrell Esau wrote:
> Hi all,
>
> I accidentally committed a password in clear text to a configuration
> file in my SVN codebase. I've since added various other new
> revisions.
>
> I'm wondering if it's possible to edit the repository to remove the
> password from the config file.
>
> I'm using the linux filesystem for storage.. I found the files in
> db/revs -- however when I remove the password (replacing the
> characters with X's) -- when I try to check out the file, I get a
> checksum failure.
>
> So -- Is there any way to do this while maintaining all the other history?

A couple of choices:

1) 'svnadmin dump' the repos up to the revision before the bad commit and create
a new repos from the dump that is missing later history. Then commit the files
over it without the passwords. Make sure to change the UUID of the new repos.

2) Change your passwords :)

Regards,
Blair

-- 
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<blair_at_orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-02 06:39:50 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.