Commit Graph

290 Commits

Author SHA1 Message Date
Dave Syer
95bb1bf8ff Extract all dependencies to BOMs and upgrade Boot 2016-01-25 15:20:17 +00:00
Dave Syer
b70aae525a Add extra spring-cloud-*-dependencies BOMs 2016-01-25 14:12:47 +00:00
Dave Syer
834808d7ec Allow ciphers in overrides via escape of '{' 2015-12-18 10:14:45 +00:00
Steve West
a0e8338c38 Fix bug where prefix keys (e.g. {name: value}) are not stripped
Also removing extraneous post-decrypt stripPrefix which was masking the encrypt bug.

Fixes gh-272
2015-12-01 18:02:00 +00:00
Spencer Gibb
d202f53c69 Bumped to 1.0.4.BUILD-SNAPSHOT 2015-11-16 10:05:06 -07:00
Dave Syer
7b0fb5df5e Make timeout configurable
Fixes gh-225
2015-09-04 09:48:28 +01:00
Dave Syer
e1ebe46130 Make ghpages.sh work on a branch 2015-08-25 15:16:55 +01:00
Dave Syer
91b8eab027 Clarify some configuration in documentation
Some of the examples used to illustrate multi-git configuration
are apparently confusing. This change adds some clarification.

Fixes gh-213
2015-08-13 13:38:52 +01:00
Aizhan
54e279ad93 avoid throwing htpp 404 error 2015-08-12 09:11:01 -06:00
Dave Syer
d888333667 Add docs on config client retry
Fixes gh-199
2015-07-24 10:10:54 +01:00
Dave Syer
12384db4ea Fix sample JSON at end of quickstart
To avoid confusion, the git repository location now matches the one
in the server sample above.

