Commit Graph

739 Commits

Author SHA1 Message Date
buildmaster
6535ef2f58 Update SNAPSHOT to 3.1.2 2022-04-26 15:50:33 +00:00
Benjamin Einaudi
cd08473884 [spring-cloud-config] Allow to use other scheme proxy when only one proxy is configured (#2049)
Allow to specify 'http' proxy for both protocols and viceversa

Close #2048
2022-04-07 15:32:19 -04:00
buildmaster
1cd03a05fb Going back to snapshots 2022-03-31 21:49:34 +00:00
buildmaster
213e35622a Update SNAPSHOT to 4.0.0-M2 2022-03-31 21:46:51 +00:00
buildmaster
488b5181a4 Bumping versions 2022-03-08 02:41:11 +00:00
Benjamin Einaudi
0021fd14bd [config-server] Allow specification of down health status (#2056)
Allow developer to set the property 'spring.cloud.config.server.health.down-health-status' to a custom value
2022-03-07 17:10:06 -05:00
marnee01
7f83b1f547 Add support for multiple-url-strategy configuration for clients. (#1946)
* Add support for multiple-url-strategy configuration for clients.

Add support for new property spring.cloud.config.multiple-uri-strategy.
The value must be one of: always, connection_timeout_only. The default
value is connection_timeout_only. This default setting maintains existing
behavior.

If a client has multiple URLs in the spring.cloud.config.uri property,
and if multiple-uri-strategy is set to "always", then if the client gets
any error from config server whatsoever or gets no response, the client
will try the next URL in the list.

The existing and default behavior is that the other URLs in the list will be
tried only if and when the client receives no response from config server.

This is mainly to allow for a client failing over to secondary URLs when
it receives a 404 due to config server being unable to reach its git server
(and config server does not have the requested configs in its local git cache).
With the default behavior, the client receives a 404 and never tries the
next URL in the list(which might point to a different git server that is
currently up). Another benefit is that it allows for a client failing over
to a secondary config server if the first one returns a 503 (OUT_OF_SERVICE).

Fixes gh-1845.

* Fix code style after committing change for gh-1845.

* Fix support for multiple-url-strategy configuration for clients.

Fix issue with the new multiple URI strategy behavior.
Even when strategy was ALWAYS, the client would not try
the next URL when it received server-side errors. Fixed
this by adding HttpServerErrorException to catch clause
in ConfigServicePropertySourceLocator.

Also, fix code style issues and add unit tests.
Fix existing fail-fast unit tests that were not correct.
(They were not mocking out raw status code method on
the response. The error thrown back was actually due to
RestTemplate.handleResponse being unable to to map raw
status code 0 to an HttpStatus.)

* Fix support for multiple-url-strategy configuration for clients.

Merge with dev and undo unintentional changes that were
done automatically. This is part of the pull request
fixing gh-1845.

* Fix support for multiple-url-strategy configuration for clients.

Update ConfigServerConfigDataLoader to try multiple URLs
even for server-side errors when strategy is ALWAYS. This was
missed in previous commit. This is part of the pull request
fixing gh-1845.

* Add ConfigServerConfigDataLoaderTests.

When ConfigServerConfigDataLoader was originally introduced
for the new Spring Boot 2.4 way to import configuration data
(https://github.com/spring-cloud/spring-cloud-config/pull/1656/files),
no unit test was added. I needed to add tests to cover changes
made for the new MultipleUriStrategy (gh-1845). I copied
tests from ConfigServicePropertySourceLocatorTests and modified
as needed for the new class. (There were 2-3 test cases from
ConfigServicePropertySourceLocatorTests that I did not
copy over because it wasn't clear to me expected behavior
or how to set up test case).

This is part of the pull request fixing gh-1845.

* Update the default for multiple-uri-strategy to ALWAYS.

(Per code review.) This is part of the pull request fixing
gh-1845.

* Update documentation for the new multiple-uri-strategy property.

Also, add documentation comparing behavior of multiple URLs
under spring.cloud.config.uri versus multiple URLs under
spring.config.import.

This is part of the pull request fixing gh-1845.

Co-authored-by: UPINCMA <marnee.derider@pearson.com>
2022-03-07 17:07:41 -05:00
Benjamin Einaudi
4ae403148e [spring-cloud-config] Allow to use other scheme proxy when only one proxy is configured (#2049)
Allow to specify 'http' proxy for both protocols and viceversa

Close #2048
2022-02-22 15:42:10 -05:00
buildmaster
5e60c254d2 Bumping versions to 3.1.2-SNAPSHOT after release 2022-02-17 16:46:14 +00:00
buildmaster
3ecceb1276 Going back to snapshots 2022-02-17 16:46:14 +00:00
buildmaster
b40c219c57 Update SNAPSHOT to 3.1.1 2022-02-17 16:43:03 +00:00
buildmaster
a3b9fdfb7c Going back to snapshots 2022-01-27 21:43:57 +00:00
buildmaster
4505c189c3 Update SNAPSHOT to 4.0.0-M1 2022-01-27 21:41:23 +00:00
Ryan Baxter
49f58860c6 Merge branch '3.1.x' 2022-01-25 19:16:38 -05:00
Ryan Baxter
3268687b6f Merge branch '3.0.x' into 3.1.x 2022-01-25 19:16:14 -05:00
Kamalakar Ponaka
099d885176 Documentation update for Vault Backend (#2042)
* Documentation update for Vault Backend 

Documentation update for Spring Cloud Config Server using the Vault Backend (Add spring-vault-core lib)
https://github.com/spring-cloud/spring-cloud-config/issues/2041

* Documentation update for Vault Backend

Documentation update for Spring Cloud Config Server using the Vault Backend (Add spring-vault-core lib)
https://github.com/spring-cloud/spring-cloud-config/issues/2041
2022-01-25 19:15:03 -05:00
Ryan Baxter
56144682d5 Merge branch '3.1.x' 2022-01-11 09:38:43 -05:00
Ryan Baxter
ddf7cb10b4 Merge branch '3.0.x' into 3.1.x 2022-01-11 09:38:25 -05:00
hyness
a3789a2ef8 AWS S3 configuration documentation lists incorrect properties (#2027)
Fixes gh-2026
2022-01-11 09:27:14 -05:00
spencergibb
fda8368355 Updates to 4.0.0-SNAPSHOT
Updates for java 17, framework 6, boot 3 and javax->jakarta
2022-01-04 11:38:09 -05:00
buildmaster
08973e65dc Bumping versions to 3.0.7-SNAPSHOT after release 2021-12-15 16:51:44 +00:00
buildmaster
12349fef16 Going back to snapshots 2021-12-15 16:51:43 +00:00
buildmaster
778368eeb1 Update SNAPSHOT to 3.0.6 2021-12-15 16:49:37 +00:00
buildmaster
a8f6955495 Bumping versions 2021-12-02 20:49:15 +00:00
buildmaster
119425734e Bumping versions 2021-12-01 20:49:43 +00:00
buildmaster
58a92079eb Bumping versions to 3.1.1-SNAPSHOT after release 2021-12-01 18:26:47 +00:00
buildmaster
c53e703a2d Going back to snapshots 2021-12-01 18:26:46 +00:00
buildmaster
8e927ed0f1 Update SNAPSHOT to 3.1.0 2021-12-01 18:22:48 +00:00
spencergibb
eea5fe903f Merge branch '3.0.x' 2021-11-23 16:35:51 -05:00
spencergibb
1ffe015a33 Adds a note about actuator and config server.
Fixes gh-1979
2021-11-23 16:35:28 -05:00
Ryan Baxter
38a09020e5 Moves default label to main with fallback to master (#1998)
* Moves default label to main with fallback to master.  Fixes #1722
2021-11-17 09:46:16 -05:00
buildmaster
77fe396d66 Going back to snapshots 2021-11-03 11:21:13 +00:00
buildmaster
e28ddeb84e Update SNAPSHOT to 3.1.0-RC1 2021-11-03 11:19:23 +00:00
Anbu Sampath
6ce8552814 Attempt Fix doc (#1991)
Document seems not rendering properly after AWS Secrets Manager section

Co-authored-by: Sampath, Anbu <Anbu_Sampath@comcast.com>
2021-10-25 10:58:53 -04:00
buildmaster
17d569605e Going back to snapshots 2021-10-20 02:08:10 +00:00
buildmaster
bbc6ecb40d Update SNAPSHOT to 3.1.0-M3 2021-10-20 02:06:02 +00:00
buildmaster
916f5e93e5 Going back to snapshots 2021-10-01 16:58:19 +00:00
buildmaster
0f94a44650 Update SNAPSHOT to 3.1.0-M2 2021-10-01 16:56:31 +00:00
buildmaster
dea6e10c61 Bumping versions to 3.0.6-SNAPSHOT after release 2021-09-21 14:30:23 +00:00
buildmaster
e6aa33a1da Going back to snapshots 2021-09-21 14:30:23 +00:00
buildmaster
a16e447407 Update SNAPSHOT to 3.0.5 2021-09-21 14:27:28 +00:00
Ryan Baxter
116bcef709 Merge branch '3.0.x' into main 2021-09-02 12:57:23 -04:00
Ryan Baxter
282efbe36c Add documentation for spring.cloud.config.server.failOnCompositeError. Fixes #1929 2021-09-02 12:56:55 -04:00
buildmaster
1f71006382 Going back to snapshots 2021-07-30 18:01:27 +00:00
buildmaster
982ef70580 Update SNAPSHOT to 3.1.0-M1 2021-07-30 17:59:34 +00:00
spencergibb
5635b74c4a formatting 2021-07-27 17:55:53 -04:00
Iulian Antohe
39cb1a2104 Add support for the AWS Systems Manager Parameter Store
Fixes gh-1598
Fixes gh-850
2021-07-27 17:51:07 -04:00
tejas-pandilwar
523caa83f9 Integration with AWS Secrets Manager (#1638)
EnvironmentRepository for AWS Secrets Manager

Co-authored-by: Tejas Pandilwar <tejas.pandilwar@gs.com>
Co-authored-by: Spencer Gibb <sgibb@pivotal.io>
2021-07-27 16:23:47 -04:00
spencergibb
cd73feaa0a Updates version to 3.1.0-SNAPSHOT 2021-07-09 14:05:02 -04:00
Ryan Baxter
b1e795d8d1 Make it explicit that an optional prefix is needed for discovery first. Fixes #1897 2021-06-02 12:36:40 -04:00