spring-cloud-config

Spring config server security encryption and decryption not working

别等时光非礼了梦想. 提交于 2020-07-08 22:54:15
问题 I am using spring config server and spring security. I have followed the link https://cloud.spring.io/spring-cloud-config/multi/multi__spring_cloud_config_server.html I have added JCF in C:\Program Files\Java\jdk1.8.0_171\jre\lib\security folder. When I post localhost:8080/encrypt { "description": "The encryption algorithm is not strong enough", "status": "INVALID" } This response comes. Please let me know the issue. 回答1: if you are getting {"description": "The encryption algorithm is not

Spring cloud discovery first does not work at all

做~自己de王妃 提交于 2020-06-17 09:24:16
问题 I try to implement a spring cloud netflix project with a eureka service registry, a configuration server and a client microservice. I use spring cloud finchley release. I have two problems: 1. Eureka and configuration server are both running, but do not recognize each other. I have read the official docs and multiple tutorials, but it does not work. Here is my code: ConfigServerApplication: import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure

io.grpc.StatusRuntimeException: PERMISSION_DENIED: User not authorized to perform this action

纵饮孤独 提交于 2020-04-05 06:48:12
问题 I try to implement simple example of spring cloud config + spring cloud bus . So I've implemented Client server application Config server application and in the separated repository I've put application.properties file. Looks like everything is correct on the server side. But on client side I see error when application is starting: org.springframework.cloud.stream.binder.BinderException: Exception thrown while building outbound endpoint at org.springframework.cloud.stream.binder

io.grpc.StatusRuntimeException: PERMISSION_DENIED: User not authorized to perform this action

我与影子孤独终老i 提交于 2020-04-05 06:48:08
问题 I try to implement simple example of spring cloud config + spring cloud bus . So I've implemented Client server application Config server application and in the separated repository I've put application.properties file. Looks like everything is correct on the server side. But on client side I see error when application is starting: org.springframework.cloud.stream.binder.BinderException: Exception thrown while building outbound endpoint at org.springframework.cloud.stream.binder

Spring Cloud Config and Spring Cloud Vault order of initialization

自闭症网瘾萝莉.ら 提交于 2020-01-25 07:56:05
问题 We are leveraging Spring Cloud Config and Spring Cloud Config Vault. We would like to know if there is a way to "bootstrap the bootstrap", ie we want spring cloud config server to be hit and then pull properties from that to leverage in our vault configuration. We looked at order, but it didn't appear to work, and I assume it is because of the post processing order, but I was hoping I might be missing something. 回答1: TL;DR It doesn't work. Explanation What Spring Cloud does with its bootstrap

Can't decrypt property from spring cloud config or environment variable

我只是一个虾纸丫 提交于 2020-01-24 06:44:04
问题 I'm trying to get my KMS library, found here, to decrypt items from my application.yml that come from either the google cloud config server or an environment variable. In playing around I've tried a number of scenarios to get this to work. Ideally I'd like to be able to do something like: username: '{cipher}${db_username} where ${db_username} is either a property I read in from google cloud config or an environment variable. So far what I've tried: ✅ username: ${username} -> Successfully

Spring cloud config + bus calls twice to the config server when the binder is created

╄→гoц情女王★ 提交于 2020-01-15 17:44:01
问题 I have created a simple project using spring-cloud-config and spring-cloud-bus. For some reason, the config client calls twice to the config server. The first time happens when the context of the bootstrap is created (what is the expected behaviour) but the second time is called when the context of the binder is created. This is done In the class: DefaultBinderFactory#getBinderInstance: // If the environment is not customized and a main context is available, we // will set the latter as

Spring cloud config + bus calls twice to the config server when the binder is created

强颜欢笑 提交于 2020-01-15 17:39:09
问题 I have created a simple project using spring-cloud-config and spring-cloud-bus. For some reason, the config client calls twice to the config server. The first time happens when the context of the bootstrap is created (what is the expected behaviour) but the second time is called when the context of the binder is created. This is done In the class: DefaultBinderFactory#getBinderInstance: // If the environment is not customized and a main context is available, we // will set the latter as

Spring cloud config + bus calls twice to the config server when the binder is created

ⅰ亾dé卋堺 提交于 2020-01-15 17:39:06
问题 I have created a simple project using spring-cloud-config and spring-cloud-bus. For some reason, the config client calls twice to the config server. The first time happens when the context of the bootstrap is created (what is the expected behaviour) but the second time is called when the context of the binder is created. This is done In the class: DefaultBinderFactory#getBinderInstance: // If the environment is not customized and a main context is available, we // will set the latter as

org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin - Spring Cloud

陌路散爱 提交于 2020-01-14 05:42:09
问题 I am working on Spring Boot Cloud using GIT. Using Spring Boot 2.2.2.RELEASE version. SpringBootCloudChap2ConfigServerGitApplication.java @SpringBootApplication @EnableConfigServer @EnableAutoConfiguration public class SpringBootCloudChap2ConfigServerGitApplication { public static void main(String[] args) { SpringApplication.run(SpringBootCloudChap2ConfigServerGitApplication.class, args); } } application.properties server.port=8888 spring.cloud.config.server.git.uri=https://github.com