I am attempting to get an embedded Spring Config Server implementation working that reads configuration from GitHub. I'm following this tutorial:
https://mromeh.com/2017/12/04/spring-boot-with-embedded-config-server-via-spring-cloud-config/
I am getting the following Exception when my Spring Boot app tries to start up:
Caused by: com.jcraft.jsch.JSchException: There are not any available ciphers. at com.jcraft.jsch.Session.send_kexinit(Session.java:629) at com.jcraft.jsch.Session.connect(Session.java:307) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:146) ... 23 more
The only interesting bit in my code that I see contributing to this is my bootstrap.yml
file, which looks like this:
spring:
application:
name: DemoApplication.yml
---
spring:
cloud:
config:
failFast: true
server:
bootstrap: true
git:
uri: git@github.com:mycompany/demo-config.git
I am running OpenJDK 8 v212 on MacOS, per running the following:
#> java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)
I've searched through the Spring code and documentation, and have yet to find anything about passing configuration parameters or adding code to affect how the Jsch session being used by Spring is constructed. Everything I find suggests that what I'm doing should just work.
I'm at a loss as to where to go from here. Can someone tell me what I'm missing...what I need to do to get past this problem?