Commit Graph

112 Commits

Author SHA1 Message Date
Ben Hale
dd3f97ea00 Spring Boot 2.0 Compatibility
Previously, the library utilized an API from Spring Boot that arrived in
2.1.0.  Support for Spring Boot 2.0 compatibility was requested and we can
trivially add that support even though Boot 2.0 is EOL.  This change updates
the use of the API to be Boot 2.0 compatible.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-08-27 12:05:08 -07:00
Paketo Robot
7daf958e1c v1.6.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2020-08-17 23:37:38 +00:00
Ben Hale
cb048c1d98 Polishing
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-08-17 16:25:44 -07:00
Ben Hale
c167d98dc2 Revert "SERVICE_BINDINGS_ROOT"
This reverts commit 54c2687d58.
2020-08-17 16:22:00 -07:00
Ben Hale
397eed2da3 Polishing
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-22 12:20:31 -07:00
Ben Hale
768ebe7481 Polishing
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-22 11:33:53 -07:00
Paketo Robot
5582a8e9f1 v1.5.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2020-07-17 22:30:40 +00:00
Ben Hale
54c2687d58 SERVICE_BINDINGS_ROOT
Previously the code looked for SERVICE_BINDING_ROOT.  Given that the
specification states it should be SERVICE_BINDINGS_ROOT, this was wrong.  This
change fixes it.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-17 15:09:58 -07:00
Paketo Robot
782d5d075e v1.4.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2020-07-16 00:29:09 +00:00
Ben Hale
60c9bcbe7e Documentation Improvements
This changes makes a bunch documentation improvements, case normalizations,
and general improvements left over from the previous addition of the
Kubernetes Service Binding support.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-15 17:21:05 -07:00
Paketo Robot
819ce87bfe v1.3.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2020-07-14 18:06:55 +00:00
Ben Hale
7153fdd066 Merge branch 'k8s-service-bindings' into main
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-14 10:53:07 -07:00
Ben Hale
fe843860f7 Support Kubernetes Service Bindings
This change updates the library to support the new Kubernetes Service
Bindings[1].

[1]: https://github.com/k8s-service-bindings/spec#application-projection

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-14 10:52:49 -07:00
Paketo Robot
131f2c90b3 v1.2.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2020-07-01 22:10:27 +00:00
Ben Hale
50b1c034ee Artifact Name
This change updates the name of the artifact so that it's more descriptive and
aligns with other Spring Cloud projects.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-01 15:04:34 -07:00
Paketo Robot
53edc5d96c v1.1.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2020-07-01 22:03:35 +00:00
Paketo Robot
ce2d1cb988 v1.0.1-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2020-07-01 21:57:15 +00:00
Paketo Robot
d1f76e6283 v1.0.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2020-07-01 21:43:52 +00:00
Ben Hale
7a7d97d310 Merge branch 'ci' into main
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-01 14:38:34 -07:00
Ben Hale
4e37346e2d CI
This change contributes the CI scripts required to build and release the
project.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-07-01 14:38:15 -07:00
Emily Casey
df4abb7b21 Warn when oath2 binding is missing provider
Signed-off-by: Emily Casey <ecasey@vmware.com>
2020-06-25 16:55:23 -04:00
E Casey
6349da4a03 Merge pull request #48 from spring-cloud/feature/23-spring-cloud-vault
Supports Spring Cloud Vault
2020-06-25 16:08:40 -04:00
Emily Casey
e4ed9a3a76 Adds more context to ambiguous secret key names
When key names are potentially ambiguous (does this server-id refer to the vault server?) prefer longer more explicit key names. When there is no ambiguity stick with the existing shorter names.

Signed-off-by: Emily Casey <ecasey@vmware.com>
2020-06-25 16:06:24 -04:00
Emily Casey
10ace42f07 vault: secret/method -> secret/authentication-method
Signed-off-by: Emily Casey <ecasey@vmware.com>
2020-06-23 19:10:55 -04:00
Emily Casey
663c8095c2 Warns when vault binding has missing or unrecognized method
Signed-off-by: Emily Casey <ecasey@vmware.com>
2020-06-23 19:04:43 -04:00
Emily Casey
99574f3653 pass-through exact vault authentication method case instead of standardizing case
Signed-off-by: Emily Casey <ecasey@vmware.com>
2020-06-23 17:55:06 -04:00
Emily Casey
b3b1b06aea Adds more Spring Cloud Vault authentication methods
* AWS_EC2
* AWS_IAM
* AZURE_MSI
* GCP_GCE
* GCP_IAM
* KUBERNETS

Signed-off-by: Emily Casey <ecasey@vmware.com>
2020-06-23 17:51:45 -04:00
Emily Casey
5be10f2702 Reads authentication method from secret/method
Previously we used provider

