Commit Graph

170 Commits

Author SHA1 Message Date
Anthony Dahanne
a77d20e105 Adapt to CI
* now using springio/concourse-release-scripts
2023-08-15 15:57:17 -04:00
Anthony Dahanne
8c0fe7682b Fix unclosed streams
* make sure Files.path() properly closes its directory, using try-with-resources
* missing one, found by @violetagg
* cherry pick from 1abd516456 and ec894cb82f
2023-08-15 15:44:41 -04:00
Anthony Dahanne
874b54b4b6 Bump to latest 2.5 spring boot release
Contains feedback from @Kehrlann

Original commit by @abelsromero - amended to keep compatibility with Spring Boot 2

Add integration tests
* use Maven modules to do so
* spring-cloud-bindings goes one level down
* addition of a spring-cloud-bindings parent

Inspired by @gregturn and spring-data-rest

Integrate PR#94 comments from @Kehrlann

* move bindings to src/test/resources
* get rid of unused / duplicate annotations
* move all dependencies to test scope for test projects

Spring Boot 2 support
* only in branch 1.x, SB3 support is in main branch
2023-06-05 21:33:56 -04:00
Abel Salgado Romero
909f3b5e0d Bump r2dbc-mariadb to 1.1.2 (fixes CVEs) 2023-06-05 12:30:27 -04:00
Abel Salgado Romero
9dcdf20c6e Bump Maven plugins 2023-06-05 12:30:27 -04:00
Paketo Robot
d70abff00a v1.13.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2023-05-08 21:00:01 +00:00
Anthony Dahanne
00f48108aa Merge pull request #95 from julian-hj/eureka-tls-binding
add Eureka TLS/mTLS support
2023-05-08 16:50:55 -04:00
Anthony Dahanne
1610021ed6 add Eureka TLS/mTLS support
* add createKeyStore javadoc, to please the Javadoc plugin
2023-05-08 16:44:14 -04:00
Julian Hjortshoj
fbc06149c0 add Eureka TLS/mTLS support
- read `ca.crt`, `tls.crt` and `tls.key` optional properties in eureka bindings
- process them into keystore and truststore, and wire up eureka client/instance properties
- place the trust-store and keystore in the `$TMPDIR` and reference them by absolute path.
- add a `pem` package for parsing and converting PEM encoded RSA keys
  and certificates. (This package may eventually be replaced by the PEM
  package in spring-boot, but not until 3.1 is the minimum supported
  boot version. The package here is copied from spring-boot but
  simplified and made Java 8 compatible.)

