spring-cloud-config

spring cloud config ssh connection failing

本小妞迷上赌 提交于 2019-12-09 10:08:51
问题 Using Spring Boot, Java 1.8, cloud-config-server I'm trying to access a git repo using this application.yml snippet. But is failing to find the hostkey. spring: cloud: config: allowOverride: true failFast: true overrideNone: true overrideSystemProperties: false server: git: uri: ssh://git@10.4.31.179:7999/project/name.git And the address is in my knowHosts file: 10.4.31.179:7999,10.4.31.179 ssh-rsa

How do I setup a local fallback config for Spring Cloud Config service incase remote repo is not available?

假如想象 提交于 2019-12-09 03:24:41
问题 We are planning to utilize Spring Cloud Config for our service. Our biggest concern is that when the container starts up, it relies on github to be available all the time so that it can pull the config files. In case github is down, what is the best practice to mitigate the issue? I was thinking of storing a local folder of the configs as a backup and configuring the application.yml to fallback to it (I do not know how). I was going to use a Composite Environment Repositories Please see here:

How Spring Cloud Config Server PUSH plain text files to Config Client Application?

最后都变了- 提交于 2019-12-08 08:52:50
问题 What I have implemented so far are: Spring Cloud Config Server with "native" repo. spring.profiles.active: native spring.cloud.config.server.native.searchLocations: file:/path/to/config-repo Config Server is pushing notification to Config Client App through RabbitMQ, as http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_push_notifications_and_spring_cloud_bus Config Client App has @RefreshScope annotated on Service bean. So /config-repo has 3 files - application.yaml, client

Spring Cloud Config - Multiple Composite Repositories?

烂漫一生 提交于 2019-12-08 07:12:47
问题 Is it possible configure Spring Cloud Config with multiple composite repositories? Our setup uses multiple team-based repositories: spring: cloud: config: server: git: repos: teamA: cloneOnStart: true pattern: teama-* searchPaths: '{profile}' uri: file:///etc/config/teama teamB: cloneOnStart: true pattern: teamb-* searchPaths: '{profile}' uri: file:///etc/config/teamb We want each team to now pull from 2 different git repositories. I think multiple Composite repositories (https://cloud.spring

Spring Cloud Config - Encrypt Password

我是研究僧i 提交于 2019-12-08 04:07:34
问题 I saw that spring cloud config provides an /encrypt and /decrypt endpoints. How can I use the encrypt and decrypt endpoint via Advanced REST Client in order to view the encrypted or decrypted string? 回答1: As Spring Cloud Config documentation states: The server also exposes /encrypt and /decrypt endpoints (on the assumption that these will be secured and only accessed by authorized agents). If you are editing a remote config file you can use the Config Server to encrypt values by POSTing to

Spring cloud config server - how to add custom PropertySource visible in findOne() method of EnvironmentEncryptorEnvironmentRepository

筅森魡賤 提交于 2019-12-07 19:18:33
问题 My goal is to add custom PropertySource to spring-cloud-server. What I want to achieve is to get some custom properties from that custom source in spring-cloud-config-client application. Basing on suggestions from Adding environment repository in spring-config-server I've created spring-cloud-config-server application and separate project spring-cloud-config-custom . Second one is based on spring-cloud-consul-config code. So, I've created all necessary classes like CustomPropertySource ,

Authentication issue with repo accessed from Spring Cloud Config Server hosted on GitHub

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 07:15:00
问题 I'm hosting a configuration in a repo on GitHub. If I keep the repo public all's good, but if I make it private I face: org.eclipse.jgit.errors.TransportException: https://github.com/my-user/my-repo: Authentication is required but no CredentialsProvider has been registered the property I use to target the repo is spring.cloud.config.server.git.uri=https://github.com/my-user/my-repo What should I do to configure this properly with the private repo, thanks 回答1: you need to add the spring.cloud

USERAUTH fail with private key file for Github and Spring cloud config

无人久伴 提交于 2019-12-07 02:02:03
问题 I tried to use the method for using private key (that has passphrase and is added to ssh-agent from file) (according to this stack post): spring: cloud: config: server: git: uri: git@github.com-forApp:myorg/myrepo.git search-paths: '{application}' clone-on-start: true private_key_file: ~/.ssh/id_rsa but I keep getting org.eclipse.jgit.api.errors.TransportException: git@github.com:myorg/myrepo.git: USERAUTH fail Do I have to do it exactly as doc says with pasting the key into config file or

How Spring Cloud Config Server PUSH plain text files to Config Client Application?

旧街凉风 提交于 2019-12-06 15:18:09
What I have implemented so far are: Spring Cloud Config Server with "native" repo. spring.profiles.active: native spring.cloud.config.server.native.searchLocations: file:/path/to/config-repo Config Server is pushing notification to Config Client App through RabbitMQ, as http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_push_notifications_and_spring_cloud_bus Config Client App has @RefreshScope annotated on Service bean. So /config-repo has 3 files - application.yaml, client.yaml and client.json All yaml properties changes will be auto reloaded by Config Client App for sure.

No suitable cloud connector found while trying to use local spring cloud connector/local_configuration_connector

╄→гoц情女王★ 提交于 2019-12-06 11:20:01
问题 I am trying to use the local cloud spring connector to test my application in local environment before it can be deployed to CF based cloud environment. From the Spring link http://cloud.spring.io/spring-cloud-connectors/spring-cloud-connectors.html#_local_configuration_connector I followed the process and created properties file with the name spring-cloud-bootstrap.properties in project resource directory. It has the following content spring.cloud.propertiesFile: C:\Users\IBM_ADMIN\git