Describe the bug When trying to load a configuration file that references the configuration server itself, like this:
https://github.com/kevindeyne-ab/sample-config-repo/blob/fec316d2c010a28999eb91440a214613a8a0eece/bug/application-dev.yml#L4C1-L12C22
The config server will get busy (infinitely?) trying to load the config. This also stops other configurations from being server.
I do not think this kind of a configuration necessarily makes logical sense, but this scenario could happen realistically when a developer tries to move from an internal application.yml to a server based one, without removing the bootstrapping part. What caught me by surprise when it happened for us was that this killed the server from functioning as soon as the buggy config was touched, instead of throwing an error.
(in the above example, presuming the server is being run on localhost:8080)
This is applicable to spring-cloud-config-server 3.5.4.
Sample Here is a minimally reproducible scenario: https://github.com/kevindeyne-ab/selfref-config-server
- Checkout this repo
- mvn spring-boot:run
- Go to http://localhost:8080/works/dev and see the config server works and serves some configuration
- Go to http://localhost:8080/bug/dev and see it load forever
- Go to http://localhost:8080/works/dev and see that this is impacted as well