Commit Graph

33 Commits

Author SHA1 Message Date
Mark Paluch
b86510a852 Remove Bootstrap context marker class from classpath 2020-09-17 16:21:57 +02:00
Mark Paluch
73e978a946 Add Vault implementation for ConfigDataResolver and ConfigDataLoader
Discover SecretBackendMetadataFactory and VaultSecretBackendDescriptor using spring.factories. Add instance suppliers for all imperative support classes.
2020-09-17 16:21:16 +02:00
Mark Paluch
477e8b9bb9 Polishing
Reformat code using new formatter Settings.

See gh-482.
2020-09-17 11:28:42 +02:00
Mark Paluch
0f7b9ec7fc Remove spring.cloud.vault.generic configuration properties.
Spring Cloud Vault uses now a single mechanism for key-value backend configuration. Properties at spring.cloud.vault.generic.* are no longer supported.

All associated functionality is now solely available by configuring the corresponding spring.cloud.vault.kv.* properties. The support classes GenericSecretBackendMetadata and VaultGenericBackendProperties were removed in favor of KeyValueSecretBackendMetadata respective VaultKeyValueBackendProperties. spring.cloud.vault.kv.enabled is now enabled by default to preserve spring.cloud.vault.generic.enabled behavior.

Closes gh-395
2020-05-20 10:57:33 +02:00
Mark Paluch
0c45446882 Polishing
Use SpringRunner instead of SpringJUnit4ClassRunner.
2020-01-16 09:35:04 +01:00
Mark Paluch
4118d4a076 Update license headers to 2020
Closes gh-376.
2020-01-10 15:15:25 +01:00
Mark Paluch
8af88cca87 Reduce need for bean method proxying and disable where not needed.
Closes gh-360.
2019-10-21 10:21:44 +02:00
Mark Paluch
62bd0d540c Remove Lombok usage.
Closes gh-341.
2019-07-03 09:47:58 +02:00
Mark Paluch
175b5acf57 Polishing.
Closes gh-333.
Original pull request: gh-334.
2019-05-20 11:50:49 +02:00
Spring Operator
474da44c8e 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 111 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-305.
2019-03-21 21:17:02 +01:00
Mark Paluch
041857263a Fix Checkstyle violations.
Closes gh-290.
2019-03-14 10:24:22 +01:00
Marcin Grzejszczak
9d9776f5c8 Applied checkstyle rules 2019-02-07 11:25:07 +01:00
Mark Paluch
def779d239 Add Checkstyle integration.
Closes gh-276.
2019-02-07 10:47:14 +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
1c116f5c5b Upgrade to Validation API 2.0.
Closes gh-159.
2017-09-21 15:22:07 +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
80d38f46ff Upgrade to Vault 0.6.2.
Setup test run with Vault 0.5.3 to 0.6.2, guard tests accessing features available since specific versions.

Fixes gh-44.
2016-10-10 08:24:30 +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
232aae9ba8 Refactor ClientAuthentication into own component
The authentication API can be provided into VaultClient by implementing a ClientAuthentication.
2016-07-04 22:45:47 +02:00
Mark Paluch
d267ecc0df Polishing
Align JavaDoc
2016-07-03 14:04:04 +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