spring-cloud-config | External configuration (server and client) for Spring Cloud | Microservice library

 by   spring-cloud Java Version: 4.0.4 License: Apache-2.0

kandi X-RAY | spring-cloud-config Summary

kandi X-RAY | spring-cloud-config Summary

spring-cloud-config is a Java library typically used in Architecture, Microservice, Spring Boot, Spring applications. spring-cloud-config has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has high support. You can download it from GitHub, Maven.

Spring Cloud Config Server offers the following benefits:.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              spring-cloud-config has a highly active ecosystem.
              It has 1882 star(s) with 1256 fork(s). There are 188 watchers for this library.
              There were 4 major release(s) in the last 12 months.
              There are 167 open issues and 1508 have been closed. On average issues are closed in 270 days. There are 1 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of spring-cloud-config is 4.0.4

            kandi-Quality Quality

              spring-cloud-config has 0 bugs and 0 code smells.

            kandi-Security Security

              spring-cloud-config has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              spring-cloud-config code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              spring-cloud-config is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              spring-cloud-config releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 28652 lines of code, 2545 functions and 347 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed spring-cloud-config and discovered the below as its top functions. This is intended to give you an instant insight into spring-cloud-config implemented functionality, and help decide if they suit your requirements.
            • Locates configuration source
            • Get the environment
            • Create HttpRequestFactory for this client
            • Returns the credentials for the given index
            • Get the credentials for the given uri
            • Calculates the AWS CodeCommit password for the given URI
            • Converts a byte array to a hex string
            • Runs the health check
            • Perform the health check
            • Watch and return the polling index
            • Create the SSH config store
            • Convert a property source into a map
            • Determine if the search path locator is annotated
            • Finds an environment for a given application and profiles
            • This method checks whether the project permissions are present on the Google Cloud SDK
            • Finds an environment in the repository
            • Get credential items from URI
            • Gets the client authentication
            • Handles client authentication
            • Finds an environment from the vault
            • Finds an environment by name and profiles
            • Decrypt the given environment
            • Inits all repositories in the repository
            • Returns a server key database
            • Post process
            • Gets an environment from the server properties
            Get all kandi verified functions for this library.

            spring-cloud-config Key Features

            No Key Features are available at this moment for spring-cloud-config.

            spring-cloud-config Examples and Code Snippets

            No Code Snippets are available at this moment for spring-cloud-config.

            Community Discussions

            QUESTION

            Spring Cloud Config Server GitHub SHA-1 error
            Asked 2022-Mar-22 at 03:13
            Context

            This is regarding a Spring Cloud Config Server hobby project (with @EnableConfigServer).

            Yesterday, the application could be started.

            Today, the application failed to start because of a Git communication error.

            From GitHub's official blog post, it is mentioned that SHA-1 is no longer supported starting from 15 March 2022. And that explains the results I'm getting these 2 days.

            March 15, 2022

            Changes made permanent.

            We’ll permanently stop accepting DSA keys. RSA keys uploaded after the cut-off point above will work only with SHA-2 signatures (but again, RSA keys uploaded before this date will continue to work with SHA-1). The deprecated MACs, ciphers, and unencrypted Git protocol will be permanently disabled.

            Even if I didn't delete the existing SSH key, it still failed to start today. But anyway, now the only key under the "Deploy keys" section of the repository settings is an SSH key that was added after the March 15, 2022 cut off date.

            Dependency versions

            Dependency Management:

            Dependency Version spring-cloud-dependencies Hoxton.SR12

            Dependency:

            Dependency Version spring-cloud-config-server (Managed) Spring application configurations

            application.yml:

            ...

            ANSWER

            Answered 2022-Mar-16 at 14:07

            I have a same problem.

            See https://github.com/spring-cloud/spring-cloud-config/issues/2061

            For right now, I have a dirty workaround: use https uri, username and password(maybe personal secret token).

            Source https://stackoverflow.com/questions/71489256

            QUESTION

            Quarkus - Spring Cloud Config Client
            Asked 2022-Mar-01 at 08:27

            I am getting this error when trying to set header that has to be sent to Spring Config Server.

            ...

            ANSWER

            Answered 2022-Mar-01 at 08:27

            You need to use:

            quarkus.spring-cloud-config.headers.access_token=12345

            Source https://stackoverflow.com/questions/71245429

            QUESTION

            build.gradle created by spring initializr error message on "import" function
            Asked 2022-Feb-15 at 03:29

            I am new to Gradle and I followed the instructions of a tutorial, just that instead of maven I chose Gradle in Spring.Initializr.

            It produced following code for the build.gradle

            ...

            ANSWER

            Answered 2022-Feb-14 at 19:39

            The build.gradle in your question matches the expected output from start.spring.io except these two lines:

            Source https://stackoverflow.com/questions/71114443

            QUESTION

            Spring cloud config fails to pick configuration from local file system
            Asked 2022-Jan-26 at 09:57

            I am trying to setup spring cloud config using local file system. However, I couldn't get it working.

            Below is my application.properties file:

            ...

            ANSWER

            Answered 2022-Jan-26 at 09:57

            It might be a simple mistake of naming?

            For example, your spring application name is "limit-service" while your property files are named "limits-service" and that might be why it is not reading them.

            Source https://stackoverflow.com/questions/70859552

            QUESTION

            Spring cloud config server git connection issues
            Asked 2021-Dec-22 at 01:07

            I see issues in the Spring cloud config server (Springboot) logs when connecting to the repo where configs are stored. I'm not sure if it's unable to clone because of credentials or something else (git-upload-pack not permitted). Any pointers to this would be great.

            ...

            ANSWER

            Answered 2021-Oct-28 at 00:08

            Github token needs to be passed as username which I was configuring against the password property for the spring boot app. The password property needs to be left empty and the Github-token needs to be assigned to the username like below-

            Source https://stackoverflow.com/questions/69481013

            QUESTION

            Spring boot Oauth2 grant_type password always return invalid_grant Bad Credentials
            Asked 2021-Oct-18 at 07:05

            I am trying to create an API that is in charge of securing the rest of my APIs. This api has the functionality of generating the token for the users of the whole set. Users must authenticate by clientId and secrt and with their username and password. To test it I am using a postman request like this:

            ...

            ANSWER

            Answered 2021-Oct-18 at 07:05

            The problem was in userRepository, I was looking for users by username, and in my database the username is the login field. I have changed username to login in the repository and now it works correctly.

            Source https://stackoverflow.com/questions/69584203

            QUESTION

            What does the property spring.cloud.config.label in Spring Cloud config do?
            Asked 2021-Oct-10 at 13:06

            I am learning Spring Cloud Config v3.0.5. When I was studying in the documentation, I found that the documentation mentioned that

            For instance, you might want to align the config label with your branch but make it optional (in that case, use spring.cloud.config.label=myfeature,develop).

            I don’t know what “align the config label” means. But I guess it should be to modify the default value of {label} in the url (the default value is master)

            However, when i set spring.cloud.config.label=dev and visit http://localhost:3344/config-dev.yml, i still get the data on master branch.



            So what does the property spring.cloud.config.label do? And what does "align the config label with your branch" mentioned in the document mean?

            ...

            ANSWER

            Answered 2021-Oct-10 at 13:06

            The property spring.cloud.config.label can be used in the client application, not in the config server.

            I assume that you use a git backend for your config server. To get a config that has the label dev, you need to create a branch or tag in the git repository that contains the config. The mechanism for other backends can be looked up in the reference documentation.

            After creating the branch, the URLs should work as expected. But please note that the URL http://localhost:3344/config-dev.yml refers to an application called config and a profile (not a label) dev. The default profile of a Spring application is default and one of many ways to set it on a client is with the property spring.profiles.active.

            I agree that the word align in the reference documentation is unclear. I think they suggest to create branches in the config repository for feature branch development and use the same branch name for both the config and the code repository, respectively. Then you can set the label to the branch name in the feature branch of the client's code repository.

            Source https://stackoverflow.com/questions/69508069

            QUESTION

            Spring Cloud Bus with rabbit - Application Failed to Start
            Asked 2021-Aug-19 at 18:44

            I'm triying to create a Config Server that listens to Git event and streams events to client. I followed several examples and also the documentation, but I cant manage to get application to start. I guess I have a problem with spring boot and cloud versions.

            It is important to mention im running rabbitmq with docker.

            This is my build.gradle

            ...

            ANSWER

            Answered 2021-Aug-19 at 18:44

            Well, I figured out

            I turns out that Spring Cloud 2020.0.3 is supported by Spring Boot 2.4.6

            So I downgraded to 2.4.6 and application started!

            Hope it is helpfull for someone else

            Source https://stackoverflow.com/questions/68852913

            QUESTION

            Issue staring Spring cloud server with rabbitmq cloud bus
            Asked 2021-Aug-19 at 16:06

            I am configuring spring config server with control bus(rabbitmq) but when i add its dependency the application failed to start with error:

            ...

            ANSWER

            Answered 2021-Aug-19 at 16:06

            It's a known issue; fixed in spring-integration-amqp 5.5.3 (Boot 2.5.4).

            https://github.com/spring-projects/spring-integration/issues/3606

            Source https://stackoverflow.com/questions/68849917

            QUESTION

            application dosen't read config server spring cloud
            Asked 2021-Jun-30 at 04:02

            Im try to create a simple project with 2 application ( a simple rest app and a config-server app ) My config-server project is ok, because if I got http://localhost:9091/form-create/container I can see all vars from form-create.properties

            but my application form-create is not getting properties from config-server

            here is my bootstrap.properties in form-create project

            ...

            ANSWER

            Answered 2021-Jun-30 at 04:02

            I think you should try to check two things:

            1. Your maven dependencies. It looks like you've put them wrong, namely, if you're running cloud config client, why do you have a dependency for spring-cloud-config-server?

            For Web and cloud config client the following list is sufficient:

            Source https://stackoverflow.com/questions/68188177

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install spring-cloud-config

            This quick start walks through using both the server and the client of Spring Cloud Config Server.
            In order to setup Intellij you should import our coding conventions, inspection profiles and set up the checkstyle plugin. The following files can be found in the Spring Cloud Build project. Go to File → Settings → Editor → Code style. There click on the icon next to the Scheme section. There, click on the Import Scheme value and pick the Intellij IDEA code style XML option. Import the spring-cloud-build-tools/src/main/resources/intellij/Intellij_Spring_Boot_Java_Conventions.xml file. Go to File → Settings → Editor → Inspections. There click on the icon next to the Profile section. There, click on the Import Profile and import the spring-cloud-build-tools/src/main/resources/intellij/Intellij_Project_Defaults.xml file. To have Intellij work with Checkstyle, you have to install the Checkstyle plugin. It’s advisable to also install the Assertions2Assertj to automatically convert the JUnit assertions.
            Default Checkstyle rules
            File header setup
            Default suppression rules
            Project defaults for Intellij that apply most of Checkstyle rules
            Project style conventions for Intellij that apply most of Checkstyle rules
            checkstyle.header.file - please point it to the Spring Cloud Build’s, spring-cloud-build-tools/src/main/resources/checkstyle-header.txt file either in your cloned repo or via the https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-build-tools/src/main/resources/checkstyle-header.txt URL.
            checkstyle.suppressions.file - default suppressions. Please point it to the Spring Cloud Build’s, spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml file either in your cloned repo or via the https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml URL.
            checkstyle.additional.suppressions.file - this variable corresponds to suppressions in your local project. E.g. you’re working on spring-cloud-contract. Then point to the project-root/src/checkstyle/checkstyle-suppressions.xml folder. Example for spring-cloud-contract would be: /home/username/spring-cloud-contract/src/checkstyle/checkstyle-suppressions.xml.

            Support

            The spring-cloud-build module has a "docs" profile, and if you switch that on it will try to build asciidoc sources from src/main/asciidoc. As part of that process it will look for a README.adoc and process it by loading all the includes, but not parsing or rendering it, just copying it to ${main.basedir} (defaults to ${basedir}, i.e. the root of the project). If there are any changes in the README it will then show up after a Maven build as a modified file in the correct place. Just commit it and push the change.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/spring-cloud/spring-cloud-config.git

          • CLI

            gh repo clone spring-cloud/spring-cloud-config

          • sshUrl

            git@github.com:spring-cloud/spring-cloud-config.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link