[users at bb.net] Passwordless Git Repository
Fernando Pando
fernando.pando at stelligent.com
Tue Jan 5 23:16:14 UTC 2016
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/20160105/e07b0c3b/attachment.html>
More information about the users
mailing list