<p>I see issues in the Spring cloud config server (Springboot) logs when connecting to the repo where configs are stored. I'm not sure if it's unable to clone because of credentials or something else (git-upload-pack not permitted). Any pointers to this would be great.</p>
<pre><code>2021-10-06 22:52:51.763  INFO 1 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-10-06 22:52:51.764  INFO 1 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-10-06 22:52:51.765  INFO 1 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms
2021-10-06 22:52:54.769  WARN 1 --- [nio-8080-exec-1] .c.s.e.MultipleJGitEnvironmentRepository : Error occured cloning to base directory.

org.eclipse.jgit.api.errors.TransportException: https://github.asdf.asdf.asdf.com/asdfad/sdasdf: git-upload-pack not permitted on 'https://github.asdf.asdf.adsf.com/sdfdf/asdfsad-configs/'
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:254) ~[org.eclipse.jgit-5.1.3.201810200350-r.jar!/:5.1.3.201810200350-r]
    at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:306) ~[org.eclipse.jgit-5.1.3.201810200350-r.jar!/:5.1.3.201810200350-r]
    at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:200) ~[org.eclipse.jgit-5.1.3.201810200350-r.jar!/:5.1.3.201810200350-r]
    at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.cloneToBasedir(JGitEnvironmentRepository.java:612) [spring-cloud-config-server-3.0.4.jar!/:3.0.4]
    at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.copyRepository(JGitEnvironmentRepository.java:587) [spring-cloud-config-server-3.0.4.jar!/:3.0.4]
    at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.createGitClient(JGitEnvironmentRepository.java:570) [spring-cloud-config-server-3.0.4.jar!/:3.0.4]
    at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.refresh(JGitEnvironmentRepository.java:267) [spring-cloud-config-server-3.0.4.jar!/:3.0.4]
    at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.getLocations(JGitEnvironmentRepository.java:245) [spring-cloud-config-server-3.0.4.jar!/:3.0.4]
    at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.getLocations(MultipleJGitEnvironmentRepository.java:139) [spring-cloud-config-server-3.0.4.jar!/:3.0.4]
</code></pre>
<p>The Spring boot app.properties for the config server app looks like this -</p>
<pre><code>spring.cloud.config.server.git.uri=https://github.sdf.sdasdf.asdf.com/asdf/asdf-configs
          spring.cloud.config.server.git.username=github-token
          spring.cloud.config.server.git.password={github_token}
</code></pre>
<p>The endpoint returns the response below:</p>
<pre><code>{&quot;status&quot;:&quot;DOWN&quot;,&quot;components&quot;:{&quot;clientConfigServer&quot;:{&quot;status&quot;:&quot;UNKNOWN&quot;,&quot;details&quot;:{&quot;error&quot;:&quot;no property sources located&quot;}},&quot;configServer&quot;:{&quot;status&quot;:&quot;DOWN&quot;,&quot;details&quot;:{&quot;repository&quot;:{&quot;application&quot;:&quot;app&quot;,&quot;profiles&quot;:&quot;default&quot;},&quot;error&quot;:&quot;org.springframework.cloud.config.server.environment.NoSuchRepositoryException: Cannot clone or checkout repository: https://github-token@github.sdf.sdf.dsfs.com/sdf/sdfsd-configs&quot;}},&quot;discoveryComposite&quot;:{&quot;description&quot;:&quot;Discovery Client not initialized&quot;,&quot;status&quot;:&quot;UNKNOWN&quot;,&quot;components&quot;:{&quot;discoveryClient&quot;:{&quot;description&quot;:&quot;Discovery Client not initialized&quot;,&quot;status&quot;:&quot;UNKNOWN&quot;}}},&quot;diskSpace&quot;:{&quot;status&quot;:&quot;UP&quot;,&quot;details&quot;:{&quot;total&quot;:103880232960,&quot;free&quot;:24558080000,&quot;threshold&quot;:10485760,&quot;exists&quot;:true}},&quot;livenessState&quot;:{&quot;status&quot;:&quot;UP&quot;},&quot;ping&quot;:{&quot;status&quot;:&quot;UP&quot;},&quot;readinessState&quot;:{&quot;status&quot;:&quot;UP&quot;},&quot;refreshScope&quot;:{&quot;status&quot;:&quot;UP&quot;}},&quot;groups&quot;:[&quot;liveness&quot;,&quot;readiness&quot;]}
</code></pre>

<p>Github token needs to be passed as username which I was configuring against the password property for the spring boot app. The password property needs to be left empty and the Github-token needs to be assigned to the username like below-</p>
<pre><code>spring.cloud.config.server.git.username=asdfasdxxxxxxxyssssysysyssysy
spring.cloud.config.server.git.password=
</code></pre>
