Commit Graph

299 Commits

Author SHA1 Message Date
Ryan Baxter
d9b8562348 Merge branch '3.1.x' 2022-09-27 19:38:50 -04:00
Ryan Baxter
11e213c71c Clarify where to set encrypt.key. Fixes #2164 2022-09-27 19:38:25 -04:00
Ryan Baxter
c567f3c4b1 Merge branch '3.1.x' 2022-07-15 17:18:45 -04:00
Kaveh Shamsi
b202ce0234 Replaces Jsch with Apache MINA in config-server (#2122) 2022-07-15 16:51:03 -04:00
Marcin Grzejszczak
7c117c0425 First pass on observation (#2081)
* First pass on observation

* Polished tests

* Moved tests to observation registry tests

* Polish

* Adds required Aspect.class to ObservationConfiguration

* Moved away from AOP

* Updated the code to use the ObservationConvention mechanism

* Updated code

* Prepared observation tests

* Polish

* Aligned against latest milestones

Co-authored-by: spencergibb <sgibb@pivotal.io>
2022-07-12 11:24:05 +02:00
buildmaster
58e0b077fb Bumping versions 2022-07-08 02:52:19 +00:00
buildmaster
f9a811cc74 Bumping versions 2022-06-30 00:30:05 +00:00
Ryan Baxter
399c9ec6b4 Moves to aws sdk v2. (#2111)
* Moves to aws sdk v2.  Fixes #2038 and #2106
2022-06-16 15:02:01 -04: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
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
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
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
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
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
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
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
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
spencergibb
e9fa34032b Adds support for retry in profile specific properties.
in application-<profile>.{properties|yaml}

spring.config.import=configserver:http://configserver.example.com?fail-fast=true&max-attempts=10&max-interval=1500&multiplier=1.2&initial-interval=1100"

This required that the RetryTemplate be created as late as possible and it is no longer put in the bootstrap context. A RetryTemplateFactory was created so the LoaderInterceptor and the ConfigServerInstanceProvider can create a RetryTemplate. ConfigServerConfigDataLocationResolver creates RetryProperties from the url parameters if they are provided.

ConfigServerConfigDataLoader now creates a ConfigClientFailFastException and registers it in the application context rather and returns an empty ConfigData rather than throwing and exception. Then in ConfigClientAutoConfiguration an ApplicationStartedEvent is listened for and if the fail fast exception is there, throws it halting execution. This all allows logging in ConfigData to show.

Fixes gh-1797
2021-05-26 11:31:03 -04:00
Ryan Baxter
9c695648be Update documentation around discovery first lookup (#1865)
* Added warning to documentation
2021-04-19 14:56:48 -04:00
Ryan Baxter
cbc0bbcada Merge branch '2.2.x' 2021-04-14 15:58:03 -04:00
Ryan Baxter
4f31cc8739 Add documentation on how to enable WebClient for discovery bootstrap. Fixes #1862 2021-04-14 15:57:34 -04:00
Ryan Baxter
e07a7e8fad Clarify DiscoveryClient usage for config server location needs bootstrap. Fixes #1854 2021-04-01 10:28:06 -04:00
spencergibb
8b0df606b1 Merge branch '2.2.x' 2021-03-31 10:52:29 -04:00
Eric Siber
0e361a3d87 Fixes documentation bad reference to URL placeholder
Fixes gh-1830
2021-03-31 10:52:02 -04:00
spencergibb
81585fe09e Merge branch '2.2.x' 2021-03-29 17:02:35 -04:00
Eugene
4fc9696060 Updates case of property in documentation
Fixes gh-1840
2021-03-29 16:27:25 -04:00
Ryan Baxter
39cb3b2c68 Merge pull request #1817 from wind57/fix-1816
Add api examples
2021-03-08 15:08:27 -05:00
Eugene
0e316fe487 revert the previous changes 2021-03-03 14:50:34 -04:00
Eugene
3de6045395 minor additions 2021-03-03 14:45:57 -04:00
Olga Maciaszek-Sharma
c82b120edf Merge pull request #1810 from spring-cloud/add-spring-boot-config-info-to-quickstart
Add Spring Boot config data import to quiskstart.
2021-03-03 11:34:57 +01:00
Eugene
2731ba12bf fix documentation bug 2021-03-01 22:51:47 -05:00
Eugene
bd152d28dd fix documentation bug 2021-03-01 17:46:57 -05:00
Olga MaciaszekSharma
442c4e5d39 Fix after review. 2021-02-26 18:32:04 +01:00
Olga MaciaszekSharma
d8e7d02e48 Add Spring Boot config data import to quiskstart. 2021-02-26 18:03:40 +01:00
buildmaster
f1ab6d442f Going back to snapshots 2021-02-11 13:53:28 +00:00
buildmaster
ce0cd0125c Update SNAPSHOT to 2.2.7.RELEASE 2021-02-11 13:50:56 +00:00
Mauro
13b9030e0f Update AWS CodeCommit repo pattern (#1719)
Update AWS CodeCommit repo pattern so it's more clear that it needs the protocol (https) and that the path for repository includes /v1/repos/".
2021-01-11 17:15:09 -05:00
spencergibb
6266789fd7 Merge branch '2.2.x' 2021-01-11 15:32:06 -05:00
choubani amir
c7dc612890 Update spring-cloud-config.adoc
Spelling error.

Fixes gh-1779
2021-01-11 15:31:00 -05:00
buildmaster
8c5a01abf7 Bumping versions 2020-11-19 09:59:09 +00:00