# Authentication for catalog git repo

**URL:** <https://forums.suse.com/t/authentication-for-catalog-git-repo/2979>\
**Category:** Rancher 1.x\
**Created:** [May 31, 2016, 10:31pm UTC](https://forums.suse.com/t/authentication-for-catalog-git-repo/2979 "2016-05-31T22:31:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bengerman](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bengerman/32/1127_2.png) [@bengerman](https://forums.suse.com/u/bengerman)\
**Post date:** [May 31, 2016, 10:31pm UTC](https://forums.suse.com/t/authentication-for-catalog-git-repo/2979/1 "2016-05-31T22:31:58Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [June 1, 2016, 12:31am UTC](https://forums.suse.com/t/authentication-for-catalog-git-repo/2979/2 "2016-06-01T00:31:03Z")

</div>

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

We have this enhancement request:

> <https://github.com/rancher/rancher/issues/3248>

---

<div class="post-metadata">

**Author:** ![bengerman](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bengerman/32/1127_2.png) [@bengerman](https://forums.suse.com/u/bengerman)\
**Post date:** [June 1, 2016, 4:16pm UTC](https://forums.suse.com/t/authentication-for-catalog-git-repo/2979/3 "2016-06-01T16:16:09Z")

</div>

Awesome. Thanks for the quick reply!

---

<div class="post-metadata">

**Author:** ![Thomas\_Hansen](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thomas_hansen/32/1283_2.png) [@Thomas\_Hansen](https://forums.suse.com/u/Thomas_Hansen)\
**Post date:** [June 15, 2016, 8:12pm UTC](https://forums.suse.com/t/authentication-for-catalog-git-repo/2979/4 "2016-06-15T20:12:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bengerman](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bengerman/32/1127_2.png) [@bengerman](https://forums.suse.com/u/bengerman)\
**Post date:** [June 20, 2016, 5:21pm UTC](https://forums.suse.com/t/authentication-for-catalog-git-repo/2979/5 "2016-06-20T17:21:16Z")

</div>

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