[users at bb.net] Passwordless Git Repository

Fernando Pando fernando.pando at stelligent.com
Fri Jan 8 19:01:44 UTC 2016


yes, you create the ~/.ssh dir, if needed.
no, do *not* store keys in your git repo.
.nando

On Fri, Jan 8, 2016 at 1:26 PM, Chris Spencer <chrisspen at gmail.com> wrote:

> Where do I put the key? Buildbot runs as the buildbot user, but there's no
> /home/buildbot/.ssh directory. Would I need to create one or can I store
> the key in my project directory? How do I give Gitpoller the location of
> the key?
>
> On Tue, Jan 5, 2016 at 6:16 PM, Fernando Pando <
> fernando.pando at stelligent.com> wrote:
>
>> Hi Chris,
>>
>> you can generate an ssh keypair for the user buildbot is running as, and
>> then add the public key as a "deployment key" to the git repo. with
>> multiple slaves, you can either add a unique keypair for each slave and
>> have multiple deployment keys in git repo, or push pre-generated keys to
>> the slaves as part of your automated buildbot deployment.  it is the
>> slave(s) that do the cloning, so they need the keys, not master.
>>
>> ensure the correct perms on ssh keys, and use ssh url for the repo.
>> lastly, make sure your slaves have .ssh/known_hosts populated with host key
>> of your git server.  you can use ssh-keyscan for this.
>>
>> cheers,
>> .nando
>>
>> On Tue, Jan 5, 2016 at 6:03 PM, Chris Spencer <chrisspen at gmail.com>
>> wrote:
>>
>>> How do you configure Buildbot to use SSH keys instead of a password when
>>> polling a Git repository?
>>>
>>> The only way I could get Buildbot to work with my private repo was to
>>> give it a URL like:
>>>
>>>     https://username:password@bitbucket.org/myuser/myrepo.git
>>>
>>> However, Buildbot displays this URL on almost every page in the web UI,
>>> showing the user's password. How do I prevent this?
>>>
>>> _______________________________________________
>>> users mailing list
>>> users at buildbot.net
>>> https://lists.buildbot.net/mailman/listinfo/users
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160108/5147a55d/attachment.html>


More information about the users mailing list