Fixes gh-200
2015-07-24 09:40:32 +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
Dave Syer
232e450929 Correct user guide env->profile 2015-07-17 22:16:52 +01:00
Dave Syer
ec94a579f4 Synchronize access to code that deletes basedir on startup
When the first request comes in there is a potential race while the
basedir is prepared (if another request comes in at that crucial
time they collide). This change just synchronizes the method where
the basedir is prepared (it's a once only operation).

Fixes gh-187
2015-07-16 09:25:58 +01:00
Dave Syer
ca0c5ecf1b Add spring.cloud.config.server.git.timeout (default infinite)
Sets the undlerlying timeout for the HTTP/SSH connection if
applicable in JGit.

See gh-141
2015-07-13 11:53:44 +01:00
Dave Syer
7828a0ee5a Fix possible concurrent modification error in EnvironmentController
Fixes gh-180
2015-07-10 12:02:12 +01:00
Kees Koffeman
ccc44db8eb Search in ancestors for bean of type ConfigClientProperties
Before this change we check that it is there, then don't look in the
ancestors. A test would be useful.

Fixes gh-191
2015-07-10 11:53:40 +01:00
Dave Syer
1a0e6689dc Prepare master for next snapshot 2015-06-26 10:57:18 +01:00
Dave Syer
77b5598cf5 Fix location of asciidoc src code in README 2015-06-25 12:13:02 +01:00
Dave Syer
7437334d22 Add dependency management for starter 2015-06-25 11:39:13 +01:00
Dave Syer
059a2078f3 Revert "added optional spring-security-rsa"
This reverts commit 343d5e47ea.
2015-06-24 20:42:11 +01:00
Spencer Gibb
343d5e47ea added optional spring-security-rsa 2015-06-24 12:18:42 -06:00
Dave Syer
ce494fb053 Bump spring-security-rsa 2015-06-24 17:21:33 +01:00
Dave Syer
0834917275 Support for git labels with slashes ("/")
Spring MVC can't match a pattern with a slash in it so we support
a special character sequence "(_)" which is legal in a URL
but hopefully rare in a git label.

Fixes gh-154
2015-06-24 14:19:13 +01:00
Spencer Gibb
44fa832d3d add versions of spring-cloud-commons and spring-cloud-context
fixes gh-178
2015-06-23 13:18:32 -06:00
Dave Syer
22f241e342 Add spring.cloud.config.server.encrypt.enabled flag
So server can delegate decryption to the clients.

Fixes gh-162
2015-06-23 13:53:29 +01:00
Dave Syer
772fa118f3 Split up basedir.mkdirs() for Windows users
Fixes gh-173
2015-06-23 13:39:03 +01:00
Dave Syer
1504d6cb0c Provide options for key rotation and per-app cryptography
Cipher text (and plain text in the /encrypt endpoint) can now
carry a prefix of {name:value} pairs, all of which are passed
into the TextEncryptorLocator (instead of just the app name
and profiles).

The inputs are prepared symmetrically by the EncryptionController
(if used) and the EnvironmentEncryptor (used in the EnvironmentController).

Tidy up docs and add notes on keys.
2015-06-12 10:15:09 +01:00
Alex Corvino
fdf6689e90 Add option to clone repositories on start
On startup the server will clone all git repositories if the property
"spring.cloud.config.server.git.cloneOnStart" is set to true. If the
property is not set or is set to false then the server will behave
as it does currently.

Fixes gh-149
2015-06-10 09:33:47 +01:00
wojtkiewicz
14726f4964 added few missing tests for new endpoints in EncryptionController 2015-06-08 06:56:04 +01:00
Spencer Gibb
1f7d698897 Updated to reference new s-c-starter-config.
Updated versions of boot and s-c-starter-parent in example pom.xml.
2015-05-28 09:12:40 -06:00
Dave Syer
bb0aab0471 Rename to health.config.enabled
More consistent with other health inidicator flags.
2015-05-27 10:06:35 +01:00
Dave Syer
4bae50676a Add spring.cloud.config.health.enabled (default true)
Fixes gh-159
2015-05-27 09:52:15 +01:00
Dave Syer
2a0f73740a Make text encryptor configuration an autoconfig
So that it can be controlled with @ConditionalOnBean etc.
2015-05-26 16:54:57 +01:00
wojtkiewicz
7437cdef49 Introduce TextEncryptorLocator abstraction
Allows more customization of encryption and decryption stack. Should
be no change for existing users.

Fixes gh-124
2015-05-26 15:26:04 +01:00
Dave Syer
ce3a20d262 Allow label to be a comman-separated list on config client
The client will search through a list of labels until it finds one
that succeeds, otherwise fail.

Fixes gh-153
2015-05-19 12:51:10 +01:00
Dave Syer
891e928890 Extend NoSuchLabelException to SVN repository
See gh-153
2015-05-19 11:58:53 +01:00
Dave Syer
c685931308 Send 404 if Git label not found
See gh-153
2015-05-19 11:49:41 +01:00
Dave Syer
e94b4039a6 Strip "document" prefix from YAML by default
It's pretty uncommon for Spring apps, but sometimes YAML is not a
map, but more naturally a String or Collection. In these cases Spring
puts a "document" prefix in the Map it creates, so we can strip that
off if the user prefers it.

Fixes gh-143
2015-05-19 10:53:51 +01:00
Mikel Armañanzas
641d5b40e8 Fixing problem in windows loading files
Fixes gh-133, fixes gh-136, fixes gh-135
2015-05-06 06:47:24 -04:00
Spencer Gibb
fb1f28fb84 quote the cipher text
fixes gh-144
2015-05-05 09:41:44 -06:00
Spencer Gibb
242baae663 add a configurable health indicator for the Config Server
fixes gh-142
2015-05-04 13:32:51 -06:00
Dave Syer
98b64aa4cb If URI has no context path add one ("/")
Fixes gh-131
2015-04-29 11:38:00 +02:00
Dave Syer
5d1af78f91 Update to 1.0.2 snapshots 2015-04-23 11:11:21 +01:00
Dave Syer
a1cbf78188 Only enable retry if failFast=true 2015-04-21 08:41:29 +02:00
Dave Syer
5f379c0a62 Add support for retry in config client
If Spring Retry is on the classpath (and AspectJ) the config client
will create a proxy for the ConfigServerPropertySourceLocator that
retries a failed environment fetch. In this way the client can be
made to wait for the config server to come up, even if failFast=true.
(If failFast=false, the default, then it has no effect.)

Fixes gh-90, fixes gh-129
2015-04-21 08:20:07 +02:00
Dave Syer
5440d1d157 Add synchronized keyword to protect repository access
Fixes gh-128
2015-04-17 11:48:16 +01:00
Spencer Gibb
8c12408fba fixed typo
fixes gh-125
2015-04-13 08:06:54 -06:00
Dave Syer
280a7a2c09 Allow environment overrides to be escaped for placeholders
E.g. spring.cloud.config.server.overrides.foo=$\{bar} will evaluate
to foo=${bar} in the client's Environment (allowing local replacement
of the placeholder instead of on the configserver).
2015-04-03 10:32:41 +01:00
Dave Syer
91d12e7c56 Fix grammar 2015-03-31 10:55:41 +01:00