Co-authored-by: Dave Walter <walterda@vmware.com>
Co-authored-by: Andrew Wittrock <awittrock@vmware.com>
Co-authored-by: Matt Royal <mroyal@vmware.com>
Co-authored-by: Paul Aly <maly7; paly@vmware.com>
2023-05-08 07:32:01 -07:00
Paketo Robot
67b9fa09e8 v1.12.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2023-01-10 16:43:42 +00:00
David O'Sullivan
92520eece0 Merge pull request #92 from spring-cloud/script-perm
Update promotion script permissions
2023-01-05 15:44:26 +00:00
David O'Sullivan
19aa776f9f Update promotion script permissions 2023-01-05 15:43:46 +00:00
David O'Sullivan
89e76415b2 Merge pull request #91 from spring-cloud/javadocs
javadoc bug workaround
2023-01-03 14:21:56 +00:00
David O'Sullivan
98dffc6639 javadoc bug workaround 2023-01-03 14:19:38 +00:00
David O'Sullivan
c727d16ffd Merge pull request #90 from pivotal-david-osullivan/javadocs
javadoc bug workaround
2023-01-03 11:49:21 +00:00
David O'Sullivan
969a16fa26 javadoc bug workaround 2023-01-03 11:47:33 +00:00
David O'Sullivan
012394bd27 Merge pull request #88 from pivotal-david-osullivan/javadocs
Corrects issues reported by javadoc plugin
2023-01-03 09:40:59 +00:00
David O'Sullivan
e300147c7a Corrects issues reported by javadoc plugin 2022-12-23 11:28:05 +00:00
David O'Sullivan
d100e81d47 Adds support for promoting to maven central (#78)
* Adds support for promoting to maven central
2022-08-31 14:44:03 -04:00
Toshiaki Maki
38691add52 Fix postgresql url in README (#81) 2022-08-22 09:29:58 -04:00
Greg Meyer
662ccbff31 Resolving documentation for redis cluster nodes. (#80)
Co-authored-by: gm2552 <meyerg@vmware.com>
2022-08-19 14:58:18 -04:00
Daniel Mikusa
f807774639 Clarify that JDBC/R2DBC generated URLs (#75)
If allowing the mapping to generate a JDBC/R2DBC URL then all three of the fields are required, the host, port and database. If even one is not set, the information will not be mapped and the default value for the property will be used.

Reference: #74

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
2022-07-25 08:48:21 -04:00
Paketo Robot
69fe11052d v1.11.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2022-06-29 17:09:12 +00:00
Greg Meyer
c9fdc1e6b1 Adding logic to flex the MySQL r2dbc connection sting based on classpath (#73)
* Adding logic to flex the MySQL jdbc and r2dbc connection sting based on classpath

This PR is related to issue #72.

Co-authored-by: gm2552 <meyerg@vmware.com>
2022-06-13 11:40:59 -04:00
Daniel Garnier-Moiroux
5ab708ff04 add support for redirect-uris key for oauth2 bindings (#70) 2022-05-19 14:41:18 -04:00
Daniel Garnier-Moiroux
ac28f74c7a add support for authorization-grant-types key for oauth2 bindings (#69)
* add support for authorization-grant-types key for oauth2 bindings
* Introduce MapMapper.Source#when(Predicate<Object>)
* update readme with oauth2 -> authorization-grant-type(s)
2022-05-13 11:45:32 -04:00
Paketo Robot
e068759173 v1.10.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2022-05-02 13:40:22 +00:00
Paketo Robot
f9ea22be9f v1.9.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2022-05-02 13:13:02 +00:00
Daniel Mikusa
1c417a299f Update README.md (#68)
Add new PostgreSQL properties: sqlmode, sslrootcert, and options.
2022-04-27 13:50:31 -04:00
Marco Yeung
624fed286c Added sslmode/sslrootcert for postgresql and cockroachdb (#66) 2022-04-27 13:47:29 -04:00
Max Brauer
dca042dab0 Document missing OAuth2 client properties (#67) 2022-04-26 15:54:47 -04:00
Gareth Evans
5fc11caefb Adding support for SAP Hana bindings (#64)
* Add support for SAP Hana
2022-04-26 15:51:54 -04:00
Daniel Mikusa
751de400b2 Merge pull request #63 from beckermarc/patch-1
Mention K8s Service Binding Spec in README
2022-03-02 12:14:13 -05:00
Marc Becker
1e3bdce53d Mention K8s Service Binding Spec in README
Judging from comments in the [Bindings](https://github.com/spring-cloud/spring-cloud-bindings/blob/main/src/main/java/org/springframework/cloud/bindings/Bindings.java) and [Binding](https://github.com/spring-cloud/spring-cloud-bindings/blob/main/src/main/java/org/springframework/cloud/bindings/Binding.java) class the Kubernetes Service Binding Specification superseded the Cloud Native Buildpacks Binding Specification.
The library supports both but seems to view the Kubernetes Service Binding Specification as the leading specification.
I updated the README to reflect this and to avoid to lead users to the "legacy" specification.

This also avoids confusion, when being linked from the servicebinding.io's [list of libraries](https://servicebinding.io/application-developer/) to this page, however finding a different binding specification in the README.
2022-03-02 08:52:01 +01:00
Daniel Mikusa
9936047a2d Merge pull request #62 from garethjevans/patch-1
Minor spelling mistake in exception
2022-01-20 08:17:41 -05:00
Gareth Evans
6ae39f9e87 Minor spelling mistake in exception 2022-01-20 08:06:07 +00:00
Paketo Robot
24666ed766 v1.8.1-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2022-01-07 16:06:55 +00:00
Daniel Mikusa
1ee91b8719 Merge pull request #60 from spring-cloud/gh_issue_59
Add missing Spring Security OAuth2 bindings
2022-01-07 09:16:30 -05:00
Daniel Mikusa
541db563cf Add missing Spring Security OAuth2 bindings
[This document](https://docs.spring.io/spring-security/site/docs/5.2.12.RELEASE/reference/html/oauth2.html#oauth2login-boot-property-mappings) lists a handful of properties that are not currently being mapped from a binding to the Spring Security OAuth2 settings. This PR adds the missing properties.

Resolves #59.

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
2022-01-07 09:15:34 -05:00
Daniel Mikusa
d9d1a57237 Merge pull request #58 from spring-cloud/ci-updates
Switch to using a base image arg, so that the image can be passed into the dockerfile
2021-08-27 09:29:41 -04:00
Daniel Mikusa
23907f63b9 Switch to using a base image arg, so that the image can be passed into the dockerfile
Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
2021-08-27 09:28:59 -04:00
Paketo Robot
cc0e7d8086 v1.8.0-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2021-08-27 01:37:44 +00:00
Daniel Mikusa
cf11b5e886 Merge pull request #55 from cborealis/feature/activemq-artemis
Adding support for ActiveMQ Artemis
2021-08-26 21:12:40 -04:00
Emily Casey
d8d0518425 Merge pull request #57 from spring-cloud/polishing
Polishing #56.
2021-08-22 14:35:49 -04:00
Daniel Mikusa
526db0d6b2 Polishing.
- Removes unnecessary log line
- Clarifies order for jdbc url vs library composed url

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
2021-08-21 15:28:57 -04:00
Daniel Mikusa
91a9a8fbbc Merge pull request #56 from spring-cloud/jdbc-url
Allow users to explicitly specify jdbc or r2dbc URLs
2021-08-21 15:21:33 -04:00
Emily Casey
0debab1b2c Allow users to explicitly specify jdbc or r2dbc URLs
Previously Spring Cloud Bindings always composed spring.datasource.url from the host port and database properties. This is limiting in that it does not provide a mechanism for users to specify jdbc properties (e.g. sslMode). The PR retains the original behavior but also respects jdbc-url and r2dbc-url keys in all RDBS bindings. The explicit jdbc-url and r2dbc-url keys take precedence over the composed value.

Signed-off-by: Emily Casey <ecasey@vmware.com>
2021-08-20 17:10:20 -04:00
Alexander Schwab
cee2609022 Adding support for ActiveMQ Artemis 2021-04-16 12:41:15 +02:00
Paketo Robot
12b88ac5fe v1.7.2-SNAPSHOT Development
Signed-off-by: Paketo Robot <robot@paketo.io>
2021-03-30 22:57:14 +00:00
Emily Casey
5ba509e30e Set version back to 1.7.1-SNAPSHOT
Next release will be a patch release that includes the following bugfix:
* Fixes postgresql jdbc url - https://github.com/spring-cloud/spring-cloud-bindings/pull/53

Signed-off-by: Emily Casey <ecasey@vmware.com>
2021-03-30 13:04:33 -04:00