Authentication for catalog git repo

We want to use a git repo for rancher-catalog, but we’d like to require authentication. Is there a way to feed Rancher credentials or an ssh key to allow for this?

Currently, this functionality doesn’t exist in Rancher today.

We have this enhancement request:

Awesome. Thanks for the quick reply!

I have managed to get this to work by logging into the rancher server container (docker exec …) and setting up SSH keys (which I then register with out repo) and then making sure that things like known_hosts are set as they should be.

The easiest way to test this is to do a command line git clone inside the rancher server container.

Once this is setup, then you can access private repos for the catalog.

The downside is that you have to make sure you set this every time you upgrade the server - unless you reconfigure to have the /root structure as a volume in a data container.

Thanks for the tip, @Thomas_Hansen. Working perfectly on my system.