spring-cloud-config icon indicating copy to clipboard operation
spring-cloud-config copied to clipboard

Accessing git repos with SSH key based access fails when springCloudVersion is 2021.0.4

Open ichandan16 opened this issue 3 years ago • 0 comments

Hi, I have a config server that reads the config from git and secret manager. The git repo only allows ssh key based authentication. (I tried this approach both in github and bitbucket)

I am getting below error when I use springCloudVersion=2021.0.4.

However if I change the springCloudVersion=2020.0.4, this works.

I need to use springCloudVersion=2021.0.4, as I want to integrate gcp-secret-manager which is available in this 2021.0.4 release.

Appreciate any help.

org.springframework.cloud.config.server.environment.NoSuchRepositoryException: Cannot clone or checkout repository: [email protected]:ichandan16/test-config-server.git at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.refresh(JGitEnvironmentRepository.java:313) ~[spring-cloud-config-server-3.1.4.jar!/:3.1.4] at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.getLocations(JGitEnvironmentRepository.java:256) ~[spring-cloud-config-server-3.1.4.jar!/:3.1.4]

Complete stacktrace is attached. scc-pring202104-error.log

Here is pom.xml (formatted to txt as github does not allow attaching .xml files).

pom.xml

ichandan16 avatar Sep 20 '22 17:09 ichandan16