[Buildbot-commits] [SPAM] [Buildbot] #893: Mercurial source step needs username and passwd parms

Buildbot buildbot-devel at lists.sourceforge.net
Tue Jun 15 17:49:53 UTC 2010


#893: Mercurial source step needs username and passwd parms
------------------------+---------------------------------------------------
Reporter:  bgunnison    |       Owner:           
    Type:  enhancement  |      Status:  new      
Priority:  major        |   Milestone:  undecided
 Version:  0.8.0        |    Keywords:           
------------------------+---------------------------------------------------
 So we can get source from https URLs.

 My workaround:

 I have a Repo URL of the form:

 MasterRepoURL = 'https://myusername:mypasswd@xxx.xxx.com/'

 I can put the above in the clear in master.cfg, but that is not safe.

 I then did this:

 import base64
 passwd = base64.b64decode('rgthyde34=-') #not the real string obviously

 MasterRepoURL =  'https://myusername:%s@xxx.xxx.com/' % passwd

 This is better, as editors of master.cfg will have to do a bit of work,
 I’ll improve this by putting the base64 invocation in another file.

 Now the buildbot log files and the waterfall all have the password in the
 clear, so I modified buildstep.py where cmd.args is logged to not log if
 the dict contains “repourl”.

-- 
Ticket URL: <http://buildbot.net/trac/ticket/893>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list