spring-cloud-config

How to bind Spring cloud config values to @ConfigurationProperties object?

这一生的挚爱 提交于 2019-12-12 04:06:14
问题 I am trying to populate a @ConfigurationProperties -annotated class with properties from a yaml file on my cloud config server (Jhipster registry, specifically). The application is connecting to the server and reading the correct file, as when either the server or the file is unavailable, I get an exception either for the missing host or an unexpected empty file. However, I cannot access any of the properties in the file. I am primarily trying to populate a @ConfigurationProperties object,

Strange issue with spring-cloud-config-server with svn as repository

早过忘川 提交于 2019-12-11 18:05:37
问题 I am using spring-cloud-config-server with SVN as repository. When I start the cloud-config-server and client[microservice], configuration value is picked up properly. After changing a configuration value and SVN commit, I am firing refresh POST call, URL: http://localhost:8080/actuator/refresh [8080 is client port]. The updated value in SVN is not getting refreshed. It is known that config-server stores the SVN data locally.[In my case, folder location - /tmp/config-repo-5393789580706388886]

Spring Cloud Config Server configuration with local repository

邮差的信 提交于 2019-12-11 17:21:38
问题 I'm trying to set up Spring Cloud Config Server with backend repository (filesystem), but the endpoint( http://localhost:8888/licensingservice/default ) returns the following: {"name":"licensingservice","profiles":["default"],"label":null,"version":null,"state":null,"propertySources":[]} The Main: @EnableConfigServer @SpringBootApplication public class ConfigServerApplication { public static void main(String[] args) { SpringApplication.run(ConfigServerApplication.class, args); } } The

(Spring cloud config server) Loading configuration other than pattern {application}/{profile}

徘徊边缘 提交于 2019-12-11 08:37:19
问题 In https://github.com/shauank/spring-cloud/tree/master/spring-cloud-prop, how to read property value from email-conf.properties . Assuming: spring.application.name=reservation and profile=default. As per convention spring cloud will load reservation.properties and application.properties . But I wanted to load email-conf.properties also. How to achieve? 回答1: See the doc of cloud config, access the endpoint /{name}/{profile}/{label}/{path} for plain text file. In your case, you can get the

No qualifying bean of type RsaProperties when upgrading to Edgware.SR3

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:33:22
问题 I'm trying to update from Spring Cloud Edgware.SR2 to Edgware.SR3. When I build the Spring Cloud Config Server the default contextLoads test in ApplicationTests fails with the following error: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'encryptionBootstrapConfiguration': Unsatisfied dependency expressed through field 'encryptor'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating

unable to decrypt from spring config server / cleint

偶尔善良 提交于 2019-12-11 02:12:11
问题 I am trying to encrypt and decrypt config properties using Spring config server and client. I have spring boot applications (server and client), using server I have encrypted password property and at client I am trying to decrypt it using same key but getting error. I am trying to enable the config server client to decrypt these properties initially encrypted by config server. Here are the steps I followed: Install Full-strength JCE and replace 2 policy files in JRE lib/security generate a

Spring Boot external configuration order when using Cloud Config Server?

五迷三道 提交于 2019-12-11 00:35:59
问题 I'm starting to use Spring Cloud Config and would like to give a way for clients to override properties that come from cofnig server. However, after reading https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html, it isn't apparent when the Cloud Configuration applies. I've also read http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html and it talks about overrides. But they seem to be the opposite of what I want (those overrides are for

loading multiple properties with config-server

旧时模样 提交于 2019-12-10 10:14:24
问题 I have successfully tested loading properties from SVN repository, currently in my config server i have provided the URI and default-label: trunk and i have application specific property under trunk . below is the contents of my consuming application's application.yml and able to pull the properties successfully spring: application: name: foo-development cloud: config: uri: http://localhost:${config.port:8888} now i have a shared property in different folder thats shared across other

WhyI am Getting 403 Forbidden error for actuator /refresh endpoint on Spring Boot 2 on Cloud Foundry{using Cloud Config Server service}

≯℡__Kan透↙ 提交于 2019-12-09 18:31:28
问题 Within my project, I have the following bootstrap.properties file: spring.application.name=vault-demo management.endpoints.web.exposure.include=* Additionally to that, I defined the following dependency: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-actuator</artifactId> </dependency> The config server is able to access the property but when I update that property in GitHub and POST to /refresh I get a 403: Forbidden . Do I need to make any change in my

spring config server encrypt forbidden

一世执手 提交于 2019-12-09 13:32:30
问题 I've configured a spring cloud config server to use oAuth2 for security. Everything is working well, except the encrypt end point. When I try to access /encrypt I get a 403 Forbidden. I am including the Authorization Bearer token in the header. Is there a way to allow the encrypt end point to be called when the server is secured with oAuth, or is it always blocked? Let me know if you would like to see any config files for this server. Just for reference, here are the things that are working.