Commit Graph

472 Commits

Author SHA1 Message Date
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
0850de9737 Revert to snapshots 2016-06-30 07:57:17 -07:00
Dave Syer
82b44fe333 Bump to 1.1.2.RELEASE 2016-06-30 07:57:17 -07:00
jarrad
c700983281 Update spring-cloud-config.adoc (#433)
Fix typo "fro mthe" -> "from the"
2016-06-29 11:40:58 -06:00
Spencer Gibb
a424690962 Documents /tmp cleanout workaround.
fixes gh-424
2016-06-27 15:19:29 -06:00
Matt Benson
c57b5c4e5c using array index properties, e.g. YAML arrays
(at least with a single element), causes the existing array value
to be modified; guard the static array from accidental modification

Fixes gh-422
2016-06-22 09:00:43 +01:00
Dave Syer
c0b148e370 Consult defaultLabel before generating actual config properties
Fixes gh-414
2016-06-11 10:51:02 +01:00
Dave Syer
3d4f454929 Update README 2016-06-11 10:49:52 +01:00
Dave Syer
be4cc1b051 Update readme script to handle local includes 2016-06-11 09:54:41 +01:00
Dave Syer
ccd3ea6498 Update README 2016-06-09 17:31:20 +01:00
Ashish Jain
57103d3607 Fixed typo in documentation, from spring.active.profiles to spring.profiles.active (#415) 2016-06-07 15:49:52 -06:00
Spencer Gibb
de732ec6c4 Update boot and cloud versions for quickstart 2016-06-06 18:28:19 -06:00
Spencer Gibb
19921d4a1d Update to SNAPSHOT 2016-06-06 18:27:03 -06:00
Spencer Gibb
110755c493 Update SNAPSHOT to 1.1.1.RELEASE 2016-06-06 18:12:31 -06:00
Spencer Gibb
e8ff115ade Move bus version property 2016-06-06 17:49:04 -06:00
Dave Syer
90756df2d4 Update tp mvn 3.3.9 2016-06-04 09:14:34 +01:00
Spencer Gibb
2670aaaf24 Merge pull request #411 from sprgn/master
* pull411:
  Added subversion fallback to working copy.
2016-06-03 14:32:30 -06:00
sprgn
eb6ff9840b Added subversion fallback to working copy.
Fallback to working copy of already checkedout repo when/if subversion server becomes unavailable.  Similar functionality alreay exists with git repository.
2016-06-03 14:32:19 -06:00
Daniel Frey
2323878eaa Added override handling of arrays/maps in properties and yaml endpoints
fixes #385
2016-06-01 13:05:46 +01:00
Dave Syer
7430e7deda Make the startup of application context quieter
Every app that requests config from the server starts a mini
application context. We can make it a bit less verbose by
shutting off the startup info logger in the SpringApplication.
2016-06-01 11:41:31 +01:00
Iván Corrales
ba303fd0aa Support for applications with hyphen in name
Formerly the .properties, .json and .yml endpoints did not accept
requests for application names with hyphens. This change makes
hyphens legal in application names, but still illegal in profile
names (you have to pick one).

Fixes gh-384
2016-05-24 09:08:51 +01: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
Dave Syer
8bff9d2649 Re-instate .settings.xml for Travis 2016-05-12 11:34:25 +01:00
Dave Syer
0122b9461f Update README and remove .settings.xml where appropriate 2016-05-12 10:47:36 +01:00
Dave Syer
2840887da8 Revert to snapshots 2016-05-10 16:46:56 +01:00
Dave Syer
89b72f0e0f Update for 1.1.0.RELEASE 2016-05-10 16:42:36 +01:00
Dave Syer
79fc0ee319 Fix whitespace in POM 2016-05-09 09:47:00 +01:00
Dave Syer
10fc5f6e54 Fix dependency order to nail spring-core version 2016-05-09 09:33:52 +01:00
Dave Syer
37cf7e07fd Add explicit release disabled flag for artifactory for plugins 2016-05-06 18:09:41 +01:00
Dave Syer
041f35c627 Add explicit release disabled flag for artifactory in dependencies 2016-05-06 17:58:44 +01:00
Dave Syer
6b106ff54b Add explicit release disabled flag for artifactory 2016-05-06 17:47:14 +01:00
Dave Syer
9d64a12292 Switch parent of docs poms 2016-05-06 17:40:09 +01:00
Dave Syer
2c54239a94 Update parent to 1.1.0.RELEASE 2016-05-06 17:13:33 +01:00
Spencer Gibb
134379f473 Fix typo 2016-05-05 12:37:47 -06:00
Dave Syer
deddfb6881 Add tip about git config --global 2016-05-05 09:31:53 +01:00
Dave Syer
668f06196e Add more docs for YAML and properties formats
Fixes gh-348
2016-05-05 09:24:13 +01:00
Dave Syer
984cc5b885 Fix bug in request handling
For some reason path info is always null(?), so the way to get the
resource path is to use request.getRequestURI().
2016-05-03 09:12:25 +01:00
Spencer Gibb
7dc7de8357 Update eureka first bootstrap documentation to be discovery first bootstrap since this works with eureka and consul. 2016-05-02 11:01:35 -06:00
Spencer Gibb
95a7532092 polish 2016-05-02 11:00:12 -06:00
Dave Syer
a121668b92 Simpler handling of request path matching
The residual path can easily be dug out of the request using
substring, so that seems simpler.
2016-04-26 12:31:02 +01:00
Matt Benson
477ee0d42a Allow ResourceController to handle resource paths of arbitrary depth
File paths with slashes seem reasonable, so this change adds support
for those. Unfortunately, but unavoidably this requires some
manipulation of the servlet request, until changes can be made in
Spring MVC. See https://jira.spring.io/browse/SPR-14193.

Fixes gh-376
2016-04-26 12:30:54 +01:00
Matt Benson
1e38abfc6b minor edits (#369) 2016-04-22 11:43:16 +02:00
Dave Syer
be30d54954 Make test whitespace independent (for windoze) 2016-04-19 13:49:22 +01:00
Dave Syer
18305ba8b8 Revert to snapshots 2016-04-18 10:49:01 +01:00
Dave Syer
8e381eae82 Update to RC2 2016-04-18 10:48:33 +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
535fd6aa25 Update mvnw to determine profile on mac and linux 2016-03-22 12:43:29 -06:00
Dave Syer
14013b2570 Revert to snapshots 2016-03-22 16:56:38 +00:00
Dave Syer
031e01af45 Bump for 1.1.0.RC1 2016-03-22 16:55:53 +00:00
Dave Syer
e86170fbf7 Clarify how to get encrypted properies to clients
Fixes gh-349
2016-03-18 11:56:27 +00:00