Commit Graph

59 Commits

Author SHA1 Message Date
Spencer Gibb
d202f53c69 Bumped to 1.0.4.BUILD-SNAPSHOT 2015-11-16 10:05:06 -07: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
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
Dave Syer
232e450929 Correct user guide env->profile 2015-07-17 22:16:52 +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
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
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
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
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
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
5d1af78f91 Update to 1.0.2 snapshots 2015-04-23 11:11:21 +01:00
Spencer Gibb
8c12408fba fixed typo
fixes gh-125
2015-04-13 08:06:54 -06:00
Dave Syer
91d12e7c56 Fix grammar 2015-03-31 10:55:41 +01:00
Dave Syer
cef828b544 Fix formatting and clarify use of searchPaths in config server
See gh-117
2015-03-27 12:29:54 +00:00
Dave Syer
2845b26eed Add link to github in rendered docs 2015-03-20 11:46:14 +00:00
Dave Syer
d72d4c06a6 Update docs for native repo
Fixes gh-109
2015-03-19 17:54:07 +00:00
Dave Syer
7b6fdb5f72 Re-organize non-config concerns in spring-cloud-context
Fixes gh-110 See gh-104
2015-03-19 11:49:33 +00:00
Dave Syer
4ae639c351 Extra docs for embeddable config server
Fixes gh-100
2015-03-11 10:32:02 +00:00
Dave Syer
bcef73bc98 Add encrypt.keyStore.secret property
So that the keystore and the key can have independent secrets
(the "secret" is the key, and the "password" is the store).

Fixes gh-98
2015-03-09 22:15:41 +00:00
Dave Syer
742cb478ba Add bintray properties 2015-03-05 16:28:10 +00:00
Dave Syer
d4553f6a57 Update to next snapshot 2015-03-03 14:56:26 +00:00
Dave Syer
fc82c93175 Add explicit ref to serviceId for disovery 2015-02-23 15:40:10 +00:00
Dave Syer
346e5746c7 Fix docs for native profile search locations
It's actually `spring.cloud.config.server.native.searchLocations`.

Fixes gh-89
2015-02-23 10:20:25 +00:00
Dave Syer
fc4865964b Fix multi-git samples in docs 2015-02-20 16:20:43 +00:00
Dave Syer
e0e5d25c31 Add detail about using SSH for git
JGit just uses normal .ssh configuration so giving it
a URI in the right form should be enough. Added a short
paragraph on that in the guide.

See gh-55
2015-02-16 09:17:25 +00:00
Dave Syer
8b447dec5a Clarify requirements for client-side encryption
See gh-84
2015-02-13 14:50:56 +00:00
Dave Syer
e28b137fb0 Clarify how to set basic auth credentials in config
See gh-55
2015-02-12 10:31:02 +00:00
Dave Syer
897ad1face Instead of using Map everywhere it's neater to use a strongly typed
object. This reuses JGitEnvironmentRepository, since it shares
most of the same properties. The format of the repos config
changes - now it is a Map not a List and the key is used as a "name"
to provide a default pattern and a location in the basedir.

Example config:

    spring:
      application:
        name: configserver
      cloud:
        config:
          server:
            git:
              uri: https://github.com/spring-cloud-samples/config-repo
              repos:
                iceycake: https://github.com/iceycake/config-repo
                project1:
                  patterns: project1-*,*-project1
                  uri: https://github.com/spring-cloud-samples/config-repo-1
2015-02-12 10:20:16 +00:00
Andy Chan
e05e876f8f Optional support for multiple Git repos
This implementation adds multiple git repositories support to Spring Cloud Config Server.
By giving the following properties file:

info:
  component: Config Server
spring:
  application:
    name: configserver
  jmx:
    default_domain: cloud.config.server
  cloud:
    config:
      server:
        git:
          uri: https://github.com/spring-cloud-samples/config-repo
          repos:
            - patterns: iceycake-*
              uri: https://github.com/iceycake/config-repo
            - patterns: project1-*,*-project1
              uri: https://github.com/spring-cloud-samples/config-repo-1
with uri:

  /{application}/{profile}/{label}

where

spring.cloud.config.server.git.uri is the default git repository
spring.cloud.config.server.repos is a mapping between a git repository and
a string pattern that matches the {application} string in the endpoint.

Fixes gh-82, fixes gh-58
2015-02-10 11:43:28 +00:00
Dave Syer
a0b9fc6ced Update docs to show encrypt key is mandatory 2015-02-05 10:08:26 +01:00
Dave Syer
fecc7c8539 Use local file:/... repository in place instead of cloning
Since JGit cannot use the "local" protocol (only git, ssh and https) we can't
use file:/... repositories in the same way as the other protocols. Formerly
we would copy the whole directory and use the copy as a local cache. But then
users are confused when they commit changes to the "remote" and they don't
show up in the server. It seems less confusing to simply use the local
repository as the basedir (although it does mean that ssh: should be used
if you are scaling up the config server).

Fixes gh-63
2015-01-19 15:05:21 +00:00
Dave Syer
ecc65dd087 Clarify EnvironmentRepository contract 2015-01-06 09:18:40 +00:00
Dave Syer
b29b492817 Add label/ prefix to properties files in the "native" profile
This allows user s to separate their native resources by label, e.g.
/config/master/*.properties, /config/dev/*.properties etc.
2014-12-18 16:49:52 +00:00
Dave Syer
7a7550735e Change docs path in README 2014-12-11 15:41:36 +00:00
Spencer Gibb
954adc21c2 document failFast option
fixes gh-49
2014-12-05 12:31:16 -07:00
Dave Syer
2caf87f92e Revert some @Ignores after bugfixes in Spring
Also lifts the restriction on @RefreshScope and @Configuration
(since that was imposed by a bug).

Fixes gh-43
2014-12-03 17:19:05 +00:00
Dave Syer
a83daa0ef5 starters->starter-parent 2014-11-26 14:05:57 +00:00
Dave Syer
776ec68280 Add contributing section to README 2014-11-17 10:29:14 +00:00
Tomasz Nurkiewicz
4f9b044453 Minor typo 2014-11-13 13:03:50 +01:00
Dave Syer
9d55ef84d0 Extract config server properties to Java bean
ConfigServerProperties is now used to store global properties
for the config server (like the path prefix and bootstrap flag)
under spring.cloud.config.server.* so git specific ones have
been pushed down to spring.cloud.config.server.git.* (similarly
for git->native).

At the same time introduce spring.cloud.config.server.defaultLabel
for the deafult git label (defaults to "master").

Fixes gh-28
2014-11-10 08:46:02 +00:00
Dave Syer
04b6cd0f13 Add some docs for config server 2014-11-08 19:28:46 +00:00
Dave Syer
54434bd71e Update README with "Building" instructions
Fixes gh-13
2014-10-31 15:41:46 +00:00
Dave Syer
ccf4da59c2 More detail on context hierarchies 2014-10-31 08:54:55 +00:00
Dave Syer
9efae007fa Add Environment to ProeprtySourceLocator.locate()
In this way each contexet in a hierarchy can in principle have a different
set of property sources
2014-10-30 11:43:00 +00:00
Dave Syer
84962cefca Add spring.cloud.config.server.prefix
Fixes gh-23
2014-10-29 15:13:12 +00:00