spring-cloud / spring-cloud/spring-cloud-config

Share property from Config Server with all clients

Open
#554 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

closable
Dominant language
Java
Stars
2k
Forks
1.3k
Avg merge
2d 59m
Merged PRs (30d)
16

Description

Hello,

After a several days of documentation studding I'd stuck with a following issue. In my dev environment I have Spring Cloud Config Server running inside Docker container. At bootstrap I populates several properties via -D.. argument as this one -Dspring.rabbitmq.host=192.168.99.100. The actual value is known only at config server side.

When I connect to the server from a client I don't see these values among clients global properties. As far as I understood from the documentation the only option is to add a global application.yml file to a shared file system of git repo.

But it doesn't solve an issue as only constant values are being shared then however I must share a value known only at config server side and it is not invariant.

Are there any way to address the issue w/o writing custom code?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue concerns Spring Cloud Config Server in a Docker container and properties supplied with a -D argument, with behavior observed by connected clients. Start by reviewing the Config Server and client documentation, then determine whether server-side runtime properties can be shared without a Git-backed global application.yml or custom code.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, spring, spring-boot
Domain
backend, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.