# How to create a private repo and use it on config-server

**URL:** <https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832>\
**Category:** General\
**Created:** [October 17, 2023, 6:19am UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832 "2023-10-17T06:19:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlxix](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@karlxix](https://community.mosip.io/u/karlxix)\
**Post date:** [October 17, 2023, 6:19am UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832/1 "2023-10-17T06:19:38Z")

</div>

We are using MOSIP v1.2.0.1-B3  
Hello we already installed config-server, but planning to reinstall it to use the private repo so that we can edit the kernel-default.properties in git.

Is there a conflict in doing this? we already install all the MOSIP Modules.

---

<div class="post-metadata">

**Author:** ![gsasikumar](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@gsasikumar](https://community.mosip.io/u/gsasikumar)\
**Post date:** [October 17, 2023, 7:19am UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832/2 "2023-10-17T07:19:22Z")

</div>

Nope, feel free to move your config repo to private.

---

<div class="post-metadata">

**Author:** ![karlxix](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@karlxix](https://community.mosip.io/u/karlxix)\
**Post date:** [October 17, 2023, 8:30am UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832/3 "2023-10-17T08:30:43Z")

</div>

We already did but not sure if the config file is getting updated. any idea how to access the config-server? we are currently stuck here, some pods are getting a cannot resolve placeholder.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/b34a4b368d11fc124be367b85ba910c2973fdd26.png)

---

<div class="post-metadata">

**Author:** ![ckm007](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ckm007/32/264_2.png) [@ckm007](https://community.mosip.io/u/ckm007)\
**Post date:** [October 17, 2023, 11:30am UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832/4 "2023-10-17T11:30:11Z")

</div>

> <https://github.com/mosip/mosip-infra/blob/v1.2.0.1-B3/deployment/v3/mosip/config-server/values.yaml>

You need to redeploy config server using helm after updating the values.yaml accordingly.

---

<div class="post-metadata">

**Author:** ![karlxix](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@karlxix](https://community.mosip.io/u/karlxix)\
**Post date:** [October 17, 2023, 4:06pm UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832/5 "2023-10-17T16:06:21Z")

</div>

Hi @ckm007

We forked the mosip-config from the official git.  
Then we use this public repo that we created [GitHub - paredescedric3/mosip-config: This repository contains MOSIP configuration templates](https://github.com/paredescedric3/mosip-config/)

gitRepo:  
uri: `https://github.com/paredescedric3/mosip-config/`  
searchFolders: “”

could you check if this is correct?

After deploying this is there a way if the config is getting imported from the config-server?  
Is there a way to check it?

---

<div class="post-metadata">

**Author:** ![karlxix](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@karlxix](https://community.mosip.io/u/karlxix)\
**Post date:** [October 18, 2023, 6:05am UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832/6 "2023-10-18T06:05:04Z")

</div>

Hello Team, hope you can help us here.  
after deploying the new private repo we are getting this issue on some pods

Could not resolve placeholder ‘mosip.auth.adapter.impl.basepackage’ in value "${mosip.auth.adapter.impl.basepackage}

but it has a value on the config file

---

<div class="post-metadata">

**Author:** ![ckm007](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ckm007/32/264_2.png) [@ckm007](https://community.mosip.io/u/ckm007)\
**Post date:** [October 19, 2023, 5:57am UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832/7 "2023-10-19T05:57:23Z")

</div>

@karlxix need to set these bold params correctly for pointing to private repo.  
gitRepo:  
uri: [GitHub - mosip/mosip-config: This repository contains MOSIP configuration templates](https://github.com/mosip/mosip-config)  
version: 1.2.0.1-v3

## Folders within the base repo where properties may be found.

searchFolders: “”  
**private** : false ## true for private repo

## User name of user who has access to the private repo. Ignore for public repo

**username** : “your username”  
**token** : “your PAT with read access atleast”

> <https://github.com/mosip/mosip-infra/blob/master/deployment/v3/mosip/config-server/values.yaml>

---

<div class="post-metadata">

**Author:** ![ckm007](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ckm007/32/264_2.png) [@ckm007](https://community.mosip.io/u/ckm007)\
**Post date:** [October 19, 2023, 5:59am UTC](https://community.mosip.io/t/how-to-create-a-private-repo-and-use-it-on-config-server/832/8 "2023-10-19T05:59:15Z")

</div>

version → branch name of mosip config.  
private → true for private repo.  
username → username to be used to access private git repo.  
token → PAT of the same user having read access atleast.
