Commit Graph

122 Commits

Author SHA1 Message Date
Chase Diem
0abf2abdc7 Add connect time out setting for config client (#1403) (#1406) 2019-06-13 06:39:28 -04:00
Spring Operator
e230e0ea0b URL Cleanup (#1309)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 222 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-25 09:34:10 -04:00
Spencer Gibb
d54a441e05 Merge branch '2.0.x' 2019-02-08 16:26:36 -05:00
Alex Muthmann
7525e55611 Adds Accept header to ensure config client requests json
Fixes gh-1169
2019-02-08 14:38:49 -05:00
Marcin Grzejszczak
b1546c59ca Added checkstyle 2019-02-05 10:38:16 +01:00
Spencer Gibb
fdf72039af Actually remove @EventListener ;-) 2018-09-14 13:47:44 -04:00
Spencer Gibb
410b0ccc06 Moves away from @EventListener to SmartApplicationListener 2018-08-21 11:25:19 -04:00
Spencer Gibb
513353b8e7 Bumps to 2.1.0.BUILD-SNAPSHOT and updates for boot 2.1.0 2018-08-01 19:10:24 -04:00
Liu Bin
80fd0fa904 Log more detailed error info when failfast=true and error happened (#1082)
* when failfast=true, client can log detailed error info
2018-07-12 10:45:07 -04:00
Indraneel Bende
9ab7acaf6f Made RequestReadTimeout and whether to sendState configurable (#1034)
Made RequestReadTimeout and whether to send State configurable.
2018-06-13 16:55:39 -04:00
indraneelb1903
8940b0e26f Changes for High Availability for the config Server (#1017)
* Changes for High Availability for the config Server
2018-05-29 11:27:28 -04:00
Dana P'Simer
53da694260 Add code to replace '/' with '(_)' in labels (#999) 2018-05-08 07:25:48 -04:00
indraneelb1903
69d8bfc841 Changes to avoid IndexOutOfBoundsException when only one embedded Credential is present in the url. (#980)
* Changes to handle IndexOutOFBoundsException
2018-04-18 09:11:56 -04:00
Florian Hopf
94d9b39b42 tabs instead of spaces, checking for log level 2018-02-27 11:01:15 +08:00
Florian Hopf
c29eb7f7e3 extracted method, cleaned up imports 2018-02-27 10:19:43 +08:00
Florian Hopf
154ea3d476 Logging some information on property source 2018-02-26 15:28:35 +08:00
Spencer Gibb
a4717eee21 Make sure fail-fast property follows new boot 2.0 conventions 2018-01-18 11:19:37 -05:00
Spencer Gibb
6710237c10 polish 2018-01-17 16:24:39 -05:00
Spencer Gibb
fee1e87c5a Update tests for spring boot 2.0 compatibility 2017-09-26 16:31:00 -04:00
Dave Syer
95a5c950c7 Merge branch 'master' into 2.0.x
There are still issues with the encryptor in bootstrap mode.
2017-06-27 12:05:59 +01:00
Hanson, Tristan
566cb39428 Updating auto configuration to allow for overriding the ConfigServicePropertySourceLocator bean
Allow override of `ConfigServicePropertySourceLocator` bean to support the setting of a custom `RestTemplate` instance without the need to set `spring.cloud.config.enabled=false`

Fixes gh-699
Fixes gh-613
2017-05-23 14:41:34 -05:00
Dave Syer
d4bc8503a5 Fix all tests with Spring Boot latest snapshots 2017-05-12 17:45:42 +01:00
Dave Syer
1f9d6a5b3f Fix for new changes in Boot (mainly package changes in autoconfig) 2017-05-11 16:09:24 +01:00
Johnny Lim
295402481d Remove unreachable assertNull() 2017-04-14 13:50:57 +09:00
Mathieu Ouellet
45336cd11f Add headers configuration property
This commit provides an alternative implementation for creating
config client request using the headers config prop instead
of having to create custom 'RestTemplate' when adding header to
the request.

See discusions at gh-650

Not covering gh-613
2017-04-05 18:30:25 -06:00
Nastya Smirnova
3abc1ab84c Makes fetching of config server from Eureka retryable
Makes fetching of config server from Eureka retryable, adds support for failfast

Retry requires spring-retry to be on the classpath.
2017-03-24 16:14:51 -04:00
Spencer Gibb
9094984b76 Ensure explicit password takes precedence.
fixes gh-622
2017-02-01 15:15:11 -07:00
Ryan Baxter
5ebecb60b4 Removed OrderedEnvironmentRepository interface, and applied other review feedback. 2016-12-20 13:46:46 -05:00
Ryan Baxter
133c172ddd Allows users to provide composite environments. Fixes #495. 2016-12-19 12:28:41 -05:00
Spencer Gibb
b155a1d58b Cache config client health indicator.
So config server isn't bombarded with requests.
2016-10-13 09:10:32 -06:00
Spencer Gibb
53e1f4408f Guard for when result.getPropertySources() is null.
fixes gh-488
2016-08-25 11:32:01 -06:00
Spencer Gibb
e431d636f7 formatting 2016-08-19 13:10:09 -06:00
Marcello de Sales
41db12cf7c Alternative implementation of Source Locator: Authorization
This commit adds the Cloud Config Property "authorization", as the HTTP
Authorization header to connect to the client. Users won't be able to
set both the "password" and "authorization" at the same time.

When set, the client will use the value to create a generic
Authorization header with the value provided.

Fixes gh-474
2016-08-18 17:06:13 +01:00
Dave Syer
e1fcd3000a Update to Boot 1.4 test utils 2016-08-18 16:44:57 +01:00
Marcos Barbero
8feec99600 Inject Environment into health indicator
Fixes gh-457, fixes gh-456
2016-07-28 16:24:32 +01:00
Spencer Gibb
753db0ed22 Implement VaultEnvironmentRepository.
This is an alternative to VCS or file based repository implementations.

All properties are stored ecrypted in vault, regardless of whether or
not that actaully need to be encrypted.

Supports properties style (this.is.a.property) or vault nested
properties.

Adds a watch to client and server, if enabled, the client will long poll
the server and wait for changes rather than relying on a message broker
to send change events.

Adds a server side watch for consul keys, this is useful when vault is
backed by consul (and currently the only use case, since there is not a
consul repository implementation).

Closes gh-397
2016-07-01 11:29:29 -06:00
Dave Syer
898561a258 Add listener for HearbeatEvent in discovery client config boostrap
The HeartbeatEvent can tell us when the config server might have moved,
so we listen for it and refresh the configuration if there is a
change in the service catalog. On startup if there is a retry
configured it will catch the change. After that the app has to be
/refresh'ed to propagate the change to the environment.

Fixes gh-400
2016-05-17 15:47:04 +01:00
Spencer Gibb
0d49c9a12e Change default config server id to lowercase.
All caps is a holdover from eureka, but eureka query is case insensitive.

This helps case sensitive service registries like consul and zookeeper.
2016-04-04 11:51:04 -06:00
Spencer Gibb
e9d3db4ac6 Move o.s.c.util to o.s.c.commons.util 2016-03-02 10:20:48 -07:00
Dave Syer
df8d14934d Improve diagnostics for missing config server 2016-02-23 16:19:09 +00:00
Dave Syer
320e082fe4 Add additional test for config server bootstrap 2016-01-25 11:18:00 +00:00
Dave Syer
ce44a04030 Move generic config server discovery to spring-cloud-config
Fixes gh-302 (spring-cloud-consul and -zookeeper my still need
to add some bootstrap config to ensure that the DiscoveryClient
is available in bootstrap context).
2016-01-25 11:02:27 +00:00
Dave Syer
25b24e6406 Add some docs for config properties 2015-12-30 15:06:18 +00:00
Dave Syer
e9ef01bb95 Compiler warnings 2015-11-02 15:05:50 +00:00
Spencer Gibb
5ceca18292 Add version to environment response
Users see it logged by the config client, and it appears in the
Environment response from the config server. It's hard to add it
to the /env endpoint without some extension points in Boot.

Fixes gh-244, fixes gh-245
2015-10-02 11:40:22 +01:00
Dave Syer
92cc01c029 Add INFO logging for config server URL in client
Fixes gh-232
2015-09-23 10:34:34 +01:00
Dave Syer
a964a2840a Fix typo 2015-08-14 11:11:31 +01:00
Aizhan
4aaf8cd188 avoid throwing htpp 404 error 2015-08-12 09:06:25 -06:00
Dave Syer
72096d7357 Replace spring.config.retry -> spring.cloud.config.retry
Fixes gh-197
2015-07-21 09:19:49 +01:00
Glenn Renfro
54f76bc2fd GH-193 logs warning if failFast is false
ConfigServicePropertySourceLocator should log a warning and not an error if failFast is false
2015-07-18 09:59:53 +01:00