23 Commits

Author SHA1 Message Date
Spring Operator
631b8335fe URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 2 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 105 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Original pull request: gh-302.
2019-03-21 21:16:29 +01:00
Mark Paluch
c60979dbe9 Polishing.
Upgrade to newer language constructs (try-with-resources, lambdas, diamond syntax), remove redundant throws.

See gh-208.
2018-04-05 10:29:55 +02:00
Mark Paluch
847539afc9 Polishing.
Update copyright year range to 2018.
2018-01-17 16:05:33 +01:00
Mark Paluch
5dd65c8fcd Retain Vault JSON data type in property source.
Closes gh-189.
2018-01-17 16:05:33 +01:00
Mark Paluch
5a109b75cc Disable consul discovery tests.
Consul discovery client is set up in the main context, no longer in the bootstrap context.
2017-10-06 15:07:48 +02:00
Mark Paluch
1c116f5c5b Upgrade to Validation API 2.0.
Closes gh-159.
2017-09-21 15:22:07 +02:00
Mark Paluch
127238d663 Polishing.
Disable Consul config during tests.
2017-07-27 08:40:30 +02:00
Mark Paluch
d8ba3bd143 Allow Vault server lookup via DiscoveryClient.
We now support Vault server lookup using service registries via DiscoveryClient. Vault server is looked up during the bootstrap phase and configured by serviceId rather than host/port when enabling service discovery.

Closes gh-132.
2017-07-24 13:42:54 +02:00
Mark Paluch
99550e944b Adopt to Spring 5 changes.
See gh-131.
2017-06-29 14:30:22 +02:00
Mark Paluch
97bcf1ebe8 Allow overriding SecretBackendMetadataFactory beans.
We now allow overriding SecretBackendMetadataFactory by application-provided configuration to customize behavior of integrated secret backends.

Closes gh-118.
2017-06-06 15:09:51 +02:00
Mark Paluch
31c365c959 Introduce path to SecretBackendMetadata. 2017-05-20 17:17:14 +02:00
Mark Paluch
44f3c10b9b Use unique bean names for SecretBackendMetadataFactory beans.
We now use unique bean names for SecretBackendMetadataFactory beans for bean definition. Previously, we used the same bean name (secretBackendMetadataFactory) across all bean definitions which causes definition overrides. The overrides erased previously defined beans so only a single instance of SecretBackendMetadataFactory was defined and using multiple Spring Cloud Vault modules at the same time was not possible.

Closes gh-94.
2017-04-05 19:39:17 +02:00
Mark Paluch
0add1698d5 Annotate Vault…Properties with @Validated to enable property validation.
Closes gh-96.
2017-04-05 19:35:42 +02:00
Mark Paluch
97645a29a6 Adopt Spring Vault's VaultClient removal.
Closes gh-78.
2017-02-16 15:02:22 +01:00
Mark Paluch
a7c4cff540 Fix HashiCorp lettercasing.
Fixes gh-54.
2016-10-28 17:00:05 +02:00
Mark Paluch
0f0a6957e3 Polishing.
Rename SecureBackend to SecretBackend. Refactor SecureBackendAccessor to SecretBackendMetadata. Move Property Transformation into PropertyTransformer. Enhance JavaDoc. Remove Properties beans and use EnableProperties annotation.
2016-10-10 08:24:30 +02:00
Mark Paluch
b291e9c989 Support lease lifecycle (renewal and revocation).
Spring Cloud Vault now handles lifecycle of obtained secrets by property sources. Secrets associated with a renewable lease are renewed before they expire until terminal expiration. Application shutdown revokes leases so generated credentials can be disabled by Vault.

Fixes gh-40.
2016-10-10 08:24:26 +02:00
Mark Paluch
b95e8d90eb Upgrade to Spring Boot 1.4 SR1.
Upgrade to 1.4.1.RELEASE. Migrate to SpringBootTest annotation usage.

Fixes gh-38.
2016-09-21 21:29:23 +02:00
Mark Paluch
ff1540e71c Reformat code.
Reformat code and reorganize import using the code formatter settings.
2016-09-21 20:57:10 +02:00
Mark Paluch
7a09c9875f Refactor code to use Spring Vault.
Extract VaultClient and configuration parts into Spring Vault and reimport using the spring-vault-core dependency.

Fixes gh-37
2016-09-21 20:54:29 +02:00
Mark Paluch
d4f40a1f40 Provide a Vault client API for low-level and higer-order functions
Split functionality from VaultClient and refactor it into VaultConfigOperations/VaultConfigTemplate. The template now holds the authentication state and the property source just uses the template.

Fixes gh-23
2016-07-19 16:39:49 +02:00
Mark Paluch
656c181178 Add possibility to disable generic backend #12 2016-06-23 08:58:58 +02:00
Mark Paluch
c0da914b00 Split into modules #11
Split Spring Cloud Vault Config into multiple modules: Core, Config, Database/Consul/RabbitMQ integrations.
2016-06-23 00:13:58 +02:00