Commit Graph

1017 Commits

Author SHA1 Message Date
buildmaster
c3a093e02a Update SNAPSHOT to Greenwich.M1 2018-09-21 19:45:51 +00:00
Spencer Gibb
9bdc70c8ed Merge branch '2.0.x' 2018-09-17 16:04:53 -04:00
Juan Pablo Santos Rodríguez
226358e553 Gitea and Gogs support + [Github|Gitlab|Gitee]PropertyPathNotificationExtractor refactor (#1140)
(new, clean PR from required changes on [#1120](https://github.com/spring-cloud/spring-cloud-config/pull/1120#issuecomment-419998469), also having a clean history for merge)

Following the spring-cloud#1003 PR, I went on a likewise PR to add support for [Gitea](https://gitea.io), a Gogs fork.

On that PR there's a comment asking for a small refactor regarding Github and Gitlab PropertyPathNotificationExtractors so, given the reduced scope of the change, also went for it. As spring-cloud#1003 also includes the appropiate files for Gogs support, I also threw them in. And, likewise, GiteePropertyPathNotificationExtractor's spring-cloud#1107 PR.

So this PR ended up having:
* `[Github|Gitlab|Gitee]PropertyPathNotificationExtractor` common behaviour refactored into a `BasePropertyPathNotificationExtractor` class
* spring-cloud#1003 PR (Gogs support), refactored to reuse the `BasePropertyPathNotificationExtractor` class
* spring-cloud#1107 PR (Gitee using webhook contents as PropertyPathNotification), refactored to reuse the `BasePropertyPathNotificationExtractor` class
* Gitea support, using the `BasePropertyPathNotificationExtractor` class

I've mantained author tags on files regarding those PRs, in order to respect code authorship as much as possible (if there's anything missing, I'll gladly add whatever commits necessary). Also, as Github notes that those PRs are already mergeable, their corresponding authors must've signed the corresponding ICLAs, I assume this PR should be safe to merge.


best regards,
juan pablo
2018-09-17 16:01:58 -04:00
Ryan Baxter
aee1ae1b5c Merge remote-tracking branch 'origin/2.0.x' 2018-09-17 10:32:45 -04:00
Ryan Baxter
8ecc20e119 Merge remote-tracking branch 'origin/1.4.x' into 2.0.x 2018-09-17 10:32:13 -04:00
Lukáš Vyhlídka
80f98c387a Fix branch not to be updated when refreshRate used (#1136) (#1138) 2018-09-17 09:49:08 -04:00
Larry Ogrodnek
35d176e56f #974 remove one or two escapes for supporting JSON (#982)
Hi.  This is an attempt to fix #974 (cc @ryanjbaxter )

As mentioned previously in the ticket, the original code tries to mask out escaped variables (i.e. `\${hello}`) before performing replacement, and then finally removing the escapes before returning.  

This works fine for .yaml or .properties, but not for JSON.

The jackson serialization that happens before the property resolution ends up adding an extra `\` (so that the JSON is well-formed) [EnvironmentController.labelledJsonPropertes](https://github.com/spring-cloud/spring-cloud-config/blob/master/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentController.java#L169).

I've updated the `resolverPlaceholders` to accept one or two escapes (`\` or `\\`).

I realize this will now treat `\\` as an escape in yml or properties, which may be unintended, but seems unlikely.

An alternative might be to add a flag to this method to indicate whether or not to allow double escape, and updating the `labelledJson` method to pass the flag?

I'm open to any feedback on this approach or another.

Thanks!
2018-09-17 09:36:50 -04:00
Spencer Gibb
fdf72039af Actually remove @EventListener ;-) 2018-09-14 13:47:44 -04:00
Victor Maevskiy
eb36402b40 Fix typo in 'keytore' (#1130)
Fixed the typo from 'keytore' to 'keystore'
2018-09-12 09:48:56 -04:00
Johnny Lim
f7fa6dde60 Remove @ResponseBody when using ResponseEntity (#1125) 2018-09-04 09:55:08 -04:00
Joël
4ee026b03d Add too weak custom encryption exception (#1119)
* Add too weak custom encryption exception
2018-08-28 13:45:58 -04:00
Johnny Lim
d6688745d4 Remove redundant words in doc (#1117) 2018-08-28 09:36:42 -04:00
Spencer Gibb
410b0ccc06 Moves away from @EventListener to SmartApplicationListener 2018-08-21 11:25:19 -04:00
Charl Victor
9fffd0e6dc add more documentation around not using application as a prefix for your spring boot application name (#1106)
fixes gh-673
2018-08-13 07:52:41 -04:00
ramaiahkk
306e018691 #1103 java.lang.NullPointerException (#1104)
java.lang.NullPointerException while decrypting due to value is null and still looking for cipher string. #1103
2018-08-06 12:51:43 -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
Mark Paluch
0395ad06cb Omit secret backend URL encoding for Vault. (#1098)
We now construct the URL template from the base URL, API version prefix and secret backend upfront and apply templating only for the secret key. This bypasses URL encoding for the secret backend which allows for special characters such as slashes to be passed thru directly.

Fixes gh-1094.
2018-08-01 13:46:21 -04:00
buildmaster
53b22b6ec3 Bumping versions to 2.0.2.BUILD-SNAPSHOT after release 2018-07-31 18:43:22 +00:00
buildmaster
602c786639 Going back to snapshots 2018-07-31 18:43:21 +00:00
buildmaster
85029323f7 Update SNAPSHOT to 2.0.1.RELEASE 2018-07-31 18:41:51 +00:00
Ryan Baxter
c5a375761b Merge remote-tracking branch 'origin/1.4.x'
# Conflicts:
#	docs/pom.xml
#	pom.xml
#	spring-cloud-config-client/pom.xml
#	spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocatorTests.java
#	spring-cloud-config-dependencies/pom.xml
#	spring-cloud-config-monitor/pom.xml
#	spring-cloud-config-sample/pom.xml
#	spring-cloud-config-server/pom.xml
#	spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/ssh/SshUri.java
#	spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/ssh/PropertyBasedSshSessionFactoryTest.java
#	spring-cloud-starter-config/pom.xml
2018-07-30 20:16:35 -04:00
Ryan Baxter
41130f3251 Bump versions of commons and bus in config 2018-07-30 20:10:58 -04:00
Tomasz Juchniewicz
3aaf6ea0b8 Log exception when server health check fails (#1092)
Fixes gh-1091
2018-07-20 10:34:06 -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
Dylan Roberts
02ae15c3b9 Configure httpclient instances to use jvm http proxy (#1077)
Httpclient instances were ignoring http proxy settings set with system properties
gh-1071
2018-07-10 13:56:56 -04:00
buildmaster
c42c3c27ae Bumping versions to 1.4.5.BUILD-SNAPSHOT after release 2018-06-28 20:06:20 +00:00
buildmaster
3c3985e1f3 Going back to snapshots 2018-06-28 20:06:19 +00:00
buildmaster
76188d4461 Update SNAPSHOT to 1.4.4.RELEASE 2018-06-28 20:02:38 +00:00
Ryan Baxter
f0f162e94d Updating versions and fixing tests. 2018-06-28 15:52:54 -04:00
bisigc
496412bd8e Adding ssh proxy capability (#1054)
Adding the capability to configure a proxy host and port for ssh git
repo connections.
2018-06-27 09:56:30 -04:00
buildmaster
5ff3f0d698 Bumping versions to 2.0.1.BUILD-SNAPSHOT after release 2018-06-18 18:04:11 +00:00
buildmaster
55df651837 Going back to snapshots 2018-06-18 18:04:10 +00:00
buildmaster
f266d9581c Update SNAPSHOT to 2.0.0.RELEASE 2018-06-18 17:53:04 +00:00
Ben Klein
e1dcec0f1d Document Git, Vault 'skipSslValidation', 'timeout' (#1067) 2018-06-14 18:56:03 -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
Ben Klein
d136aea540 Add docs for HTTP(S) proxy server configuration (#1063)
* Add docs for HTTP(S) proxy configuration

* Docs on composite: Vault token is always required
2018-06-13 16:37:25 -04:00
Greg Jacobs
97bd640f94 Adding support for Bitbucket Server headers (#1046) 2018-06-13 11:24:32 -04:00
Spencer Gibb
f352ecf5f3 Adds multi-repo shortcut support back.
fixes gh-1055
2018-06-11 13:14:38 -04:00
Ryan Baxter
247e280410 Merge remote-tracking branch 'origin/1.4.x' 2018-06-07 19:48:09 -04:00
Ryan Baxter
dbf29ad12c Added spring boot autoconfigure processor 2018-06-07 19:47:28 -04:00
Ben Klein
76226052b1 Update docs on composite environment repositories (#1041)
Fixes #116 and fixes spring-cloud/spring-cloud-config/issues/933
2018-06-07 15:35:53 -04:00
Spencer Gibb
20b88b5b5f Checks for null uri to avoid NPE
fixes gh-1051
2018-06-07 13:06:06 -04:00
Dylan Roberts
b0433ba689 Add connect timeout support to HttpClientSupport (#1040)
gh-1033
2018-06-06 10:22:06 -04:00
Spencer Gibb
4896a22e27 Updates to s-c-build 2.0.2.BUILD-SNAPSHOT 2018-06-05 15:38:18 -04:00
Dylan Roberts
cf6b1f0a49 Update custom jgit connection factory for uri placeholders (#1037)
Fixes gh-1028
Fixes gh-1032
2018-06-04 19:20:43 -04:00
Haroun Pacquée
e6b2d9eec0 Added support for Vault's 0.10.0+ versioning enabled kv engine. (#1018) 2018-06-04 17:13:27 -04:00
Ryan Baxter
b10135c1ee Fixing compile errors after merge 2018-06-04 13:56:16 -04:00
Ryan Baxter
e96e246636 Merge remote-tracking branch 'origin/1.4.x' 2018-06-04 11:37:43 -04:00
Ryan Baxter
648f8ff313 Merge remote-tracking branch 'origin/1.3.x' into 1.4.x 2018-06-04 11:28:21 -04:00
Ryan Baxter
484b74b4ed encrypt.* properties should be in bootstrap.yml not application.yml. Fixes #895. 2018-06-04 11:26:56 -04:00