Signed-off-by: Emily Casey <ecasey@vmware.com>
2020-06-23 10:44:29 -04:00
Emily Casey
02c0c59d4b Supports Spring Cloud Vault
Adds support for the following authentication types
* APPROLE
* CERT
* CUBBYHOLE
* TOKEN

See
https://cloud.spring.io/spring-cloud-vault/reference/html/#vault.config.authentication
for more details about these authentication methods.

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-06-19 18:11:40 -04:00
E Casey
706fa705d7 Merge pull request #46 from spring-cloud/feature/35-spring-security-oauth2
Adds support for Spring Security OAuth2
2020-06-19 17:26:12 -04:00
Emily Casey
c2a550e916 Adds support for Spring Security OAuth2
Autoconfigures spring.security.oauth2.* application properties. The name of the binding will become the name of the client. The name of the provider will be taken from metadata/provider.

Resolves #35

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-06-19 12:33:37 -04:00
E Casey
d0caf31ab4 Merge pull request #44 from spring-cloud/docs/34-extension-via-factory
Documents extension via custom factory
2020-06-04 17:22:12 -04:00
Emily Casey
b254d7e518 Documents extention via custom factory
Describes how to add support for additional service types and provides
a simple example.

Resolves #34

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-06-04 17:05:55 -04:00
E Casey
e72179cdeb Merge pull request #45 from spring-cloud/feature/12-ldap
Adds support for spring-ldap
2020-06-02 19:07:02 -04:00
Emily Casey
2b45fffefd Adds support for spring-ldap
Resolves #12

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-06-02 19:06:12 -04:00
E Casey
3296874ce3 Merge pull request #43 from spring-cloud/feature/26-scs-config-server
Adds Spring Cloud Config Server support
2020-06-02 14:24:15 -04:00
Emily Casey
e6fbccfc31 Alphabetize factories
Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-06-02 14:23:16 -04:00
Emily Casey
923c2abacc Alphabetize bindings. Makes clear that config/eureka properties are specific to SCS
Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-06-02 14:20:12 -04:00
Emily Casey
bbda2549f1 Adds support for SCS config server
Adds support for Spring Cloud Services Config Server. Bindings must have kind config.

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-06-02 14:20:12 -04:00
E Casey
a1c171e2aa Merge pull request #41 from spring-cloud/feature/13-support-r2dbc
Support r2dbc
2020-06-02 14:18:37 -04:00
E Casey
2db38648d4 Merge pull request #42 from spring-cloud/feature/40-k8s-style-bindings
Handles k8s style bindings
2020-06-02 14:18:05 -04:00
Emily Casey
cf71d08515 Documents r2dbc properties in README
Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-06-01 18:19:10 -04:00
Emily Casey
32c9629e09 Handles k8s style bindings
When a binding is provided as a mounted ConfigMap/Secret pair (containing
metadata and secret values respectively) the files within the metadata and
secret directories will be symlinks to files in a colocated hidden directory
that contains the content. In order to handle bindings presented in this
format a Binding object will ignore hidden files and directories when it is
contructed using a path. This prevents errors that previously occured
when the Binding assumed all metadata and secret entries were regular files, and
attempted to read the content of those directories directly.

Resolves #40

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-05-29 11:52:05 -04:00
Emily Casey
704a9d38a6 Handles k8s style bindings
When a binding is provided as a mounted ConfigMap/Secret pair (containing
metadata and secret values respectively) the files within the metadata and
secret directories will be symlinks to files in a colocated hidden directory
that contains the content. In order to handle bindings presented in this
format a Binding object will ignore hidden files and directories when it is
contructed using a path. This prevents errors that previously occured
when the Binding assumed all metadata and secret entries were regular files, and
attempted to read the content of those directories directly.

Resolves #40

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-05-29 11:47:36 -04:00
Emily Casey
8595e847a3 Support r2dbc
Adds r2dbc properties for mysql, postgres, sqlserver, oracle, and db2
bindings. This allow bindings to be used with reactive drivers.

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-05-28 18:25:29 -04:00
E Casey
05596d901e Merge pull request #39 from spring-cloud/27-eureka
Eureka Support
2020-05-20 19:27:36 -04:00
Emily Casey
44cb4a1f19 Eureka Support
[resolves #27]

Adds initial eureka client support.

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-05-18 09:49:55 -04:00
Ben Hale
6163be2aa7 ApplicationEventListeners
Previously, the implementations of the EnvironmentPostProcessors added
ApplicationEventListener to their interface as well.  These implementations
tested fine, but of course since there was no full integration test to ensure
that they were registered I forgot to add them to spring.factories.

This change adds their declarations as ApplicationEventListeners to the
spring.factories file and ensures that the logs are replayed when the
application is finished preparing.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-15 17:27:58 -07:00
E Casey
ade8797e09 Merge pull request #38 from spring-cloud/37-wavefront
Wavefront Support
2020-05-15 16:53:20 -04:00
Emily Casey
f68c71cab1 fix kafka kind
Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-05-15 16:50:39 -04:00